> For the complete documentation index, see [llms.txt](https://docs.floui.io/guia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.floui.io/guia/conectores/categorias/servicos-do-floui/floui-database/consultar-por-id.md).

# Consultar por ID

Recebe como parâmetro um identificador exclusivo e retorna as informações deste registro de um Floui Database.

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf-2pMNVPqKPNQKed3YEsY5ulEoXvwc8UowvQtAfVKNxwFFlcmXwg38bQ7PHELteggyCz00SE-erGPQifEuhFRaB8baVyTjShPwP0wOEoX8iQNhEb85oosN-pey-f68wUB7EgQWLQ?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo          | Tipo           | Descrição                                                                                                            |
| -------------- | -------------- | -------------------------------------------------------------------------------------------------------------------- |
| Descrição      | Campo de texto | Descrição visual do conector na construção do fluxo.                                                                 |
| ID do registro | Campo de texto | Identificador único do registro no banco de dados NoSQL (\_id).                                                      |
| Output Path    | Campo de texto | Refere-se ao caminho de saída onde o resultado da consulta será disponibilizado no contexto de execução do conector. |
| {% endtab %}   |                |                                                                                                                      |

{% tab title="Payload" %}

## Sucesso

Quando a execução do conector ocorre com sucesso e um registro correspondente é encontrado, a saída incluirá os seguintes campos:

* payload: Refere-se a carga de dados retornada pelo conector.
* \_id: Identificador único do registro no banco de dados NoSQL.
* table: Identificador único da tabela no banco de dados NoSQL.
* data: Objeto com os dados e campos do registro consultado.
* updated\_at: Data de atualização do registro no formato ISO 8601.
* created\_at: Data de criação do registro no formato ISO 8601.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfJg3mp8J4q8J8RZsYXZOHQNDbVEszs6RmSJYq85TCblGAl4rv554f3JvmvHoEr2cKkgEq0K5VObs_cX6MC8sowkFzpHvfB_1R4iaC7FZBmtgVX8ltkpPC1SbH5xgNndmymqjQnXA?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Sucesso na consulta de registro único</p></figcaption></figure>

## Erro

Caso ocorra um erro e o registro não seja encontrado, a saída do conector será `null`. Se o identificador informado não estiver no formato correto, a execução do fluxo será interrompida e uma mensagem será exibida informando sobre o erro no padrão do identificador.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf7H20h-radnvfz9yDvV7GwEXO9wQDaDluiXJTwI8QL7tLNo5wAnpfcsn-OMfdfDjLcTn7lpDwkV5v4uMfrm1LOu7S6RtcA-srLpi2od3eFngMYSEmgh7-RqNcaHlm_6KEeKsCUzA?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Erro na consulta de registro único</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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.floui.io/guia/conectores/categorias/servicos-do-floui/floui-database/consultar-por-id.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.
