packages/cloud-frontend/content/api/api-keys.mdx
import { Callout, Tabs } from "@/docs/components";
Create and manage API keys for authentication.
<Callout type="info"> Listing and creating API keys require a Steward browser session. Updating, deleting, and regenerating existing keys can use a Steward session or an API key from the same organization; use a different key than the one you are changing. </Callout>Get all your API keys.
{
"keys": [
{
"id": "key_abc123",
"name": "Production Key",
"prefix": "eliza_abc...",
"permissions": ["chat", "embeddings"],
"createdAt": "2024-01-15T10:30:00Z",
"lastUsed": "2024-01-16T15:45:00Z"
}
]
}
Create a new API key.
{
"name": "Production Key",
"permissions": ["chat", "embeddings", "images"]
}
| Permission | Description |
|---|---|
chat | Chat completions |
embeddings | Generate embeddings |
images | Image generation |
video | Video generation |
voice | Voice/TTS |
knowledge | Knowledge base |
agents | Agent management |
apps | App management |
{
"apiKey": {
"id": "key_abc123",
"name": "Production Key",
"description": null,
"key_prefix": "eliza_abc...",
"created_at": "2024-01-15T10:30:00Z",
"permissions": ["chat", "embeddings", "images"],
"rate_limit": 1000,
"expires_at": null
},
"plainKey": "eliza_abc123xyz..."
}
Get API key details (without the secret).
Update API key name or permissions.
{
"name": "Updated Key Name",
"permissions": ["chat", "embeddings"]
}
Revoke (delete) an API key.
<Callout type="warning">Revoked keys stop working immediately.</Callout>
Generate a new secret for an existing key.
{
"id": "key_abc123",
"key": "eliza_newkey789...",
"regeneratedAt": "2024-01-16T10:30:00Z"
}