The error envelope
Branch on
error or statusCode, never on message. Message text is written for humans and may
be reworded; error and statusCode are contractual.Status codes
400 Bad Request
The request body or query parameters failed validation.message is an array with one entry per
invalid field.
message and correcting the named field. Check the request
against the schema shown on the operation’s reference page. Retrying an identical request will
fail identically.
402 Payment Required
The team has run out of enrichment credits. Only the enrichment endpoints return this.403 Forbidden
Thex-api-key header is missing, malformed, revoked, or belongs to a different team.
x-api-key header is present and spelled correctly, that the key
has not been revoked in Settings → Connections & API, and that it belongs to the team whose
data you are requesting.
404 Not Found
Either the route does not exist, or the resource does exist but belongs to another team.message of the form Cannot <METHOD> <path> means the route itself is wrong — check the
method and path against the reference. Any other message means the route was correct but the
record was not found for this team.
Recover by verifying the path, the HTTP method, and any ID in the URL. Because API keys are
team-scoped, the API returns 404 rather than 403 for records owned by another team; it does not
confirm that they exist.
429 Too Many Requests
The client is being throttled.500 Internal Server Error
Something failed on the Salesfinity side.Which errors are retryable
POST endpoints are not idempotent. Cap retries on writes, and confirm state with a GET before
retrying a create so you do not duplicate a record.
Handling errors in code
Reporting a problem
Email [email protected] or use the help center. Include:- The request method and path, for example
GET /v1/call-log. - The timestamp of the request, with its timezone.
- The
errorandstatusCodefrom the response body.