> 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).

# Detalhar documento

## 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="/files/mGe6jnfq1Id7FSlXV9Sy" 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](/facilitadores/sdks/sdk-em-go/definindo-configuracoes/adicionando-api-token.md)
* Um Token de um documento a ser detalhado. [Confira aqui como fazer isso](/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="/files/vVlvf3ZIIoY8nZMXWho1" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zapsign.com.br/facilitadores/sdks/sdk-em-go/requisicoes-para-documentos/detalhar-documento.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
