> 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/zapsign-api/english/timestamp/criar-documento.md).

# Add timestamp

The Timestamp is an advanced security solution that enhances the document signing process by recording not only the date and time of the signer's device but also the date and time from an external server approved by a Trusted Timestamp Authority.

***

### Adding Timestamp to Documents

Using this endpoint, you can add a timestamp to your documents, ensuring their existence at a specific moment and securing the integrity of the digital signature.

<mark style="color:green;">`POST`</mark> `https://api.zapsign.com.br/api/v1/timestamp/`

| Name          | Value                          |
| ------------- | ------------------------------ |
| Content-Type  | `application/json`             |
| Authorization | `API_TOKEN_DA_SUA_ORGANIZAÇÃO` |

**Body**

**This field is a string**. Simply provide the public URL of your document (PDF or DOCX) up to 10MB. Alternatively, you can convert your file to a base64 string and include it in this parameter.

```json
{
    "url": "<Add_your_url_or_base64>"
}
```

#### Possible responses

{% tabs %}
{% tab title="200 Document created successfully." %}

```javascript
{
    "url": "https://zapsign.s3.amazonaws.com/pdf/62c2b027-d8fc-4392-xas75-f3c46c3cfc7a/d33336-4182-8c8b-ded5287e4c0f.pdf"
}
```

{% endtab %}

{% tab title="402 Payment Required" %}
{ "error": "Payment Required" \
}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
[Contact a specialist](https://zapsign.co/contact-sales?hsCtaTracking=f29cb894-a383-4ae5-ad40-8567b0f3257e%7C29b2d094-e9d4-4165-b8f3-5c9c26eae155) to add this functionality to your plan!
{% endhint %}


---

# 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/zapsign-api/english/timestamp/criar-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.
