Error reference

key_revoked

HTTP status
401 Unauthorized
Returned by
API keys

What it means

The API key was revoked, or it was rotated and the old secret stopped working.

Typical causes

  • An admin revoked the key in Settings → Developers.
  • The key was rotated more than 24 hours ago (or with revoke old now) and your code still uses the previous secret.

How to fix it

  • Use the new secret shown when the key was rotated, or create a new key.

Messages

English text, as sent with Accept-Language: en. With ru or uz the API sends the translation.

  • This API key has been revoked.
    RU: Этот API-ключ отозван.
    UZ: Bu API kalit bekor qilingan.
  • This API key was rotated and the old secret has stopped working.
    RU: Этот API-ключ был обновлён, старый секрет больше не работает.
    UZ: Bu API kalit yangilangan, eski maxfiy kalit endi ishlamaydi.

Example response

Response
HTTP/1.1 401 Unauthorized
Content-Type: application/json; charset=utf-8
X-Request-Id: req_4f2a9c1e0b7d3a55

{
  "error": {
    "code": "key_revoked",
    "message": "This API key has been revoked.",
    "request_id": "req_4f2a9c1e0b7d3a55",
    "docs_url": "https://developers.kweko.uz/errors/key_revoked"
  }
}

All error codes · The error format