Skip to main content
eSign is a three-part flow: you submit one or more PDFs and who needs to sign them, your eSign provider collects signatures (in person over email/SMS links, or however your signers are configured), and once every signer has signed, you pull the finished PDF back through idto. idto never hands you a raw link to the signing provider’s own dashboard, everything you need comes back through this API.

Step 1: Create the docket

A few fields worth calling out:
  • documents[].content is base64-encoded PDF content, capped at 10 MB per document.
  • signer_position.appearance is either one of the four preset strings (top-left, top-right, bottom-left, bottom-right, exact casing) or an array of {x1, y1, x2, y2} coordinate boxes if you need precise placement. Which page(s) the signature lands on is controlled separately by page_number ("1", "all", or a list like "3,5"), not per coordinate box.
  • final_copy_recipients is a comma-separated list of emails to receive the signed copy once complete.
  • Save the docket_id and document_id you get back. You need them for every call after this.

Step 2: Redirect the signer with return_url

Each document can carry its own return_url. Once a signer finishes (or abandons) signing, they land back on that URL. Treat return_url as redirect-only, it tells you the signer is done interacting, it never carries the signed document itself. Don’t try to parse a document out of the query string or the request that hits return_url, there isn’t one there.

Step 3: Fetch the signed document

POST /verify/esign/document is the only way to retrieve the signed PDF. Poll it after you expect signing to be done (for example, after the signer returns via return_url, or on receiving the completion webhook below):
While signing is still in progress:
Once every signer on the document has signed:
content is the base64-encoded signed PDF. A docket with multiple documents needs document_id on the request to pick a specific one, otherwise the first is returned.
idto archives a copy of every signed document as soon as all its signers finish, and serves later downloads from that archive. Download the PDF when the completion webhook arrives and keep your own copy.
If the underlying eSign provider has already deleted its copy of the document before idto could archive it, POST /verify/esign/document returns:
That’s an HTTP 410. If this happens, the only path forward is contacting idto support with the docket_id, the document cannot be regenerated from idto’s side once the provider’s copy is gone and no archive was made in time.
idto watches a docket for completion for 90 days after the POST /verify/esign call. A docket that is not fully signed by then sends no completion webhook. Treat a docket that has not completed within your normal business window (days, not months) as abandoned and create a new one.

Step 4: The completion webhook

If you have a webhook URL configured for your account, idto POSTs a completion event once a document’s signers have all signed and it has been archived:
The payload carries no PDF bytes and no expiry field, it’s a signal to go fetch the document, not the document itself. Call POST /verify/esign/document with the docket_id (and document_id, if the docket has more than one) as soon as you receive it. The webhook is signed the same way as every other idto webhook: Verify the signature and reject a timestamp more than 300 seconds old before you trust the body. Code in seven languages is in Verify webhook signatures; setup and retries are in Webhooks. Full field reference: Create an eSign request, Download the signed document, eSign completed webhook.
Was this page helpful? Email us at tech@idto.ai with the page link.
Last modified on October 4, 2026