Skip to content

KEY_EXPIRED — API key past expiry

The key was created with an expiry date and that date has passed. Default keys never expire — this only happens to keys you explicitly marked as time-limited.

401 Unauthorized. Standard envelope.

{
"success": false,
"error": {
"code": "KEY_EXPIRED",
"message": "This API key expired on 2026-04-12T00:00:00Z.",
"request_id": "req_01HXJZK4ABCDEF",
"doc_url": "https://docs.surveycoder.io/errors/key-expired"
}
}

You created the key with an expires_at value (e.g. a 30-day demo key for a contractor) and that date has now passed.

  1. Create a fresh key at surveycoder.io/api-keys — either with a new expiry or with no expiry at all.
  2. Update every place the old key was stored.
  3. If you want a reminder before the next expiry, the dashboard sends an email 7 days out.