Create a new API key for an organization.
The API key will only be shown once in the response. Make sure to save it securely as it cannot be retrieved later.
Args: request: API key creation request containing name, optional organization ID, and optional expiration db: Database session current_user: Authenticated user
Returns: ApiKeyResponse: Created API key information including the plain key
Raises: HTTPException: If organization not found or user lacks access
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.