Skip to Content

Errors

The error shape, every status code the API returns, and the codes to branch on.

A failed call returns success: false and a message in error. Many refusals add a stable code for your code to branch on. Plan refusals also carry plansUrl.

{ "success": false, "code": "template_not_ready", "error": "This template is still a draft. An owner or admin needs to finalise it before it can be sent." }

Branch on code when it is there. A few older refusals put their stable word in error instead, such as api_key_expired, insufficient_scope and idempotency_key_reused; they are listed below. Never branch on the wording of a message: it is written for people and can change.

Status codes

StatusWhenCodes and messages
400The MCP server got a body that is not JSON. The REST API answers bad JSON with 422.JSON-RPC error -32700
401The key is missing, wrong or past its expiry.invalid or missing API key, api_key_expired
402The workspace's plan does not include this.plan_feature, plan_limit
403The key may not do this, or the workspace is not active.insufficient_scope, forbidden, workspace suspended, workspace_pending, workspace_unavailable, legal_acceptance_required
404Not found in this workspace. Another workspace's ids are also 404.not found, not_found
409The request is fine, but the current state refuses it.request already in progress, contract_risk_required, template_not_ready, version_mismatch, too_many_running, batch_finished, not_fixable
413The file is too big or has too many pages.file too large
415The upload is not a PDF or DOCX.unsupported file type
422The request failed a check.invalid request, idempotency_key_reused, esign_not_allowed, esign_ack_required and the template codes below
429Too many calls. Wait for the Retry-After header's seconds.rate limit exceeded, rate_limited
500Something went wrong on our side. Retry with the same Idempotency-Key.internal error

Each endpoint lists its own errors on its page in the API reference.

401: the key

invalid or missing API key means the header is missing or the key is wrong or revoked. api_key_expired means the key passed the expiry date set when it was made. Make a new key in Settings, API keys. See API keys and scopes.

402: the plan

{
  "success": false,
  "code": "plan_feature",
  "error": "The API and MCP server are on the Business plan. This workspace is on Starter.",
  "plansUrl": "/pricing"
}
  • plan_feature: the plan does not include the feature. The API and MCP server are on the Business plan.
  • plan_limit: the action would go over a plan limit, such as recipients on one envelope.

plansUrl is a path on appliflo.com. An owner or admin changes the plan in Settings, Billing. See Plans and AI pages.

403: scope and workspace

insufficient_scope comes with required_scope, the scope the key is missing. forbidden means the key may not touch that item, for example deleting a document a person uploaded. A workspace that is suspended, waiting for approval or closed gets the matching message on every call.

409: state

CodeWhat to do
request already in progressA call with the same Idempotency-Key is still running. Wait, then retry with the same key.
contract_risk_requiredAn AppliFlo library contract that our lawyer has not reviewed. Send again with risk_accepted: true once your user accepts the risk. See Send a saved template and Send to many.
template_not_readyThe saved template is still a draft. An owner or admin finalises it in the app.
version_mismatchThe template was finalised again since you read it. Read it again and send the new version.
too_many_runningTwo batches are already sending. Wait for one, or cancel one.
batch_finishedThe batch has already finished, so it cannot be cancelled.
not_fixableOnly a failed row can be fixed.

Deleting a document that has been sent, and voiding an envelope whose status can't be voided, are also 409.

422: checks

invalid request means the body did not match the endpoint's schema. Read its page in the API reference. Other 422 codes:

CodeMeaning
idempotency_key_reusedThe Idempotency-Key was first used with a different request. Use a new key for a new request. See Idempotency.
esign_not_allowedThe form must be signed by hand, such as USCIS I-130 or SSA SS-5. Download the filled PDF instead. See Send for signature.
esign_ack_requiredThe form's agency may reject an electronic signature. Send again with the acknowledgement once your user agrees.
missing_person, unknown_role, duplicate_emailA template role has no person, a role key is wrong, or two roles share an email.
role_owned_field, unknown_field, locked_fieldA prefill names a box a recipient fills, a box that does not exist, or a box the template locks.
cc_invalid, subject_invalidA copy address or the subject is not valid.
signature_not_adoptedThe template has a box the sender signs. Only a signed-in sender can send it, not an API key.
too_many_rows, quota_exceeded, nothing_to_sendSend to many: more than 500 rows, more envelopes than the month has left, or every row needs a fix.
no_changeA row fix that changes nothing.

429: slow down

Every key has a budget per minute. When it runs out, the reply is 429 with a Retry-After header in seconds:

HTTP/1.1 429 Too Many Requests
Retry-After: 17

{ "success": false, "error": "rate limit exceeded" }

Wait that long, then retry. See Rate limits.

Each workspace also has a daily envelope limit, lower while the workspace is new. Going over it is a 429 too, with a message saying to try again tomorrow.

Other server errors

502 means a connected CRM did not answer during a prefill. 503 means sending is paused on our side for a while, with a code. 504 means reading the form took too long; try again. For any 5xx, retry with the same Idempotency-Key so nothing is done twice.

On this page