Developers
API error codes
Every error response from the signrs API carries a stable code. The message is for people and may change; the code does not.
An error body is { "error": { "code", "message", "requestId", "docs" } }, with a details list when the problem is in particular fields. See an example.
Authentication and access (401, 403)
| Code | HTTP | Meaning |
|---|---|---|
UNAUTHENTICATED | 401 | The request carried no credential, or one the server does not recognise. |
FORBIDDEN | 403 | You are authenticated, but your role does not allow this action. |
INSUFFICIENT_SCOPE | 403 | The API token is valid but was not issued with the scope this operation needs. |
TOKEN_ENVIRONMENT_MISMATCH | 401 | The token is valid, but for the other environment: a sandbox token sent to live, or a live token sent to sandbox. |
ACCESS_CODE_REQUIRED | 401 | The sender set an access code for you, and none was sent. |
ACCESS_CODE_INVALID | 401 | The access code does not match. Repeated attempts are rate-limited. |
AUTH_REQUIRED | 401 | This link or this signature needs a one-time passcode first. The details name the methods still outstanding. |
OTP_INVALID | 401 | That code is not right, has been used, was replaced by a newer one, or has had too many attempts. |
INVALID_CREDENTIALS | 401 | The email and password do not match. An unknown address gets the same answer, so it does not reveal which addresses have accounts. |
MFA_REQUIRED | 401 | The account uses two-factor authentication, and no code was sent. |
MFA_INVALID | 401 | The two-factor code does not match. |
SESSION_EXPIRED | 401 | The session has ended or was revoked. |
SETUP_TOKEN_INVALID | 401 | The setup token is wrong or was not sent. Both get the same answer. |
Not found or gone (404, 410)
| Code | HTTP | Meaning |
|---|---|---|
NOT_FOUND | 404 | There is nothing at this address that you can see. A resource that exists but belongs to another organisation or team also answers 404, so its existence is not confirmed. |
LINK_EXPIRED | 410 | The signing deadline for this party or this envelope has passed. |
OTP_EXPIRED | 410 | The code was valid for ten minutes and that time has passed. |
Conflicts with the current state (409)
| Code | HTTP | Meaning |
|---|---|---|
ENVELOPE_NOT_DRAFT | 409 | The envelope has left DRAFT, so it can no longer be changed this way. It is still on its way somewhere: PENDING, SEALING, SEAL_FAILED or EXPIRED. |
ENVELOPE_TERMINAL | 409 | The envelope is COMPLETED, DECLINED or CANCELLED. Nothing moves it out of that state. |
ENVELOPE_TYPE_MISMATCH | 409 | The envelope is a DOCUMENT where the operation needs a TEMPLATE, or the reverse. |
PARTY_ALREADY_COMPLETED | 409 | This party has already completed their part. A second signature is refused. |
PARTY_IS_WITNESSED | 409 | Another party is bound as a witness to this one, so it cannot be removed. |
FIELD_NOT_PREFILLABLE | 409 | This field cannot be filled in before sending. Signature, initials and stamp fields are never prefilled, because they record a party’s own assent. |
SIGNING_ORDER_VIOLATION | 409 | Signing is sequential and an earlier party has not finished yet. |
IDEMPOTENCY_KEY_REUSED | 409 | This Idempotency-Key was already used, with a different request body, in the last 24 hours. |
REQUEST_IN_PROGRESS | 409 | A request with this Idempotency-Key is still being processed. |
SEALING_IN_PROGRESS | 409 | The envelope is being sealed, and this operation has to wait until that finishes. |
SIGNING_CLOSED | 409 | This envelope is no longer open for you to sign: it was cancelled or declined, you declined, or it has not been sent yet. |
EMAIL_UNAVAILABLE | 409 | That address is already registered. |
ALREADY_CLAIMED | 409 | This instance already has an administrator. |
FIELD_NOT_FILLABLE | 409 | The sender marked this field read-only. |
DISCLOSURE_HASH_MISMATCH | 409 | The disclosure hash you sent is not the hash of the disclosure the server holds. Disclosures are never edited in place, so the client is stale. |
DOCUMENT_NOT_READY | 409 | Nothing has been presented to this party yet, so there is no document to show. |
PRESENTED_HASH_MISMATCH | 409 | The document hash you sent is not the hash of the document presented to this party. There is no reconciling it: the signer was looking at something other than what the server showed them. |
Requests the server cannot accept (400, 413, 415, 422)
| Code | HTTP | Meaning |
|---|---|---|
VALIDATION_FAILED | 422 | The request was malformed or failed validation. The details array names each field and the problem. |
DOCUMENT_TYPE_INELIGIBLE | 422 | The uploaded file cannot be used as a signing document, for example a PDF that cannot be read. |
PAGE_OUT_OF_RANGE | 422 | A field is placed on a page the document does not have. |
PREPARATION_UNSUPPORTED | 422 | The document needs a preparation step this deployment cannot perform. It is refused rather than passed through unprepared. |
NOT_READY_TO_DISTRIBUTE | 422 | The envelope cannot be sent yet: something it needs is missing, or the deployment has no usable signing certificate. |
DELIVERY_UNSUPPORTED | 422 | The requested delivery method is not one this deployment can perform. Not returned by the current version. |
SIGNATURE_TIER_INSUFFICIENT | 422 | The signature level requested is lower than the document requires. Reserved: not returned by the current version. |
EXPORT_TOO_LARGE | 413 | The audit trail is too large to return in one response. It is refused rather than truncated. |
AUTH_UNSUPPORTED | 422 | You must authenticate with a method this deployment cannot run. |
PASSWORD_UNACCEPTABLE | 422 | The new password does not meet the password policy. |
SETTING_INVALID | 422 | The setting is malformed, such as a bucket name containing a slash. |
CURSOR_INVALID | 400 | The cursor was not issued by this server, or belongs to another organisation. |
CONDITIONS_UNSUPPORTED | 422 | The envelope uses conditional routing or fields, which this version cannot evaluate. It is refused rather than ignored. |
CONSENT_DEMONSTRATION_MISSING | 422 | Consent to electronic records was sent without the demonstration that the person can open the format actually used. A checkbox does not stand in for it. |
REQUIRED_FIELD_MISSING | 422 | A required field for this party is still empty. |
Too many requests (429)
| Code | HTTP | Meaning |
|---|---|---|
RATE_LIMITED | 429 | Too many requests in the current window. |
Server side (500 and above)
| Code | HTTP | Meaning |
|---|---|---|
DOCUMENT_WITHHELD | 500 | The document was withheld because the stored record and the stored file disagree, or a signature in it no longer validates. Nothing you did caused this. |
OTP_DELIVERY_FAILED | 503 | The code could not be sent, so the challenge was closed. |
SETTING_MISSING | 503 | The feature needs a setting nobody has configured yet. Nothing is broken. |
SETTING_TEST_FAILED | 502 | The setting is well-formed, but the service it points at refused it. |
INTERNAL | 500 | Something went wrong on the server. |