Error codes

api_key_expired

API key expired

HTTP 401

The key is past its expiry. A test key (sa_gap_test_... or sa_test_...) expires at most 90 days after it is created, a v2 live key (sa_live_...) at most 365 days after, and a legacy live key (sa_gap_...) only when we schedule its retirement, with notice. Create a new key in the portal. A signed credential expires as a v2 key does, counted from its registration, and is answered this way only once its signature verifies.

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": "API key expired",
  "code": "api_key_expired",
  "type": "https://secondappraisal.com/developers/errors/api_key_expired",
  "title": "API key expired",
  "status": 401,
  "detail": "API key expired",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it