Create Api Key
Authentication
Create Api Key
Create a new API key for the tenant.
The API key value is returned in plain text only once. It cannot be retrieved again, so the client must store it securely.
The key is stored as a bcrypt hash in the database for security.
Args: request: API key creation request db: Async database session tenant_id: Active tenant ID current_user: Authenticated user (must be tenant_admin or tenant_owner)
Returns: CreateAPIKeyResponse: Created API key with plain text value
Raises: HTTPException 403: If user doesn’t have permission
POST
Create Api Key
Cookies
Body
application/json