API Reference
Keys
API key management endpoints
Keys API
Manage API keys for your team. These endpoints require the root API key.
List Keys
GET /api/keysReturns all API keys for your teams. Key values are not included — only metadata.
Response
{
"keys": [
{
"id": "key_abc123",
"name": "dev-team",
"teamId": "my-team",
"createdAt": "2025-01-15T00:00:00.000Z"
}
]
}Create Key
POST /api/keysRequest Body
{
"name": "dev-team",
"teamId": "my-team"
}| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Human-readable name for the key |
teamId | string | Yes | Team identifier to scope the key to |
Response
{
"key": {
"id": "key_abc123",
"name": "dev-team",
"teamId": "my-team",
"key": "mem_the_actual_key_value",
"createdAt": "2025-01-15T00:00:00.000Z"
}
}The key field contains the plaintext API key. Save it immediately — it won't be shown again.