# Get Document Signed

{% hint style="info" %}
**URL Base**:

* UAT: <mark style="color:blue;">`https://signhom.acesso.io`</mark>.
* Production: <mark style="color:blue;">`https://sign.acesso.io`</mark>.
  {% endhint %}

## GetDocumentSigned

> Endpoint to retrieve the signed document in PDF format. Only for flows with electronic signature.

```json
{"openapi":"3.0.0","info":{"title":"Get File","version":"1.0.0"},"servers":[{"url":"https://signhom.acesso.io"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/api/v1/service/file/{documentId}":{"get":{"summary":"GetDocumentSigned","description":"Endpoint to retrieve the signed document in PDF format. Only for flows with electronic signature.","parameters":[{"name":"id-document","in":"path","required":true,"description":"Document ID.","schema":{"type":"string"}}],"responses":{"200":{"description":"Signed document obtained successfully.","content":{"application/pdf":{"schema":{"type":"string","format":"binary","description":"PDF file generated by the system."}}}},"401":{"description":"Error in access-token.","content":{"application/json":{"schema":{"type":"integer","description":"Error description."}}}},"404":{"description":"Not Found.","content":{"application/json":{"schema":{"type":"integer","description":"Error description."}}}},"500":{"description":"Internal Server Error.","content":{"application/json":{"schema":{"type":"object","properties":{"Sucess":{"type":"boolean","description":"Error indication."},"Message":{"type":null,"description":"Error description."},"Data":{"type":null,"description":"Error description."}}}}}}}}}}}
```

#### Example of a generated document:

<figure><img src="/files/pNnYVYLbmE0RvECwvM6D" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="warning" %}
If the return of the signed document via by Unico is delayed in processing, we recommend waiting at least one minute after the process is completed before performing the query. Additionally, it is important to set up an automatic retry policy for cases where the signed document is not yet available, such as making up to 10 attempts with intervals of 1 to 5 minutes between them.
{% endhint %}

### Errors


---

# 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://devcenter.unico.io/unico-idcloud/by-unico-integration/by-unico-api/api-reference/get-document-signed.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.
