Skip to main content
PATCH

Authorizations

Authorization
string
header
required

Supabase JWT token (for Dashboard-only endpoints like API key management)

Path Parameters

keyId
string<uuid>
required

Body

application/json
name
string
Maximum string length: 255
permissions
enum<string>[]

Available permissions:

  • agents:read — List and view agent configurations
  • agents:write — Update agent settings
  • employees:read — List and view employees
  • employees:write — Create, update, delete employees
  • tools:read — List and view agent tools
  • tools:write — Create, update, delete tools
  • forwarding:read — List forwarding slots
  • forwarding:write — Create, update, delete forwarding slots
  • kb:read — List and view knowledge base documents
  • kb:write — Create, update, delete KB documents
  • calls:read — List and view call records
  • organization:read — View organization settings
  • organization:write — Update organization settings
  • contacts:read — List and view contacts (customer database)
  • contacts:write — Create, update, delete contacts
Available options:
agents:read,
agents:write,
employees:read,
employees:write,
tools:read,
tools:write,
forwarding:read,
forwarding:write,
kb:read,
kb:write,
calls:read,
organization:read,
organization:write,
contacts:read,
contacts:write
allowed_agent_ids
string<uuid>[] | null
rate_limit_per_minute
integer
Required range: 1 <= x <= 600
rate_limit_per_hour
integer
Required range: 1 <= x <= 10000
is_active
boolean

Response

Updated API key info

API key metadata (the actual key value is never returned after creation)

id
string<uuid>
name
string
key_prefix
string

First 10 characters of the key for identification

Example:

"tp_live_a1"

organization_id
string<uuid>

Home organization of the key (key management only)

organization_name
string | null

Name of the home organization (list endpoint only)

created_by_email
string | null

Email of the creator; null for legacy keys (list endpoint only)

is_own
boolean

Whether the requesting user created this key (list endpoint only)

permissions
enum<string>[]

Available permissions:

  • agents:read — List and view agent configurations
  • agents:write — Update agent settings
  • employees:read — List and view employees
  • employees:write — Create, update, delete employees
  • tools:read — List and view agent tools
  • tools:write — Create, update, delete tools
  • forwarding:read — List forwarding slots
  • forwarding:write — Create, update, delete forwarding slots
  • kb:read — List and view knowledge base documents
  • kb:write — Create, update, delete KB documents
  • calls:read — List and view call records
  • organization:read — View organization settings
  • organization:write — Update organization settings
  • contacts:read — List and view contacts (customer database)
  • contacts:write — Create, update, delete contacts
Available options:
agents:read,
agents:write,
employees:read,
employees:write,
tools:read,
tools:write,
forwarding:read,
forwarding:write,
kb:read,
kb:write,
calls:read,
organization:read,
organization:write,
contacts:read,
contacts:write
allowed_agent_ids
string<uuid>[] | null

Restrict key to specific agents (null = all agents in organization)

rate_limit_per_minute
integer
rate_limit_per_hour
integer
is_active
boolean
last_used_at
string<date-time> | null
expires_at
string<date-time> | null
created_at
string<date-time>
updated_at
string<date-time>