Manage scoped API keys for agent integration
API keys are used to authenticate requests to the VKRA API. You can create multiple keys to scope access for different agents or environments.
Retrieve a paginated list of API keys associated with your account.
GET /keys
Response Body
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Production Bot",
"prefix": "at_live_",
"created_at": "2024-01-15T10:30:00Z",
"last_used_at": "2024-01-15T12:00:00Z",
"status": "active"
}
]Generate a new scoped API key. The full key is only shown once.
POST /keys
Request Body
{
"name": "Development Bot"
}Response Body
{
"key": "at_live_abc123...",
"metadata": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Development Bot",
"prefix": "at_live_",
"status": "active"
}
}Disable an API key without deleting it. It will no longer be usable for authentication.
POST /keys/{key_id}
Generate a new API key to replace an existing one. The old key is automatically revoked.
POST /keys/{key_id}/rotate
Permanently delete an API key. This action cannot be undone.
DELETE /keys/{key_id}
development, staging, and production./rotate endpoint.