Every API here is available over the APIs.io API and to AI agents over MCP.
{"openapi":"3.1.0","info":{"title":"Signathing API","version":"1.0.0","summary":"Send PDFs for e-signature (ESIGN and UETA consent captured) and get a certified copy with a public evidence trail.","description":"100 documents a month are free. After that each document sent draws down a prepaid balance: $0.06 (101 to 500), $0.03 (501 to 3,000), $0.025 (3,001+). Amounts in responses are in tenths of a cent (1000 = $1.00). Every signing event is appended to a public hash-chained evidence log (see /transparency). An MCP server with the same capabilities is at /api/mcp.","contact":{"email":"info@signathing.com","url":"https://signathing.com/developers"},"termsOfService":"https://signathing.com/terms"},"servers":[{"url":"https://signathing.com/api/v1"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from signathing.com/dashboard/api, e.g. sk_live_..."}},"schemas":{"Signer":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string","format":"email","description":"Where the signing link is emailed. Optional when `phone` is given."},"phone":{"type":"string","description":"E.164 mobile; the link is texted. Optional when `email` is given."},"role":{"type":"string"},"viewer":{"type":"boolean","description":"View-only recipient (certified delivery)."},"approver":{"type":"boolean","description":"Approver: must approve or reject before completion; never signs."},"cc":{"type":"boolean","description":"CC: receives the completed copy; nothing required."},"access_code":{"type":"string"},"access_code_hint":{"type":"string"},"payment_amount_cents":{"type":"integer","minimum":100,"maximum":5000000,"description":"Collect this many US cents from the signer after they sign, through Stripe Checkout into the sender's connected Stripe account. The document completes only once it is paid."},"payment_description":{"type":"string","description":"Shown on the Stripe checkout page; defaults to the document title."},"id_verification":{"type":"boolean","description":"Require a government ID plus selfie check (Stripe Identity) before this signer can sign. $2.00 an attempt from the prepaid balance."},"language":{"type":"string","enum":["en","es"],"description":"Language of this signer's emails, texts and signing page. Default en."}}},"Field":{"type":"object","required":["type","signerIndex","page","x","y","w","h"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["signature","initials","date","text","name","email","number","checkbox","radio","dropdown","attachment"],"description":"attachment asks the signer to upload a PDF or image (25 MB); the file is listed on the document and merged into the certified PDF."},"signerIndex":{"type":"integer","description":"0-based among signing recipients only."},"page":{"type":"integer","minimum":1},"x":{"type":"number"},"y":{"type":"number"},"w":{"type":"number"},"h":{"type":"number"},"label":{"type":"string"},"required":{"type":"boolean","description":"Default true (checkbox defaults false)."},"options":{"type":"array","items":{"type":"string"},"description":"Choices for radio and dropdown fields (2 to 20)."}}},"Document":{"type":"object","properties":{"id":{"type":"integer"},"object":{"type":"string","const":"document"},"status":{"type":"string","enum":["sent","completed","declined","voided","expired","cancelled"],"description":"A sent document whose expires_at has passed reads expired at once; the document.expired webhook fires once from the ten-minute sweep. POST /documents/{id}/extend puts it back to sent."},"title":{"type":"string"},"message":{"type":["string","null"]},"sequential":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"voided_at":{"type":["string","null"],"format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"original_sha256":{"type":"string"},"signed_sha256":{"type":["string","null"]},"sealed":{"type":"boolean","description":"The certified PDF carries Signathing's digital seal (see /.well-known/signathing-seal.pem)."},"test":{"type":"boolean","description":"Sent in test mode."},"erase_at":{"type":["string","null"],"format":"date-time","description":"When the files and personal details are erased (a retention setting, or the end of a test document's week). Null when the document is kept."},"fingerprint":{"type":"string","description":"sha256('signathing-doc:' + id + ':' + original_sha256); the document's key in the public evidence log."},"signers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":["string","null"]},"role":{"type":["string","null"]},"viewer":{"type":"boolean"},"approver":{"type":"boolean"},"cc":{"type":"boolean"},"status":{"type":"string","description":"pending | viewed | signed | approved | declined"},"order":{"type":"integer"},"viewed_at":{"type":["string","null"]},"signed_at":{"type":["string","null"]},"declined_reason":{"type":["string","null"]},"verification_code":{"type":["string","null"]},"signing_url":{"type":"string"}}}},"attachments":{"type":"array","description":"Files signers uploaded into attachment fields.","items":{"type":"object","properties":{"id":{"type":"integer"},"signer_id":{"type":"integer"},"field_id":{"type":"string"},"filename":{"type":"string"},"mime":{"type":"string"},"size":{"type":"integer"},"sha256":{"type":"string"},"download_url":{"type":"string"}}}},"downloads":{"type":"object","properties":{"original":{"type":"string"},"signed":{"type":["string","null"]}}},"evidence":{"type":"string","description":"URL of the evidence package."},"events":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"at":{"type":"string"},"signer_id":{"type":["integer","null"]},"detail":{"type":["string","null"]}}}}}},"Billing":{"type":"object","properties":{"charged_tenths":{"type":"integer"},"unit_this_month":{"type":"integer"},"balance_tenths":{"type":"integer"}}}}},"paths":{"/documents":{"post":{"operationId":"sendDocument","summary":"Send a PDF for signature","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","signers"],"properties":{"file":{"type":"string","format":"binary","description":"The PDF."},"title":{"type":"string"},"message":{"type":"string"},"signers":{"type":"string","description":"JSON array of Signer (up to 25 signers plus up to 25 viewers)."},"fields":{"type":"string","description":"JSON array of Field. A field gives page, x, y, w, h, or instead `anchor`: words printed in the PDF to place it against (with optional anchor_position right|left|above|below|over, anchor_occurrence 1..n|\"last\"|\"all\", anchor_dx, anchor_dy in percent of the page; w and h default by type). An anchor that is not found is a 400 anchor_not_placed, never a dropped field. A scanned PDF has no text to anchor on."},"sequential":{"type":"string","enum":["0","1"]},"expires_days":{"type":"integer","minimum":1,"maximum":365},"test":{"type":"string","enum":["0","1"],"description":"Test mode. Every message goes to the account's own email address instead of the people named (their addresses and numbers are not stored), no texts, no payment or ID check, no charge, the title is marked [TEST], and the document erases itself after 7 days. Up to 50 a month."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Document"},{"type":"object","properties":{"billing":{"$ref":"#/components/schemas/Billing"},"fields":{"type":"array","description":"Where every field landed, in percent of the page.","items":{"type":"object"}}}}]}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"not_open","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}},"get":{"operationId":"listDocuments","summary":"List documents","parameters":[{"name":"status","in":"query","schema":{"type":"string","enum":["sent","completed","declined","voided","expired","cancelled"]},"description":"expired includes sent documents whose date has passed; sent excludes them."},{"name":"limit","in":"query","schema":{"type":"integer","maximum":100}},{"name":"starting_after","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/documents/{id}":{"get":{"operationId":"getDocument","summary":"Get a document","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}},"delete":{"operationId":"deleteDocument","summary":"Delete a document","description":"Permanent. An open document must be voided first (409 open). A voided, declined or expired document is erased at once. A completed document leaves your account now and is erased 7 days later; everyone on it is told to save their signed copy first. Erased: the files, names, addresses, numbers, signature images and network addresses. Kept: the SHA-256 fingerprints, the times and each signature's verification code, so a signed copy someone holds still verifies. Refused with 409: a notice of cancellation or the contract it cancels, a document with a recorded acknowledgment, and a document a signer paid on inside the 180-day dispute window.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer"},"object":{"const":"document"},"deleted":{"const":true},"erased":{"type":"boolean","description":"true when already erased; false for a completed document waiting for erase_at."},"erase_at":{"type":"string","format":"date-time"},"recipients_notified":{"type":"integer"}}}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"not_open","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/documents/{id}/void":{"post":{"operationId":"voidDocument","summary":"Void an open document","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string"},"acknowledge_payment":{"type":"boolean","description":"Required (true) when a signer has already paid money at signing: voiding does not refund it. Without it the call returns 409 paid_payments."}}}}}},"responses":{"200":{"description":"Voided; billing.refunded says whether the unit came back."},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"not_open (the document is not open) or paid_payments (a signer paid at signing and acknowledge_payment was not true)."}}}},"/documents/{id}/remind":{"post":{"operationId":"remindDocument","summary":"Remind pending signers (once an hour)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"{ id, reminded, skipped: [{ signerId, name, reason }] } (skipped: later stages of a signers-in-order document, whose links go out when their turn comes)"},"409":{"description":"not_open, or expired (use /documents/{id}/extend)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/documents/{id}/extend":{"post":{"operationId":"extendDocument","summary":"Extend an expired document 14 days and resend its links","description":"For a document whose status is expired (stored, or sent and past expires_at): sets expires_at 14 days from now, puts the status back to sent, records an extended event, and sends a fresh link to everyone who has not signed. Signers-in-order: only the current stage is re-sent. Signatures already collected stay. Free.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"The document plus extension: { expires_at, resent, skipped: [{ signerId, name, reason }] }","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Document"},{"type":"object","properties":{"extension":{"type":"object","properties":{"expires_at":{"type":"string","format":"date-time"},"resent":{"type":"integer"},"skipped":{"type":"array","items":{"type":"object","properties":{"signerId":{"type":"integer"},"name":{"type":"string"},"reason":{"type":"string"}}}}}}}}]}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"not_expired: only an expired document can be extended","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/documents/{id}/download":{"get":{"operationId":"downloadDocument","summary":"Download the certified PDF (which=signed) or the original","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"which","in":"query","schema":{"type":"string","enum":["signed","original"],"default":"signed"}}],"responses":{"200":{"description":"PDF","content":{"application/pdf":{}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/documents/{id}/evidence":{"get":{"operationId":"getEvidence","summary":"Evidence package (hashes, signers, events, chain positions, verification recipe)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"JSON evidence package"},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/account":{"get":{"operationId":"getAccount","summary":"Balance, usage this month, projection","responses":{"200":{"description":"OK"}}}},"/templates":{"get":{"operationId":"listTemplates","summary":"List templates (PDF + placed fields + signer roles), with direct links","responses":{"200":{"description":"OK"}}},"post":{"operationId":"createTemplate","summary":"Create a template from a PDF","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"},"name":{"type":"string"},"roles":{"type":"string","description":"JSON array of role names in signing order, e.g. [\"Customer\",\"Contractor\"]"},"fields":{"type":"string","description":"JSON array of Field; signerIndex refers to the role index."}}}}}},"responses":{"201":{"description":"Template"},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"not_open","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/templates/{id}":{"get":{"operationId":"getTemplate","summary":"Get a template","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Template"},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}},"patch":{"operationId":"updateTemplate","summary":"Rename, or configure the direct link","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"direct":{"type":"object","properties":{"enabled":{"type":"boolean"},"slot":{"type":"integer","description":"Which role the visitor fills (0-based)."},"fixed_signers":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}}},"message":{"type":["string","null"]},"daily_cap":{"type":"integer","minimum":1,"maximum":500},"rotate":{"type":"boolean","description":"Issue a new URL; the old one stops working."}}}}}}}},"responses":{"200":{"description":"Template"},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}},"delete":{"operationId":"deleteTemplate","summary":"Delete a template (sent documents are unaffected)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Deleted"},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/templates/{id}/bulk":{"post":{"operationId":"bulkSendFromTemplate","summary":"Send one document per recipient from a template (up to 100 a call; each is a billable unit)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["recipients"],"properties":{"recipients":{"type":"array","maxItems":100,"items":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}}},"slot":{"type":"integer","description":"The role each recipient fills (0-based); defaults to the template's direct-link role."},"fixed_signers":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}},"description":"A person for every other role; defaults to the template's direct-link fixed signers."},"title":{"type":"string","description":"The recipient's name is appended."},"message":{"type":"string"},"expires_days":{"type":"integer"}}}}}},"responses":{"201":{"description":"{ object: 'bulk_send', sent: [{ row, name, document_id, url }], failed: [{ row, name, error }], stopped_early, billing }"},"402":{"description":"Nothing could be sent: balance."},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/templates/{id}/send":{"post":{"operationId":"sendFromTemplate","summary":"Send a document from a template (one billable unit)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["signers"],"properties":{"signers":{"type":"array","items":{"type":"object","required":["name"],"properties":{"slot":{"type":"integer","description":"0-based role index; omit to fill roles in order."},"name":{"type":"string"},"email":{"type":"string","description":"Optional when phone is given."},"phone":{"type":"string","description":"Optional when email is given."},"viewer":{"type":"boolean"},"access_code":{"type":"string"}}}},"title":{"type":"string"},"message":{"type":"string"},"sequential":{"type":"boolean"},"expires_days":{"type":"integer"}}}}}},"responses":{"201":{"description":"Document plus billing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"401":{"description":"unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"402":{"description":"insufficient_balance","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"not_open","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/usage":{"get":{"operationId":"getUsage","summary":"A month's ledger","parameters":[{"name":"month","in":"query","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$"}}],"responses":{"200":{"description":"OK"}}}}},"x-public-endpoints":{"description":"No key needed.","evidence_log":"https://signathing.com/api/evidence/log?from=1&to=1000","evidence_days":"https://signathing.com/api/evidence/days","evidence_document":"https://signathing.com/api/evidence/document/{fingerprint}","verify_code":"https://signathing.com/api/verify?code=XXXX-XXXX-XXXX-XXXX","mcp":"https://signathing.com/api/mcp"}}