Skip to main content
PATCH
Reassign the agent's BYOK LLM key

Authorizations

Authorization
string
header
required

An aik_… programmatic API key (app.atako.ai → Settings → API keys) or a Supabase session JWT.

Path Parameters

id
string
required

Agent id

Body

application/json
llmKeyId
string<uuid> | null
required
modelId
string

Weflayr model id (required when switching TO a Weflayr key; also when leaving Weflayr for an agent with no OpenRouter model).

Response

llmKeyId
string<uuid> | null
directModelId
string | null