Error reference

not_for_api_keys

HTTP status
403 Forbidden
Returned by
Every endpoint (permissions)

What it means

The endpoint manages the workspace itself. These are for people signed in to Kweko only: no scope opens them to an API key.

Typical causes

  • Billing and the plan, members, invites, teams and roles, security settings, partner access.
  • API key management (/v1/api-keys, except GET /v1/api-keys/whoami).
  • Changing the workspace (its settings, address or logo) or deleting it.
  • Bulk SMS (POST /v1/sms/bulk): sending to many people at once is a broadcast, which people start in Kweko.

How to fix it

  • Do it in Kweko as an owner or admin. Integrations can still read members (users:read) and the workspace (GET /v1/workspace).

Message

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

  • API keys can't do this. Sign in to Kweko as an owner or admin.
    RU: API-ключам это недоступно. Войдите в Kweko как владелец или администратор.
    UZ: API kalit bilan buni qilib boʻlmaydi. Kweko ga ega yoki administrator sifatida kiring.

Example response

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

{
  "error": {
    "code": "not_for_api_keys",
    "message": "API keys can't do this. Sign in to Kweko as an owner or admin.",
    "request_id": "req_4f2a9c1e0b7d3a55",
    "docs_url": "https://docs.kweko.uz/errors/not_for_api_keys"
  }
}

All error codes · The error format