Key concepts
- API keys are created and managed through the Dashboard or these endpoints
- The raw key (
tp_live_...) is returned only once at creation time — store it securely - Keys are SHA-256 hashed before storage and cannot be retrieved later
- Each key is scoped to one organization with configurable permissions and agent access
Data model
| Field | Type | Description |
|---|---|---|
id | uuid | Key identifier |
name | string | Display name for the key |
key_prefix | string | First characters of the key (for identification) |
permissions | array | List of granted permissions |
allowed_agent_ids | array | Agent UUIDs this key can access (null = all) |
rate_limit_per_minute | integer | Custom rate limit per minute |
rate_limit_per_hour | integer | Custom rate limit per hour |
is_active | boolean | Whether the key is active |
last_used_at | datetime | Last request timestamp |
expires_at | datetime | Expiration date (null = never) |
created_at | datetime | Creation timestamp |
Available permissions
| Permission | Allows |
|---|---|
agents:read | List and read agent configurations |
agents:write | Update agent settings |
employees:read | List and read employees |
employees:write | Create, update, delete employees |
tools:read | List and read agent tools |
tools:write | Create, update, delete tools |
forwarding:read | List forwarding slots |
forwarding:write | Create, update, delete, replace slots |
kb:read | List and read knowledge base documents |
kb:write | Create, update, delete KB documents |
calls:read | List and read call records |
organization:read | Read organization settings |
organization:write | Update organization settings |
Endpoints
List API keys
Create API key
Update API key
Revoke API key
204 No Content
Permanently deletes the key. Any requests using this key will immediately receive 401 Unauthorized.
Key rotation workflow
- Create a new key with the same permissions
- Update your integration to use the new key
- Verify the integration works
- Delete the old key
Related resources
- Authentication — How API key auth works
- Settings — Dashboard key management UI