API errors
When a call fails, the API tells you three things: an HTTP status that says what kind of failure it was, a sentence that explains it, and sometimes a short code your software can act on. This page lists all of them, so you can decide in your integration what to retry, what to fix and what to show a person.
The error body
Section titled “The error body”Errors are JSON in the problem details format, which is a common standard for HTTP APIs:
{ "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3", "title": "Access Denied", "status": 403, "detail": "Access denied for resource", "instance": "/v1/forms/01a1aaf9-fcea-7500-823e-03361cb8ad39"}| Field | What it holds |
|---|---|
type |
A link to the part of the HTTP standard that defines the status, or about:blank. |
title |
A short name for the kind of failure. |
status |
The HTTP status again, handy when the body is logged on its own. |
detail |
The sentence that explains this failure. This is the part to log or show. |
instance |
The path you called. |
code |
A stable word for the failure, such as reconnect_required. It is present only for failures that have one. See codes. |
title and detail follow your Accept-Language header, and they are in Polish if you send none. They are for people. Make your code’s decisions from status and code, which never change with language.
Validation errors
Section titled “Validation errors”When the data you sent does not pass, the API answers 422 and adds a violations list with one entry per problem:
{ "violations": [ { "field": "title", "message": "A title is required.", "code": "c1051bb4-d103-4f74-8988-acbcafc7fdc3" } ], "type": "https://tools.ietf.org/html/rfc4918#section-11.2", "title": "Validation Error", "status": 422, "detail": "The submitted data is invalid. Please check the fields and try again.", "instance": "/v1/forms"}| Field | What it holds |
|---|---|
field |
The path of the field, with dots for nested ones, such as address.street. |
message |
What is wrong, in the language of the answer. |
code |
An identifier of the rule that failed, or null. Do not rely on it. |
A field of the wrong type, or a required field that is missing, is reported the same way. Some checks, such as those on a workflow, join several messages for one field with commas.
If your integration feeds a form of its own, field tells you which input to mark and message is ready to show beside it, in the language you asked for.
Statuses
Section titled “Statuses”Each endpoint’s entry lists the errors of its own. 400, 401, 403, 404, 415, 422 and 500 can come from any endpoint their cause applies to. A GET, for one, doesn’t read a body, so it never answers 415.
| Status | Title | What it means | What to do |
|---|---|---|---|
400 |
Bad Request | The JSON is broken, or a query parameter, a filter, a sort or a page number is not valid. | Fix the request. The detail says which part, such as Invalid filter field. |
400 |
Required Field Missing, Invalid Argument | The data could not be stored as sent. | Fix the request. |
401 |
Unauthorized | The request carries no credentials, or only one of the two headers. The answer also has a WWW-Authenticate header. |
Send both X-Api-Key and X-Api-Secret. |
401 |
Authentication Failed | The key and secret were not accepted. See below. | Check the credentials and the key’s state. Do not retry unchanged. |
403 |
Access Denied | The key may not make this call. See below. | Add the permission, or use the app if keys cannot do this. |
403 |
Forbidden | Your organization is blocked, your plan does not include this, or a plan limit is reached. The detail says which. | Check your plan. |
404 |
Not Found | The address does not exist, or the record does not exist in your organization. A malformed id and a record of another organization both answer this way. These cases look the same on purpose. | Check the id. |
405 |
Method Not Allowed | The address exists but takes other methods. The Allow header lists them. |
Use the right method. |
409 |
Conflict | The request clashes with how things stand, for example the name is taken in a cloud folder. | Read code, then fix the cause. |
409 |
Duplicate Entry | A record with the same data already exists. | Use the existing one. |
409 |
Data Integrity Violation | Other records still depend on this one. | Remove or change those first. |
410 |
Gone | A personal link was revoked, has expired or was used up. | Read code, and ask whoever sent it for a new link. |
413 |
Payload Too Large | What you sent is too big. | Send less, or a smaller file. |
415 |
Unsupported Media Type | The body has no Content-Type, or one this endpoint does not read, or the file is of a kind it cannot take. |
Send Content-Type: application/json, or a supported file. |
422 |
Validation Error | The data is well-formed but not acceptable. | Read violations, or detail when there are none. |
429 |
Too Many Requests | A connected drive or a payment provider is throttling you, calls to a webhook passed your organization’s rate limits, your organization started more than 30 bulk actions within the hour, or a draft’s documents were rendered faster than allowed. | Wait. If there is a Retry-After header, it holds the seconds to wait. |
500 |
Internal Server Error | The failure is on our side. | Retry later. If it persists, contact support with the X-Request-ID. |
503 |
Service Unavailable | A service needed for this call is down or overloaded for a moment, or the file or template you change was busy with another change for longer than the call waits. | Retry with a growing delay. |
Now and then you may meet another 4xx, such as 406 or 412. It keeps its status, with the title Bad Request and a general detail. Treat it like a 400.
A failure on our side never exposes internal details. The detail says only that something went wrong, or what you can do about it.
Refused keys
Section titled “Refused keys”These are the sentences you see when a key is refused, in English:
| Status | Detail | Cause |
|---|---|---|
401 |
Authentication is required. Please log in to access this resource. | No credentials, or only one of the two headers. The wording is shared with the app, so ignore the part about logging in. |
401 |
API key and secret are required. | Both headers came, but one is empty. |
401 |
Invalid API credentials. | No such key, or the wrong secret. The API does not say which. |
401 |
This API key is inactive or expired. | The key is disabled or past its date. See access keys. |
403 |
You do not have permission to perform this operation. | The key holds nothing that rests on the role permission this endpoint needs, or the endpoint is closed to keys. |
403 |
Access denied for resource | The key lacks the exact permission for this endpoint, or the endpoint is closed to keys. |
403 |
This action is personal and cannot be performed with an API key. Sign in to the application. | Only a signed-in person can do this. |
403 |
Your organization has been blocked. Contact Doxtly support. | The organization is blocked. code is organization_blocked. |
404 |
The workspace for this address could not be determined. | You called an organization’s own address with a key of another organization. |
Either 403 about permissions means the same thing to you: compare the endpoint with the permission list.
Plan limits
Section titled “Plan limits”A 403 from your plan names the feature in its detail:
| Detail | Meaning |
|---|---|
| You have reached the “…” limit for this billing period (… of … used). | A monthly allowance is used up. |
| You have reached the “…” limit of your plan (… of …). To add more, delete some you no longer need or upgrade your plan. | You hold as many of these as the plan allows. |
| The “…” feature is not available in your current subscription plan. | The plan does not include this at all. |
When a limit is reached, the app also tells your team in a notification. How limits work and how overage can keep you going is in plans and limits.
A code is the part of an error that is safe to build logic on. These are the codes a key can meet.
Organization
Section titled “Organization”| Code | Status | Meaning |
|---|---|---|
organization_blocked |
403 |
Your organization is blocked. |
organization_unavailable |
403 |
A call to a webhook address of a blocked organization. |
Deleting what workflows use
Section titled “Deleting what workflows use”| Code | Status | Meaning |
|---|---|---|
used_by_workflows |
409 |
Workflows still use the record you are deleting: a form, a quiz, a survey, an interactive document, an email or message template, a template, an incoming webhook, a company or a contact type. The body adds workflows, a list of {id, name}. Change those workflows first. |
Cloud files
Section titled “Cloud files”| Code | Status | Meaning |
|---|---|---|
not_found |
404 |
The file or folder does not exist. |
integration_not_found |
404 |
No such connected drive. |
item_exists |
409 |
Something with this name is already there. |
ambiguous_path |
409 |
Two items answer to the same path, such as a file results.xlsx and a native sheet results. |
conflict |
409 |
The item changed between reading and writing it. |
reconnect_required |
409 |
The provider no longer accepts the connection. Someone has to connect the integration again. |
integration_inactive |
409 |
The integration is switched off. |
invalid_path |
400 |
The path is not valid. |
unresolved_path |
400 |
A path with variables came out empty. |
not_a_folder |
400 |
A folder was expected. |
not_a_file |
400 |
A file was expected. |
unsupported |
400 |
The provider cannot do this. |
selection_required |
400 |
Several drives could serve the request and none is the default. |
not_storage |
400 |
That integration does not store files. |
access_denied |
403 |
The provider refuses access to the item. |
root_forbidden |
403 |
The root folder of the drive cannot be moved, renamed or deleted. |
too_large |
413 |
The file is too large. |
rate_limited |
429 |
The provider is throttling. Try again later. |
unavailable |
503 |
The provider cannot be reached. Try again later. |
Spreadsheets
Section titled “Spreadsheets”These come from inspecting a spreadsheet in a cloud drive.
| Code | Status | Meaning |
|---|---|---|
format_unsupported |
415 |
The file is not a spreadsheet Doxtly can read, it is protected with a password, or it is an .xls file a write would make poorer: one with charts, pivot tables, macros, comments, drawings, embedded objects or array formulas. |
sheet_not_found |
404 |
No such sheet in the workbook. |
too_many_rows, too_many_columns, file_too_large |
413 |
The spreadsheet is beyond the limits. |
archive_suspicious, corrupted |
422 |
The file is damaged or looks unsafe. |
header_empty |
422 |
The header row is empty. |
lock_timeout |
503 |
The file was busy. Try again. |
Templates that follow a cloud file
Section titled “Templates that follow a cloud file”| Code | Status | Meaning |
|---|---|---|
template_source_changed |
409 |
The cloud file changed after it was previewed. |
template_source_revision_outdated |
409 |
The pending version is no longer the one you reviewed. |
template_not_following |
409 |
The template does not follow a cloud file. |
template_source_nothing_pending |
409 |
No new version waits for review. |
template_source_not_a_file |
422 |
A folder cannot be a template. |
template_source_native_document |
422 |
A provider-native document other than a text document, such as a Google Sheet or Slides, cannot be a template. |
template_source_export_too_large |
422 |
Google Drive refuses to export the Google Doc: the Word file would be over 10 MB. |
template_source_wrong_type |
422 |
The cloud file is not of this template’s type. |
template_source_too_large |
422 |
The cloud file is larger than a template may be. |
template_source_unreadable_pdf |
422 |
The cloud file cannot be read as a PDF. |
pdf_fields_outside_pages |
422 |
Areas of the template lie outside the pages of the new file. The detail names them. |
Webhook addresses
Section titled “Webhook addresses”Calls to a webhook address answer in the same shape, and their outcomes are explained in webhook requests.
When to retry
Section titled “When to retry”| Answer | Retry? |
|---|---|
429 |
Yes, after Retry-After if present, otherwise after a pause. |
503 |
Yes, with a growing delay, such as 2, 4, then 8 seconds. |
500 |
A few times at most, with a delay. A POST may have partly worked, so check first. See retries. |
409 with conflict |
Yes, after reading the item again. |
Any other 4xx |
No. The same request gets the same answer until something changes. |
Asking for help
Section titled “Asking for help”Every response from an endpoint, including an error, carries an X-Request-ID header. Log it. When you contact support about a failed call, that identifier lets us find exactly that request.