> For the complete documentation index, see [llms.txt](https://docs.autentique.com.br/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autentique.com.br/api/mutations/assinando-um-documento.md).

# Signing a document

To do so, simply use the following mutation:\
\&#xNAN;*(Don’t forget to replace it with the ID of an existing document.)*

```graphql
mutation {
  signDocument(id: "DOCUMENT_ID")
}
```

Please note that you can **only sign using the account linked to the API token**. This means you **cannot** use this method to enable others to sign documents directly through your application.

Additionally, you will **only be able to sign a document if you are listed as one of its signers**. Otherwise, the response will return the error: `signature_not_found`.

You can test the signing process in [Altair](https://altair.autentique.com.br):

<figure><img src="/files/ufFTj9pY24sCFuFQVcBT" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can check what each of these parameters means directly in the full GraphQL API documentation, in the Docs menu of [Altair](https://altair.autentique.com.br/). If you're not sure how to do that, check out our tutorial on [**Using Altair**](/api/integration-basics/altair.md).
{% endhint %}

{% hint style="info" %}
If Altair doesn't help you integrate with the API, check out some examples of how to make these requests in other ways: <https://graphql.org/graphql-js/graphql-clients/>
{% endhint %}

{% file src="/files/-M03o9cE5QB3vLoPUlzJ" %}
Para importar e usar no Postman
{% endfile %}
