Step 1: Create the docket
documents[].contentis base64-encoded PDF content, capped at 10 MB per document.signer_position.appearanceis 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 bypage_number("1","all", or a list like"3,5"), not per coordinate box.final_copy_recipientsis a comma-separated list of emails to receive the signed copy once complete.- Save the
docket_idanddocument_idyou 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):
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.
POST /verify/esign/document returns:
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.
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: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.