{"openapi":"3.1.0","info":{"title":"easysign API","description":"Upload PDFs for signing, follow their status and download the signed copies.\n\n* **Authentication**: an API key from *Settings > API* as `Authorization: Bearer es_live_…`.\n  A key acts as the person who created it: they are the sender the signers see.\n* **Errors**: `{\"error\": {\"code\": \"insufficient_credits\", \"message\": \"...\", \"details\": {...}}}`\n  with a fitting status; `code` is stable.\n* **Limits**: requests per key and minute (`X-RateLimit-*` headers, 429 `rate_limited` with\n  `Retry-After`), 60 uploads and 300 downloads an hour.\n* **Retries**: send `Idempotency-Key` with a POST; a repeat within 24 hours returns the first\n  answer (`Idempotent-Replayed: true`).\n* **Following up**: poll `GET /documents/{id}` (with `If-None-Match`), `GET /documents?\n  updated_since=`, or the event feed `GET /events`; or subscribe a webhook.\n* **Compatibility**: v1 only grows. Ignore fields and enum values you do not know.\n\nGuide: https://geteasysign.app/en/docs/api\n","version":"1.0.0"},"servers":[{"url":"https://geteasysign.app"}],"paths":{"/api/v1/documents":{"post":{"tags":["documents"],"summary":"Create a document (and send it)","description":"Upload a PDF and create a draft; with `signers` (each with a `field` or an `anchor`) and\n`send: true` it goes out at once. 201, or 202 when the send is queued behind the virus scan\n(`send.state` `queued`). Errors: 415 `not_a_pdf`, 413 `pdf_too_large`, 422 `pdf_encrypted`,\n`pdf_already_signed`, `pdf_unreadable`, `pdf_too_complex`, `validation_error`,\n`anchor_not_found`, `anchor_ambiguous`, `field_too_small`, `field_outside_page`,\n`missing_fields`, `duplicate_signer_email`; 402 `insufficient_credits`; 429\n`email_rate_limited`.","operationId":"create_document","security":[{"ApiKey":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_document"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"202":{"description":"Created; the send is queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}}}},"get":{"tags":["documents"],"summary":"List documents","description":"The organization's documents by last change (`updated_at`), with their signers.\nA signer's own steps (viewed, invited) do not change `updated_at`: follow those with\n`GET /events`.","operationId":"list_documents","security":[{"ApiKey":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/DocumentStatus"}},{"type":"null"}],"description":"Only these statuses (repeatable)","title":"Status"},"description":"Only these statuses (repeatable)"},{"name":"external_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"External Id"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only documents changed after this moment","title":"Updated Since"},"description":"Only documents changed after this moment"},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"By last change; `asc` suits syncing","default":"desc","title":"Order"},"description":"By last change; `asc` suits syncing"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPage"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/documents/{document_id}":{"get":{"tags":["documents"],"summary":"Get a document (poll its status)","description":"The document with its signers and download links. Poll it with the `ETag` it answers\nin `If-None-Match`: 304 while nothing changed.","operationId":"get_document","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"Not modified (`If-None-Match`)"}}},"patch":{"tags":["documents"],"summary":"Change a document","description":"Title, message, signing order and deadline of a draft (409 `document_not_draft`);\n`external_id` and `metadata` in any state.","operationId":"update_document","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["documents"],"summary":"Delete a draft","description":"409 `document_not_draft` for a document that was sent (cancel it instead).","operationId":"delete_document","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/documents/{document_id}/signers":{"put":{"tags":["documents"],"summary":"Replace the signers of a draft","description":"The whole list, each signer with its box (`field` or `anchor`). 409 `document_not_draft`;\n422 as for creating.","operationId":"set_signers","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignerIn"},"maxItems":50,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/documents/{document_id}/send":{"post":{"tags":["documents"],"summary":"Send a draft","description":"Reserve the credits, add the boxes to the PDF and invite the signers. 202 with\n`send.state` `queued` while the upload is being virus scanned. 402 `insufficient_credits`,\n422 `missing_signers`, `missing_fields`, `invalid_expiry`, `file_infected`; 409\n`document_not_draft`.","operationId":"send_document","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"202":{"description":"The send is queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}}}}},"/api/v1/documents/{document_id}/cancel":{"post":{"tags":["documents"],"summary":"Cancel a document out for signature","description":"Releases the unused credits and tells the invited signers. 409 `document_not_open`.","operationId":"cancel_document","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/documents/{document_id}/signers/{signer_id}/remind":{"post":{"tags":["documents"],"summary":"Email a signer their link again","description":"At most once an hour per signer (429 `remind_too_soon`). 409 `document_not_open`,\n`signer_not_invited`; 404 `signer_not_found`.","operationId":"remind_signer","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"signer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Signer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignerOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/documents/{document_id}/file":{"get":{"tags":["documents"],"summary":"Download the PDF","description":"`original`: as uploaded; `latest`: the current version, the signed PDF once the document\nis `completed`.","operationId":"download_document","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"version","in":"query","required":false,"schema":{"enum":["original","latest"],"type":"string","default":"latest","title":"Version"}}],"responses":{"200":{"description":"The PDF","content":{"application/pdf":{}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/documents/{document_id}/audit-certificate":{"get":{"tags":["documents"],"summary":"Download the audit certificate","description":"Who did what, when and from where, with the signing certificates and the SHA-256 of the\noriginal and the latest version. 409 `document_is_draft`.","operationId":"download_audit_certificate","security":[{"ApiKey":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Locale"},{"type":"null"}],"description":"Default: the key user's language","title":"Locale"},"description":"Default: the key user's language"}],"responses":{"200":{"description":"The audit certificate","content":{"application/pdf":{}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/events":{"get":{"tags":["events"],"summary":"List events","description":"Events of the organization's documents: `document.sent`, `signer.invited`,\n`signer.viewed`, `signer.signed`, `signer.declined`, `document.completed`,\n`document.declined`, `document.expired`, `document.cancelled`, `document.send_failed`.\nThey appear 30 seconds after they happened. 422 `invalid_cursor`, `invalid_event_types`.","operationId":"list_events","security":[{"ApiKey":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Continue after this event","title":"After"},"description":"Continue after this event"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"`desc`: page back from here","title":"Before"},"description":"`desc`: page back from here"},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only these event types (repeatable, or comma-separated)","title":"Types"},"description":"Only these event types (repeatable, or comma-separated)"},{"name":"document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Id"}},{"name":"order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"asc","title":"Order"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPage"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/api/v1/me":{"get":{"tags":["account"],"summary":"Check the API key","description":"The key, the user it acts for (the sender of its documents) and the organization: what\na \"test connection\" button calls.","operationId":"get_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/credits":{"get":{"tags":["account"],"summary":"Credits","description":"Balance, reserved (held by documents out for signature) and available. Sending needs the\nsigners' cost available (simple 1 credit, qualified 2), else 402 `insufficient_credits`.","operationId":"get_credits","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsOut"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List webhooks","description":"The webhooks this API key created.","operationId":"list_webhooks","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WebhookOut"},"type":"array","title":"Response List Webhooks"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"ApiKey":[]}]},"post":{"tags":["webhooks"],"summary":"Subscribe a webhook","description":"POST the events to `url` (https, public). The answer carries the signing `secret` once.\n422 `invalid_webhook_url`, `webhook_url_not_allowed`, `invalid_event_types`; 409\n`too_many_webhooks`.","operationId":"create_webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreated"}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"security":[{"ApiKey":[]}]}},"/api/v1/webhooks/{webhook_id}":{"delete":{"tags":["webhooks"],"summary":"Unsubscribe a webhook","description":"404 `webhook_not_found` (also for a webhook another key or Settings created).","operationId":"delete_webhook","security":[{"ApiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"default":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}},"components":{"schemas":{"AnchorIn":{"properties":{"text":{"type":"string","maxLength":100,"minLength":1,"title":"Text"},"x_offset":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"X Offset","default":0.0},"y_offset":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"Y Offset","default":0.0},"w":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"W","default":200.0},"h":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"H","default":60.0}},"additionalProperties":false,"type":"object","required":["text"],"title":"AnchorIn","description":"Place the box at a text printed in the PDF (e.g. ``[[sign:1]]``): its bottom-left corner\nat the bottom-left of the text, moved by the offsets, kept inside the page. The text must be\nfound exactly once (whitespace is ignored) and be real text, not part of an image."},"Body_create_document":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"The PDF (at most 20 MB)"},"data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data","description":"JSON: the `DocumentIn` object (title, signers, send, ...)"}},"type":"object","required":["file"],"title":"Body_create_document"},"Box":{"properties":{"page":{"type":"integer","title":"Page"},"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"w":{"type":"number","title":"W"},"h":{"type":"number","title":"H"}},"type":"object","required":["page","x","y","w","h"],"title":"Box"},"BoxIn":{"properties":{"page":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Page"},"x":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"X"},"y":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"Y"},"w":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"W"},"h":{"type":"number","maximum":10000000.0,"minimum":-10000000.0,"title":"H"}},"additionalProperties":false,"type":"object","required":["page","x","y","w","h"],"title":"BoxIn","description":"A signature box in the displayed page space: points, origin bottom-left of the visible\npage, 1-based page. At least 180 x 50 and inside the page."},"CreditsOut":{"properties":{"balance":{"type":"integer","title":"Balance"},"reserved":{"type":"integer","title":"Reserved","description":"Held by documents out for signature"},"available":{"type":"integer","title":"Available"}},"type":"object","required":["balance","reserved","available"],"title":"CreditsOut"},"DocumentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"title":{"type":"string","title":"Title"},"status":{"$ref":"#/components/schemas/DocumentStatus","description":"`draft`, `out_for_signature`, `completed`, `declined`, `expired`, `cancelled`"},"signing_order":{"$ref":"#/components/schemas/SigningOrder"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"sender":{"$ref":"#/components/schemas/Sender"},"send":{"$ref":"#/components/schemas/SendState"},"scan_status":{"type":"string","enum":["pending","clean","infected","skipped"],"title":"Scan Status"},"page_count":{"type":"integer","title":"Page Count"},"pages":{"items":{"$ref":"#/components/schemas/PageSize"},"type":"array","title":"Pages"},"signers":{"items":{"$ref":"#/components/schemas/SignerOut"},"type":"array","title":"Signers"},"signed_count":{"type":"integer","title":"Signed Count"},"signer_count":{"type":"integer","title":"Signer Count"},"credits_reserved":{"type":"integer","title":"Credits Reserved"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"kept_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kept Until","description":"When a finished document will be deleted at the earliest: download what you need to keep before then"},"files":{"$ref":"#/components/schemas/Files"}},"type":"object","required":["id","external_id","metadata","title","status","signing_order","message","sender","send","scan_status","page_count","pages","signers","signed_count","signer_count","credits_reserved","created_at","updated_at","sent_at","completed_at","expires_at","kept_until","files"],"title":"DocumentOut"},"DocumentPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DocumentOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass as `cursor` for the next page"}},"type":"object","required":["items","next_cursor"],"title":"DocumentPage"},"DocumentPatch":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Title"},"message":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Message"},"signing_order":{"anyOf":[{"$ref":"#/components/schemas/SigningOrder"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"external_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"External Id"},"metadata":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Metadata"}},"additionalProperties":false,"type":"object","title":"DocumentPatch","description":"Only the fields that are sent change. Title, message, order and deadline: drafts only;\n``external_id`` and ``metadata``: always."},"DocumentStatus":{"type":"string","enum":["draft","out_for_signature","completed","declined","expired","cancelled"],"title":"DocumentStatus"},"ErrorBody":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","required":["code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"Event":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type","description":"e.g. `signer.signed`, `document.completed`"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"signer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Signer Id"}},"type":"object","required":["id","type","created_at","document_id","external_id","signer_id"],"title":"Event"},"EventPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Event"},"type":"array","title":"Items"},"next_after":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next After","description":"Pass as `after` to continue (`null`: nothing yet; keep the last one)"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["items","next_after","has_more"],"title":"EventPage"},"Files":{"properties":{"original":{"type":"string","title":"Original","description":"The PDF as uploaded"},"latest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest","description":"The current version (with the signatures so far)"},"signed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed","description":"The signed PDF, once the document is completed"},"audit_certificate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audit Certificate","description":"Once the document was sent"}},"type":"object","required":["original","latest","signed","audit_certificate"],"title":"Files","description":"Download links (they need the API key)."},"Locale":{"type":"string","enum":["nl","fr","en"],"title":"Locale"},"MeKey":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","name","prefix","scopes","expires_at"],"title":"MeKey"},"MeOrg":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"MeOrg"},"MeOut":{"properties":{"api_key":{"$ref":"#/components/schemas/MeKey"},"user":{"$ref":"#/components/schemas/MeUser","description":"Who the key acts for: the sender of its documents"},"organization":{"$ref":"#/components/schemas/MeOrg"}},"type":"object","required":["api_key","user","organization"],"title":"MeOut"},"MeUser":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","name","email"],"title":"MeUser"},"PageSize":{"properties":{"width":{"type":"number","title":"Width"},"height":{"type":"number","title":"Height"}},"type":"object","required":["width","height"],"title":"PageSize","description":"Displayed size of a page in points (CropBox and /Rotate applied)."},"SendState":{"properties":{"state":{"type":"string","enum":["not_requested","queued","sent","failed"],"title":"State"},"requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requested At","description":"When a send was queued (API)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Why a queued send failed (an error code)"}},"type":"object","required":["state","requested_at","error"],"title":"SendState"},"Sender":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id","description":"`null` once the sender left the organization"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","name","email"],"title":"Sender"},"SignatureLevel":{"type":"string","enum":["simple","qualified"],"title":"SignatureLevel","description":"What the sender asks of a signer (eIDAS levels; see ``services/credits.py`` for the price).\n\n``simple``: a simple electronic signature (SES). The signer opens their personal link, types\ntheir name and confirms; we seal the PDF with our own certificate.\n``qualified``: a qualified electronic signature (QES) with the signer's Belgian eID card."},"SignerIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"locale":{"anyOf":[{"$ref":"#/components/schemas/Locale"},{"type":"null"}],"description":"Language of the emails and the stamp; default: the org's"},"level":{"$ref":"#/components/schemas/SignatureLevel","description":"`simple`: through the emailed link (1 credit); `qualified`: with the Belgian eID card (2 credits)","default":"simple"},"position":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Position","description":"1..n, the order of a sequential document; default: the list order"},"field":{"anyOf":[{"$ref":"#/components/schemas/BoxIn"},{"type":"null"}],"description":"Where the signature goes"},"anchor":{"anyOf":[{"$ref":"#/components/schemas/AnchorIn"},{"type":"string"},{"type":"null"}],"title":"Anchor","description":"Or: the text in the PDF where it goes (a string: that text, default size)"}},"additionalProperties":false,"type":"object","required":["name","email"],"title":"SignerIn"},"SignerOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"locale":{"$ref":"#/components/schemas/Locale"},"level":{"$ref":"#/components/schemas/SignatureLevel"},"position":{"type":"integer","title":"Position"},"status":{"$ref":"#/components/schemas/SignerStatus","description":"`pending` (not invited yet: sequential), `invited`, `signed`, `declined`"},"credits":{"type":"integer","title":"Credits","description":"What this signature costs"},"invited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invited At"},"signed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signed At"},"declined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Declined At"},"decline_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decline Reason"},"field":{"anyOf":[{"$ref":"#/components/schemas/Box"},{"type":"null"}]}},"type":"object","required":["id","name","email","locale","level","position","status","credits","invited_at","signed_at","declined_at","decline_reason","field"],"title":"SignerOut"},"SignerStatus":{"type":"string","enum":["pending","invited","signed","declined"],"title":"SignerStatus"},"SigningOrder":{"type":"string","enum":["any","sequential"],"title":"SigningOrder"},"WebhookCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"enabled":{"type":"boolean","title":"Enabled"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"secret":{"type":"string","title":"Secret","description":"Verifies `Easysign-Signature`; shown once here"}},"type":"object","required":["id","url","description","event_types","enabled","disabled_reason","created_at","secret"],"title":"WebhookCreated"},"WebhookIn":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"event_types":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Event Types","description":"Empty: every event type"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","required":["url"],"title":"WebhookIn"},"WebhookOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"enabled":{"type":"boolean","title":"Enabled"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","url","description","event_types","enabled","disabled_reason","created_at"],"title":"WebhookOut"}},"securitySchemes":{"ApiKey":{"type":"http","description":"An API key from Settings > API: `Authorization: Bearer es_live_…`","scheme":"bearer"}}},"tags":[{"name":"documents","description":"Upload, send, follow up and download"},{"name":"events","description":"What happened, for polling"},{"name":"webhooks","description":"Events pushed to your URL"},{"name":"account","description":"The key and the credits"}]}