E-signing API
Base path: /api/v1/pdf_handler/signing/. Python: methods on client.pdf. API-key scope:
convert (scopes).
The session owner calls the sessions/ routes with a bearer token. Each participant acts
through the {token} in their invitation link and sends no bearer token.
| Method | Path | Python | Purpose |
|---|---|---|---|
POST | /sessions/ | pdf.create_signing_session(path, emails=[...], title=None) | Upload the PDF (multipart) and invite the signers |
GET | /sessions/ | pdf.list_signing_sessions(limit=None, offset=None) | Sessions you own |
GET | /sessions/{session_id}/ | pdf.get_signing_session(session_id) | One session; carries signed_url once everyone has signed |
POST | /sessions/{session_id}/participants/{participant_id}/resend/ | pdf.resend_signing_invite(session_id, participant_id) | New link for one participant |
GET | /sign/{token}/ | pdf.get_sign_token(token) | Participant: view the document (document_url) |
POST | /sign/{token}/otp/ | pdf.request_sign_otp(token) | Participant: email a one-time code; answers 202 {"otp_sent": true, "expires_in": ...} |
POST | /sign/{token}/ | pdf.submit_sign(token, otp) | Participant: sign with the code, JSON body {"otp": "..."} |
POST | /sign/{token}/decline/ | pdf.decline_sign(token) | Participant: decline |
The participant certificate and wet-signature upload routes were removed: no client used them.
Signing with a one-time code
Since 0.6.0 a signature needs a code emailed to the participant’s invited address:
from indox_client import Indox
with Indox() as client:
client.pdf.request_sign_otp(token)
client.pdf.submit_sign(token, input("Code from the email: "))A new code replaces the previous one. A wrong code answers 400 with attempts_left, too many
wrong entries for one code answer 429, and too many across all codes lock the participant
(403) until the owner resends the invitation. A link past its lifetime answers 410, which the
Python client raises as GoneError.
The API reference lists every signing error code, the session and participant statuses, link expiry, and what a resend resets.
Changes from 0.5
submit_signtakes the emailed code; callrequest_sign_otpfirst.- Sessions return
signed_url(wassigned_s3_key), and the sign view returnsdocument_url(wasdownload_key). - Participants no longer carry
sign_path; they carryid,lockedandlink_expires_at. - Participants no longer carry
certificate_subject,certificate_fingerprintorhas_wet_signature; the routes that filled them were removed.