Error codes
Each error of the API has a code. Find the code here to see its cause and its fix.
Each error response has the same form. The field error.code is stable. Use it in your code. The field error.doc_url links to the page of the code. The field error.request_id identifies the request. Send it to support. See Errors for the form of the envelope.
| Code | Status | Type | Meaning |
|---|---|---|---|
api_version_unsupported | 400 | invalid_request_error | The API version is not known. |
connection_credentials_invalid | 422 | invalid_request_error | The credentials do not match the network. |
connection_disabled | 409 | invalid_request_error | The connection is disabled. Only an operator can enable it. |
connection_not_importable | 409 | invalid_request_error | The connection does not take file imports. |
connection_not_syncable | 409 | invalid_request_error | The connection cannot run this sync now. |
expand_invalid | 422 | invalid_request_error | The expand parameter is not valid. |
import_file_too_large | 422 | invalid_request_error | The file is too large. |
import_invalid | 422 | invalid_request_error | The file has errors. The API imported no row. Fix the rows in details. |
link_destination_not_allowed | 422 | invalid_request_error | The destination is not on a domain that the program allows. |
network_unavailable | 422 | invalid_request_error | The network is not available in this mode. |
parameter_invalid | 422 | invalid_request_error | A parameter is not valid. |
program_deeplinks_unsupported | 422 | invalid_request_error | The program has no deeplink template, so it cannot make links. |
request_body_invalid | 400 | invalid_request_error | The request body is not valid JSON. |
request_invalid | 400 | invalid_request_error | The request is not valid. |
resource_already_exists | 409 | invalid_request_error | A resource with this name already exists. |
resource_not_found | 404 | invalid_request_error | The resource does not exist. |
route_not_found | 404 | invalid_request_error | The URL does not exist. |
api_key_in_query | 400 | authentication_error | The request has an API key in the query string. Send the key in the Authorization header. |
api_key_invalid | 401 | authentication_error | The API key is not valid. |
authentication_required | 401 | authentication_error | The request has no valid credentials. |
permission_denied | 403 | permission_error | The API key cannot use this resource. |
scope_insufficient | 403 | permission_error | The API key does not have the scope for this request. |
test_mode_only | 403 | permission_error | This resource works only in test mode. Use a test key (sktest...). |
rate_limit_exceeded | 429 | rate_limit_error | Too many requests. Wait and try again. |
idempotency_key_invalid | 400 | idempotency_error | The Idempotency-Key header is not valid. Use 1 to 256 printable characters. |
idempotency_key_reused | 409 | idempotency_error | This Idempotency-Key was used with a different request. |
idempotent_request_in_progress | 409 | idempotency_error | A request with this Idempotency-Key is still in progress. |
internal_error | 500 | api_error | An error occurred on our side. Try again later. |
plan_limit_reached | 403 | permission_error | The plan of the workspace has reached its limit. Upgrade the plan to go on. |