Get started
Errors
Error shape
Every error except validation errors has this body. Match on error; detail is a message for humans and its wording can change. docs links to the code below.
{
"error": "insufficient_scope",
"detail": "This key does not have the 'points' scope. Its scopes: search, calendar.",
"docs": "https://pointifytravels.com/developers/docs/errors#insufficient_scope"
}Validation errors (422)
A request with a missing field or a wrong value gets 422 in FastAPI's format: detail is a list, and each item has type, loc (where the problem is) and msg. Dates must be YYYY-MM-DD and not in the past.
{
"detail": [
{
"type": "missing",
"loc": [
"body",
"origin"
],
"msg": "Field required"
}
]
}Error codes
missing_api_key
No key was sent, or the Authorization header is not a Pointify key.
Fix: Send Authorization: Bearer pt_test_… (or pt_live_…) on every call.
invalid_api_key
The key is malformed or we do not recognise it.
Fix: Copy the whole key, including pt_live_ or pt_test_. Keys are shown once; create a new one if you lost it.
api_key_revoked
The key was revoked.
Fix: Create a new key in the dashboard.
too_many_invalid_keys
Too many unrecognised keys from your address in a minute.
Fix: Fix the key, then wait a minute.
plan_required
This endpoint needs a plan with live API access. The endpoints any key can call (see Authentication) still work.
Fix: Use a pt_test_ key, or upgrade to Pro, Business, Developer or Enterprise.
insufficient_scope
The key lacks the scope this endpoint needs.
Fix: Create a key with that scope. New keys get every scope.
endpoint_not_in_public_api
That path is not part of the public API.
Fix: Check the path against the API reference. All paths start with /v1/.
method_not_allowed
The path exists but not with that HTTP method.
Fix: Use the method shown in the reference (most searches are POST).
validation_error
The request is missing a field or has a wrong value. The body lists each problem under detail.
Fix: Read detail[].loc and detail[].msg. Dates are YYYY-MM-DD and must not be in the past.
rate_limit_exceeded
More calls in the last minute than the key allows.
Fix: Wait for Retry-After seconds. Spread calls out or ask us for a higher limit.
daily_quota_exceeded
Your account used its live calls for today (UTC).
Fix: Wait until 00:00 UTC (Retry-After), or upgrade for a bigger quota.
What to retry
rate_limit_exceeded: retry afterRetry-Afterseconds.daily_quota_exceeded: stop live calls until 00:00 UTC.api_key_check_unavailableand other5xx: retry a few times with exponential backoff.- Other 4xx errors: fix the request or key first. Retrying the same request returns the same error.