AI Gateway
List AI Gateway sessions
Changed onAlias: also available at /api/v2/aibridge/sessions for backward compatibility.
get/api/v2/ai-gateway/sessions
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v2/ai-gateway/sessions
- AuthAPI key in header Coder-Session-Token
Query parameters
qstring
Search query in the format key:value. Available keys are: initiator, provider, provider_name, model, client, session_id, started_after, started_before.
limitinteger
Page limit
after_session_idstring
Cursor pagination after session ID (cannot be used with offset)
offsetinteger
Offset pagination (cannot be used with after_session_id)
Response
OK
Changes
- info
api operation id
list-ai-bridge-sessionsremoved and replaced withlist-ai-gateway-sessions
- info
- info
endpoint added
- info