Status | Code | What it means | What to do |
|---|
400 | VALIDATION_ERROR
| Something in the request is missing, malformed or not allowed, including a field the endpoint doesn't take. | Fix the request. The message says which field. |
400 | MISSING_SUB_ACCOUNT
| An agency token was sent without X-Location-Id or X-Sub-Account-Id. | Add the header. |
401 | UNAUTHORIZED
| The token is missing, mistyped or unknown, or the header doesn't use Bearer. | Check the Authorization: Bearer ... header. |
401 | KEY_EXPIRED
| The token has passed its expiry date. | Create a new token. |
401 | KEY_REVOKED
| The token was revoked. | Create a new token. |
403 | FORBIDDEN
| The token lacks the permission this endpoint needs, the feature is not on your plan, the token's creator no longer has access to the account, the account is paused (details.reason: account_paused), or it is a HIPAA account (details.reason: hipaa_account). | Add the permission with Edit permissions, check the plan, or resume the account. |
403 | INVALID_SUB_ACCOUNT
| The agency token cannot reach that account, or the account ID matches no account. | Check the account ID. |
404 | NOT_FOUND
| No such record in this account, or no such endpoint. | Check the ID and the path. A record from another account is always "not found". |
409 | DUPLICATE_OPPORTUNITY
| The pipeline allows only one open opportunity per contact, and this contact has one. details.existingOpportunityId names it. | Update the existing opportunity instead. |
409 | VALIDATION_ERROR
| The thing you are changing moved on since you read it: a website draft saved by someone else, or a new appointment time that is no longer free. | Read it again, then retry. |
413 | VALIDATION_ERROR
| The request body is too large. | Send less data per request. |
415 | VALIDATION_ERROR
| The body is not marked as JSON. | Add Content-Type: application/json. |
429 | RATE_LIMITED
| Too many requests this minute. | Wait for Retry-After. See rate limits. |
500 | INTERNAL_ERROR
| Something went wrong on our side. | Retry after a short wait. |