> For the complete documentation index, see [llms.txt](https://docs.zapsign.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zapsign.com.br/facilitadores/sdks/sdk-em-go/requisicoes-para-documentos/detalhar-documento.md). Agents can also search and read this documentation through its [MCP server](https://docs.zapsign.com.br/~gitbook/mcp).

# Detalhar documento

Aqui nessa página você encontrará informações da requisição para detalhamento de um documento na Zapsign.

## Visão geral:

No SDK em Go, temos o arquivo '**detail\_doc\_test.go**' no diretório do projeto **SdkGo** na Zapsign! Confira o diretório clicando [aqui](<  https://github.com/ZapSign/SdkGo>).&#x20;

Ao entrar no projeto, podemos ver claramente que existe uma estrutura de testes automatizados para cada requisição da Zapsign na pasta "**tests**". Para acessar o teste de detalhamento de documento, basta navegar em **"tests/docs/detail\_doc\_test.go".**

<figure><img src="https://3085168645-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4noMoX5ZGb2-RhWjjf-887967055%2Fuploads%2F0WMQVwogmEetVkFyl6cS%2FCaptura%20de%20tela%20de%202023-02-10%2016-57-24.png?alt=media&amp;token=38097e15-28d2-4a0b-ad43-412ca3be2b7d" alt=""><figcaption><p>Estrutura de arquivos de teste de documentos do SDK</p></figcaption></figure>

Para que esse teste consiga ter um [retorno 200](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200) e com sucesso, precisamos de algumas configurações essenciais.

* Um API Token.&#x20;
  * Descubra como achar seu [API Token](https://docs.zapsign.com.br/).
  * [Adicione seu API Token no projeto](https://docs.zapsign.com.br/facilitadores/sdks/sdk-em-go/definindo-configuracoes/adicionando-api-token.md)
* Um Token de um documento a ser detalhado. [Confira aqui como fazer isso](https://docs.zapsign.com.br/facilitadores/sdks/sdk-em-go/definindo-configuracoes/adicionando-um-token-de-um-documento.md).

Após toda a configuração do seu [API Token](https://docs.zapsign.com.br/) e seu token de documento basta rodar o teste automatizado que a listagem de UM documento será executada.

Exemplo:

<figure><img src="https://3085168645-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4noMoX5ZGb2-RhWjjf-887967055%2Fuploads%2FH07bR4GG7NIrn1rvu1qp%2FCaptura%20de%20tela%20de%202023-02-13%2016-44-38.png?alt=media&amp;token=83711eb9-fd1e-4cf2-b5b6-c61f6a7c6993" alt=""><figcaption><p>Detalhamento de um documento</p></figcaption></figure>

Pronto! A requisição foi realizada com sucesso e o documento será detalhado no console da sua IDE ou terminal! Fácil, né? 😁

Mais informações sobre a requisição, pode ser encontrada [aqui](https://docs.zapsign.com.br/documentos/detalhar-documento)!

Ficou alguma dúvida ou tem alguma sugestão de melhoria? Nos contate [aqui](https://zapsign.com.br/contato/).


---

# 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.zapsign.com.br/facilitadores/sdks/sdk-em-go/requisicoes-para-documentos/detalhar-documento.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.
