Errors
Every error is an RFC 9457 problem (application/problem+json):
{
"type": "https://app.originpixel.in/developers/errors#validation_failed",
"title": "Some fields are not valid",
"status": 422,
"code": "validation_failed",
"detail": "email: Invalid email address",
"errors": [{ "field": "email", "message": "Invalid email address" }],
"instance": "/api/v1/contacts",
"request_id": "req_6f1c..."
}| code | HTTP | Meaning |
|---|---|---|
| invalid_token | 401 | The API key or token is missing or not valid |
| expired_token | 401 | The API key or token has expired |
| revoked_token | 401 | The API key or token was revoked |
| ip_not_allowed | 403 | Requests from this IP address are not allowed for this key |
| feature_not_in_package | 403 | API access is not included in this package |
| product_not_in_package | 403 | This product is not included in the package |
| org_inactive | 403 | This business account is not active |
| insufficient_scope | 403 | The key does not have the scope this request needs |
| not_found | 404 | Not found |
| method_not_allowed | 405 | This method is not allowed on this resource |
| conflict | 409 | The request conflicts with existing data |
| idempotency_in_progress | 409 | A request with this Idempotency-Key is still being processed |
| idempotency_mismatch | 422 | This Idempotency-Key was used with a different request |
| invalid_request | 400 | The request is not valid |
| invalid_body | 400 | The request body is not valid |
| invalid_field | 422 | A field cannot be set |
| missing_field | 422 | A required field is missing |
| validation_failed | 422 | Some fields are not valid |
| invalid_filter | 400 | A filter is not valid |
| invalid_sort | 400 | The sort is not valid |
| invalid_cursor | 400 | The cursor is not valid |
| invalid_range | 400 | The date range is not valid |
| limit_reached | 402 | A package limit is reached |
| payload_too_large | 413 | The request body is too large |
| unsupported_media_type | 415 | Send JSON (Content-Type: application/json) |
| rate_limited | 429 | Too many requests |
| internal_error | 500 | Something went wrong on our side |
| unavailable | 503 | The API is not configured on this server |