# 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="https://1605753490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbBzLrA6555E5Ze2GMYf%2Fuploads%2FwcmiuUOFtAPadFhydwFI%2FCleanShot%202025-10-29%20at%2015.07.16%402x.png?alt=media&#x26;token=44739a88-ab9f-4d2f-ac26-c01c1158a996" 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**](https://docs.autentique.com.br/api/integration-basics/altair).
{% 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="<https://content.gitbook.com/content/IbBzLrA6555E5Ze2GMYf/blobs/UYhF3Z8hbSdJj5dx0FvZ/Autentique%20v2.postman_collection.json>" %}
Para importar e usar no Postman
{% endfile %}


---

# Agent Instructions: 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:

```
GET https://docs.autentique.com.br/api/mutations/assinando-um-documento.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
