Skip to main content

Module api_key

Module api_key 

Source
Expand description

API Key management endpoints

Structs§

ApiKeyListItem
Response for API key list/read operations
CreateApiKeyReq
Request to create a new API key
CreateApiKeyRes
Response for creating an API key (includes plaintext key shown only once)
UpdateApiKeyReq
Request to update an API key

Functions§

create_api_key
POST /api/auth/api-keys - Create a new API key
delete_api_key
DELETE /api/auth/api-keys/{key_id} - Delete an API key
get_api_key
GET /api/auth/api-keys/{key_id} - Get a specific API key
list_api_keys
GET /api/auth/api-keys - List all API keys for the authenticated tenant
update_api_key
PATCH /api/auth/api-keys/{key_id} - Update an API key