> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/linha-de-faciais/modo-catraca/modo-catraca-1.0/evento-de-confirmacao-de-passagem.md).

# Evento de Confirmação de Passagem

## Eventos de Confirmação de Passagem

Os eventos de confirmação de passagem estarão disponíveis tanto na interface web do produto, como através dos eventos encaminhados ao Servidor de Eventos (Post Events) e obtenção dos registros de acesso via API **Obter Registros de Acesso**.

### Interface web

Para visualizar os eventos de acesso com a confirmação de passagem via interface web, acesso o menu Logs>Eventos. Irá aparecer na interface as colunas "Info Passagem" e "Direção" contendo as informações referentes a confirmação de passagem e direção do acesso:

<figure><img src="https://1174315854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0fFSkomZ6y6jtuI5J4qq%2Fuploads%2F4lx1UNXp7duNtYyPNUPi%2FUnlock_records_menu.png?alt=media&amp;token=8d1273ad-da34-43b4-9fa5-53add91a6fe6" alt=""><figcaption></figcaption></figure>

### Servidor de Eventos (POST Events)

Para o servidor de eventos, após efetuado o registro de acesso do usuário, será encaminhado um único de evento de acesso, com a informação da confirmação de passagem e sentido.

Com isso, não é necessário monitorar o evento de porta para sincronizar com o evento de acesso e criar a ocorrência de passagem ou não.

#### Exemplo de encaminhamento do evento no caso de confirmação de passagem:

```sh
--myboundary
Content-Type: text/plain
Content-Disposition: form-data; name="info"

{
   "Channel" : 0,
   "Events" : [
      {
         "Action" : "Pulse",
         "Code" : "AccessControl",
         "Data" : {
            "BlockId" : 173276,
            "CardName" : "Teste123",
            "CardNo" : "4407D35D",
            "CardType" : 0,
            "CreateTime" : 1758737324,
            "Door" : 0,
            "DoorTypeStr" : "Local",
            "ErrorCode" : 0,
            "ImageInfo" : [
               {
                  "Height" : 1280,
                  "Length" : 67292,
                  "Offset" : 0,
                  "Type" : 1,
                  "Width" : 720
               },
               {
                  "Height" : 505,
                  "Length" : 15811,
                  "Offset" : 67292,
                  "Type" : 0,
                  "Width" : 413
               }
            ],
            "Method" : 1,
            "ReaderID" : "1",
            "RealUTC" : 1758737324,
            "Status" : 1,
            "TurnstilePass" : "Passed",
            "Type" : "Entry",
            "UTC" : 1758737324,
            "UserID" : "2",
            "UserType" : 0
         },
         "Index" : 0,
         "PhysicalAddress" : "54:6c:ac:21:40:17"
      }
   ],
   "FilePath" : "\/SnapShotFilePath\/2025-09-24\/15\/08\/2_20250924150851885.jpg",
   "Time" : "24-09-2025 15:08:51"
}

```

#### Exemplo de encaminhamento do evento no caso de **falha** na confirmação de passagem:

```sh
--myboundary
Content-Type: text/plain
Content-Disposition: form-data; name="info"

{
   "Channel" : 0,
   "Events" : [
      {
         "Action" : "Pulse",
         "Code" : "AccessControl",
         "Data" : {
            "BlockId" : 173274,
            "CardName" : "Teste123",
            "CardNo" : "4407D35D",
            "CardType" : 0,
            "CreateTime" : 1758737264,
            "Door" : 0,
            "DoorTypeStr" : "Local",
            "ErrorCode" : 51,
            "ImageInfo" : [
               {
                  "Height" : 1280,
                  "Length" : 68149,
                  "Offset" : 0,
                  "Type" : 1,
                  "Width" : 720
               },
               {
                  "Height" : 505,
                  "Length" : 15811,
                  "Offset" : 68149,
                  "Type" : 0,
                  "Width" : 413
               }
            ],
            "Method" : 1,
            "ReaderID" : "1",
            "RealUTC" : 1758737264,
            "Status" : 1,
            "TurnstilePass" : "Not Passed",
            "Type" : "Entry",
            "UTC" : 1758737264,
            "UserID" : "2",
            "UserType" : 0
         },
         "Index" : 0,
         "PhysicalAddress" : "54:6c:ac:21:40:17"
      }
   ],
   "FilePath" : "\/SnapShotFilePath\/2025-09-24\/15\/07\/2_20250924150752777.jpg",
   "Time" : "24-09-2025 15:07:52"
}


```

### Obter Eventos Registrados

Para consultar os eventos registrados via API, o comando é o mesmo explicado na página **Obter Registros de Acesso**, onde irá apresentar dois novos campos:

* **TurnstilePass** para confirmação de passagem ou não;
* **Type** para confirmar o sentido da passagem.

{% hint style="warning" %}
Importante: Após ativação do Modo Catraca 1.0 é necessário ativar o Sensor de Porta, pois sem essa configuração, a solução não irá funcionar corretamente.
{% endhint %}


---

# 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://portal-integracao.intelbras.com.br/linha-de-faciais/modo-catraca/modo-catraca-1.0/evento-de-confirmacao-de-passagem.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.
