List Keys
List all keys for a given user / team / organization.
Parameters: expand: Optional[List[str]] - Expand related objects (e.g. 'user' to include user information) status: Optional[str] - Filter by status. Currently supports "deleted" to query deleted keys.
Returns: { "keys": List[str] or List[UserAPIKeyAuth], "total_count": int, "current_page": int, "total_pages": int, }
When expand includes "user", each key object will include a "user" field with the associated user object. Note: When expand=user is specified, full key objects are returned regardless of the return_full_object parameter.
Request
- Base URL: https://api.sea-lion.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.sea-lion.ai/key/list
- Auth: one of:
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
Query parameters
Page number
Page size
Filter keys by user ID
Filter keys by team ID
Filter keys by organization ID
Filter keys by key hash
Filter keys by key alias
Return full key object
Include all keys for teams that user is an admin of.
Include keys created by the user
Column to sort by (e.g. 'user_id', 'created_at', 'spend')
Sort order ('asc' or 'desc')
Expand related objects (e.g. 'user')
Filter by status (e.g. 'deleted')
Filter keys by project ID
Filter keys by access group ID
Response
Successful Response
Changes
No recorded changes to this operation across all 78 revisions of this API.