Get Api Key

Retrieve a specific API key by ID.

This endpoint retrieves a specific API key by its ID, ensuring that the requested key belongs to the organization associated with the API key used for authentication.

Parameters: api_key_id (int): The ID of the API key to retrieve request (Request): The FastAPI request object db (AsyncSession): The database session (injected) organization_id (Optional[int]): The organization ID from the API key or request

Returns: ApiKey: The requested API key

Raises: HTTPException: - 400: If organization ID is missing - 404: If the API key is not found or not accessible - 500: If an unexpected error occurs during retrieval

Language
Credentials
Header
Click Try It! to start a request and see the response here!