Error reference

ai_not_for_api_keys

HTTP status
403 Forbidden
Returned by
Every endpoint (permissions)

What it means

The endpoint runs an AI model, spends the workspace's AI credits or changes how AI behaves. API keys never get these, whatever their scopes, so a leaked or buggy key can't spend credits. Reading what AI already produced still works with the normal read scopes.

Typical causes

  • A write under /v1/ai (summary, draft, translate, settings, consent) or any /v1/assistant call.
  • POST /v1/calls/{id}/transcribe, PATCH /v1/calls/transcription, POST /v1/automations/ai/test, or changing the AI operator (/v1/ai-agent).
  • Creating or changing an automation whose steps use AI (AI steps or the AI operator).

How to fix it

  • Use Kweko AI in Kweko itself. Read its results through the API: GET /v1/calls/{id}/transcript, GET /v1/ai/summary, the call.transcribed webhook event.
  • Automations people built in Kweko keep running their AI steps, also when your integration's changes start them.

Message

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

  • API keys can't use Kweko AI. AI features are for people signed in to Kweko.
    RU: API-ключи не могут пользоваться Kweko AI. Функции AI доступны только людям, вошедшим в Kweko.
    UZ: API kalitlar Kweko AI dan foydalana olmaydi. AI imkoniyatlari faqat Kweko ga kirgan xodimlar uchun.

Example response

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

{
  "error": {
    "code": "ai_not_for_api_keys",
    "message": "API keys can't use Kweko AI. AI features are for people signed in to Kweko.",
    "request_id": "req_4f2a9c1e0b7d3a55",
    "docs_url": "https://docs.kweko.uz/errors/ai_not_for_api_keys"
  }
}

All error codes · The error format