API Reference
Create API key
Generate a new API key for the authenticated user
On this page
This endpoint generates a new API key for the authenticated user. Unlike the login endpoint which creates a session token, this creates a persistent API key that can be used for long-term API access.
This endpoint requires authentication. Use your existing API key or session token to create additional API keys.
Request Body
namestringrequired
A name/label for the API key (e.g., "Production", "Development", "My App")
Response
messagestring
Success message
api_keyobject
The created API key details
{
"message": "API key created successfully.",
"api_key": {
"name": "Production API Key",
"token": "1|abc123xyz789abcdef...",
"created_at": "2025-01-08T10:30:00.000000Z"
}
}
{
"message": "The name field is required.",
"errors": {
"name": ["The name field is required."]
}
}
Example Request
curl -X POST https://app.voxlink.ai/api/user/api-keys \
-H "Authorization: Bearer YOUR_EXISTING_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Production API Key"
}'
The API key token is only returned once. Make sure to store it securely. If you lose it, you'll need to create a new one.
Managing API Keys
- GET /user/api-keys - List all API keys for the authenticated user
- DELETE /user/api-keys/{id} - Delete a specific API key
Related guides
API Reference
Introduction
Welcome to the VoxLink API
Read guide →API Reference
Authentication
Learn how to authenticate your API requests
Read guide →API Reference
Get current user
Get the authenticated user's profile information
Read guide →API Reference
List assistants
List all assistants for the authenticated user with pagination
Read guide →