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)

Authentication and access (401, 403)
CodeHTTPMeaning
UNAUTHENTICATED401The request carried no credential, or one the server does not recognise.
FORBIDDEN403You are authenticated, but your role does not allow this action.
INSUFFICIENT_SCOPE403The API token is valid but was not issued with the scope this operation needs.
TOKEN_ENVIRONMENT_MISMATCH401The token is valid, but for the other environment: a sandbox token sent to live, or a live token sent to sandbox.
ACCESS_CODE_REQUIRED401The sender set an access code for you, and none was sent.
ACCESS_CODE_INVALID401The access code does not match. Repeated attempts are rate-limited.
AUTH_REQUIRED401This link or this signature needs a one-time passcode first. The details name the methods still outstanding.
OTP_INVALID401That code is not right, has been used, was replaced by a newer one, or has had too many attempts.
INVALID_CREDENTIALS401The email and password do not match. An unknown address gets the same answer, so it does not reveal which addresses have accounts.
MFA_REQUIRED401The account uses two-factor authentication, and no code was sent.
MFA_INVALID401The two-factor code does not match.
SESSION_EXPIRED401The session has ended or was revoked.
SETUP_TOKEN_INVALID401The setup token is wrong or was not sent. Both get the same answer.

Not found or gone (404, 410)

Not found or gone (404, 410)
CodeHTTPMeaning
NOT_FOUND404There 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_EXPIRED410The signing deadline for this party or this envelope has passed.
OTP_EXPIRED410The code was valid for ten minutes and that time has passed.

Conflicts with the current state (409)

Conflicts with the current state (409)
CodeHTTPMeaning
ENVELOPE_NOT_DRAFT409The 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_TERMINAL409The envelope is COMPLETED, DECLINED or CANCELLED. Nothing moves it out of that state.
ENVELOPE_TYPE_MISMATCH409The envelope is a DOCUMENT where the operation needs a TEMPLATE, or the reverse.
PARTY_ALREADY_COMPLETED409This party has already completed their part. A second signature is refused.
PARTY_IS_WITNESSED409Another party is bound as a witness to this one, so it cannot be removed.
FIELD_NOT_PREFILLABLE409This 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_VIOLATION409Signing is sequential and an earlier party has not finished yet.
IDEMPOTENCY_KEY_REUSED409This Idempotency-Key was already used, with a different request body, in the last 24 hours.
REQUEST_IN_PROGRESS409A request with this Idempotency-Key is still being processed.
SEALING_IN_PROGRESS409The envelope is being sealed, and this operation has to wait until that finishes.
SIGNING_CLOSED409This envelope is no longer open for you to sign: it was cancelled or declined, you declined, or it has not been sent yet.
EMAIL_UNAVAILABLE409That address is already registered.
ALREADY_CLAIMED409This instance already has an administrator.
FIELD_NOT_FILLABLE409The sender marked this field read-only.
DISCLOSURE_HASH_MISMATCH409The 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_READY409Nothing has been presented to this party yet, so there is no document to show.
PRESENTED_HASH_MISMATCH409The 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)

Requests the server cannot accept (400, 413, 415, 422)
CodeHTTPMeaning
VALIDATION_FAILED422The request was malformed or failed validation. The details array names each field and the problem.
DOCUMENT_TYPE_INELIGIBLE422The uploaded file cannot be used as a signing document, for example a PDF that cannot be read.
PAGE_OUT_OF_RANGE422A field is placed on a page the document does not have.
PREPARATION_UNSUPPORTED422The document needs a preparation step this deployment cannot perform. It is refused rather than passed through unprepared.
NOT_READY_TO_DISTRIBUTE422The envelope cannot be sent yet: something it needs is missing, or the deployment has no usable signing certificate.
DELIVERY_UNSUPPORTED422The requested delivery method is not one this deployment can perform. Not returned by the current version.
SIGNATURE_TIER_INSUFFICIENT422The signature level requested is lower than the document requires. Reserved: not returned by the current version.
EXPORT_TOO_LARGE413The audit trail is too large to return in one response. It is refused rather than truncated.
AUTH_UNSUPPORTED422You must authenticate with a method this deployment cannot run.
PASSWORD_UNACCEPTABLE422The new password does not meet the password policy.
SETTING_INVALID422The setting is malformed, such as a bucket name containing a slash.
CURSOR_INVALID400The cursor was not issued by this server, or belongs to another organisation.
CONDITIONS_UNSUPPORTED422The envelope uses conditional routing or fields, which this version cannot evaluate. It is refused rather than ignored.
CONSENT_DEMONSTRATION_MISSING422Consent 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_MISSING422A required field for this party is still empty.

Too many requests (429)

Too many requests (429)
CodeHTTPMeaning
RATE_LIMITED429Too many requests in the current window.

Server side (500 and above)

Server side (500 and above)
CodeHTTPMeaning
DOCUMENT_WITHHELD500The 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_FAILED503The code could not be sent, so the challenge was closed.
SETTING_MISSING503The feature needs a setting nobody has configured yet. Nothing is broken.
SETTING_TEST_FAILED502The setting is well-formed, but the service it points at refused it.
INTERNAL500Something went wrong on the server.