> ## Documentation Index
> Fetch the complete documentation index at: https://idto.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# eSign overview

> Collect legally valid electronic signatures on PDFs and download the signed copy.

eSign sends one or more PDFs to the people who must sign them, collects their signatures (Aadhaar-based or electronic, as you set per signer), and gives you the signed PDF back through the idto API. idto archives every signed PDF as soon as signing completes, so you can download it later.

## How it works

```mermaid theme={null}
sequenceDiagram
    participant S as Your server
    participant I as idto
    participant U as Signer
    S->>I: POST /verify/esign (PDFs, signers)
    I-->>S: docket_id, document_id
    I->>U: Signing link
    U->>I: Signs
    U-->>S: Redirect to return_url (no document)
    I->>S: esign.completed webhook
    S->>I: POST /verify/esign/document
    I-->>S: signing_status signed, base64 PDF
```

## Endpoints

| Endpoint | Purpose | Billed |
| - | - | - |
| [`POST /verify/esign`](https://idto.mintlify.site/api-reference/esign/esign) | Create a docket | When `status` is `success` |
| [`POST /verify/esign/document`](https://idto.mintlify.site/api-reference/esign/esign-document) | Signing status and signed PDF | Never |
| [esign.completed webhook](https://idto.mintlify.site/api-reference/webhooks/esign-completed.md) | Signing finished | Not applicable |

## Outcomes

| Situation | What you get |
| - | - |
| Docket created | 200, `status: success`, `docket_id`, charged |
| Signing in progress | `signing_status: pending`, `content: null` |
| All signers signed | `signing_status: signed`, base64 PDF in `content`, plus one webhook |
| Signed copy deleted upstream before archiving | 410; contact support |

Error bodies follow [Error response shapes](https://idto.mintlify.site/concepts/request-response.md#error-response-shapes), and charges follow the [billing rule](https://idto.mintlify.site/concepts/billing-consent.md#billing).

## Test scenarios

| Input | Expected | Billed |
| - | - | - |
| Valid body, one signer, preset placement | 200, `status: success` | Yes |
| PDF larger than 10 MB | 422 | No |
| `appearance` set to `bottom` | 422 | No |
| Fetch right after creating | 200, `signing_status: pending` | No |
| Fetch after all signers signed | 200, `signing_status: signed` | No |
| Fetch with a `docket_id` from another account | 404 | No |

eSign is available through the API. The eSign step in the hosted verification flow is not yet available, so there is no flow recording for it.

Next: [eSign workflow guide](https://idto.mintlify.site/guides/esign-workflow.md), [eSign FAQ](https://idto.mintlify.site/products/esign/faq.md).

***

Was this page helpful? Email us at [tech@idto.ai](mailto:tech@idto.ai?subject=Docs%20feedback%3A%20eSign%20overview) with the page link.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.