> For the complete documentation index, see [llms.txt](https://docs.griaule.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.griaule.com/gbspsbio/como-funciona/spidx.md).

# Integração com o SPIDX

#### Sobre esta página

Descreve o funcionamento integrado das soluções PSBio e SPIDX.

#### Sumário

1. [O que é o SPIDX](#o-que-e-o-spidx)
2. [Operação do PSBio com o SPIDX](#operacao-do-psbio-com-o-spidx)

## O que é o SPIDX

O SPIDX é uma solução para coleta e cadastramento biométrico em dispositivos móveis. É composto por:

* **SPIDX App:** aplicativo executado nos dispositivos Android e iOS dos indivíduos que solicitam certificados (clientes das ARs);
* **SPIDX Server:** serviço online hospedado pela SPIDX.

***

## Operação do PSBio com o SPIDX

![Troca de mensagens entre SPID Client, SPID Server, PSBio, SPIDX Server e SPIDX App](https://8115392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJaE9Zybol0s5SL1TerUi%2Fuploads%2FwIv119Y5B8h2FchQfpu9%2Fimg-spidx-r2.png?alt=media)

{% hint style="info" %}
**O cliente precisa ter o SPIDX App instalado** no seu dispositivo móvel (smartphone ou tablet).
{% endhint %}

1. Ao requisitar a emissão do certificado digital, a AR inicia o fluxo criando um pedido de coleta biométrica remota para a AC. Essa chamada é feita pelo SPID Client da AR para o SPID Server de sua AC.
2. O SPID Server (AC) faz um pedido de coleta biométrica ao SPIDX Server.
3. O SPIDX Server envia o pedido de coleta ao SPIDX App, no dispositivo do cliente. O aplicativo realiza a coleta com os sensores do dispositivo e envia os dados biométricos ao SPIDX Server.
4. O SPIDX Server notifica o SPID Server (AC) de que a coleta foi concluída.
5. O SPID Server (AC) requisita os dados biométricos ao SPIDX Server e os recebe.
6. O SPID Server (AC) solicita ao PSBio a verificação biométrica dos dados coletados. O PSBio responde indicando se há ou não duplicidade.
7. Durante todo o procedimento, o SPID Client (AR) aguarda a coleta e a verificação, consultando periodicamente o status da transação no SPID Server (AC). Quando houver uma resposta definitiva, autorização ou recusa para emissão do certificado, o SPID Client (AR) pode finalizar a operação.

Para integrar uma aplicação ao SPID Client, veja [Fluxos do SPID Services](/gbspsbio/integracao/fluxos-spid-services.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.griaule.com/gbspsbio/como-funciona/spidx.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
