> 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/definindo-configuracoes/adicionando-api-token.md).

# Adicionando API Token

Guia para adicionar seu API Token para utilizar as requisições de documentos e/ou signatários na Zapsign.

Navegue até **"SdkGo/utils/"** e abra o arquivo **"util.go".**

![](https://3085168645-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4noMoX5ZGb2-RhWjjf-887967055%2Fuploads%2Fu4wnBpsDd6Tmb2W1rN3O%2Fimage.png?alt=media\&token=560e7d9a-885a-4ec1-85cb-4f2dc209649a)

O arquivo "**util.go"** é um dos arquivos mais importantes do SDK. Nesse arquivo, há uma responsabilidade de definição de tokens de documentos, signatários, bem como também seu [API Token](https://docs.zapsign.com.br/) é adicionado aqui.

Encontre a função **"GetApiToken()"** e adicione seu token no retorno dessa função.\~

<figure><img src="https://3085168645-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4noMoX5ZGb2-RhWjjf-887967055%2Fuploads%2FpZFJlGWGJJ7Ug9kGQeOY%2FCaptura%20de%20tela%20de%202023-02-13%2012-14-43.png?alt=media&amp;token=6256d155-f6e6-4d67-8fa3-9616ea99cc9f" alt=""><figcaption><p>Função responsável por guardar seu API Token</p></figcaption></figure>

Prontinho! Agora, seu API Token estará adicionado em todas as requisições na Zapsign! Agora apenas precisamos rodar os testes equivalentes a cada requisição! Fácil, né? 😁

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/definindo-configuracoes/adicionando-api-token.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.
