Pointify

Get started

Errors

Errors use standard HTTP status codes and a JSON body with a stable code you can match on.

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.

403 Forbidden
{
  "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.

422 Unprocessable Entity
{
  "detail": [
    {
      "type": "missing",
      "loc": [
        "body",
        "origin"
      ],
      "msg": "Field required"
    }
  ]
}

Error codes

401

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.

401

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.

401

api_key_revoked

The key was revoked.

Fix: Create a new key in the dashboard.

429

too_many_invalid_keys

Too many unrecognised keys from your address in a minute.

Fix: Fix the key, then wait a minute.

403

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.

403

insufficient_scope

The key lacks the scope this endpoint needs.

Fix: Create a key with that scope. New keys get every scope.

404

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/.

405

method_not_allowed

The path exists but not with that HTTP method.

Fix: Use the method shown in the reference (most searches are POST).

422

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.

429

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.

429

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.

503

api_key_check_unavailable

We could not check the key just now.

Fix: Retry after a few seconds with backoff.

What to retry

  • rate_limit_exceeded: retry after Retry-After seconds.
  • daily_quota_exceeded: stop live calls until 00:00 UTC.
  • api_key_check_unavailable and other 5xx: retry a few times with exponential backoff.
  • Other 4xx errors: fix the request or key first. Retrying the same request returns the same error.

Ready to find your best fare?

Create a free account to save your travel plans and explore cash and points options.

Create Free Account