Error codes

missing_api_key

Missing API key

HTTP 401

Send your API key as Authorization: Bearer <key>: a v2 key (sa_live_... or sa_test_...) or a legacy key (sa_gap_...). A v2 key whose checksum doesn't match, because it was mistyped or cut short, is refused this way too, before any lookup.

The problem body

Sent as application/problem+json, with the request id in request_id and the X-Request-Id header. Branch on code: the error and detail sentences can change, and some operations add members of their own.

Example problem
{
  "error": "Missing or malformed API key. Send `Authorization: Bearer sa_gap_...`.",
  "code": "missing_api_key",
  "type": "https://secondappraisal.com/developers/errors/missing_api_key",
  "title": "Missing API key",
  "status": 401,
  "detail": "Missing or malformed API key. Send `Authorization: Bearer sa_gap_...`.",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it