Read Api Key

Retrieve an API key by ID.

Args:

db (AsyncSession): The database session. id (UUID): The ID of the API key. user (schemas.User): The current user.

Returns:

schemas.APIKey: The API key object.

Raises:

HTTPException: If the API key is not found.

Path parameters

idstringRequired

Headers

x-api-keystringOptional

Query parameters

credsstringRequired

Response

Successful Response

idstringformat: "uuid"
key_prefixstring
organizationstringformat: "uuid"
created_atdatetime
modified_atdatetime
expiration_datedatetime
created_by_emailstringformat: "email"
modified_by_emailstringformat: "email"
last_used_datedatetimeOptional

Errors