Skip to content

Follow an agent session

GET/api/v1/sessions/{id}/events

Server-Sent Events: session, event, message and, once it ends, end. Every frame's id is a cursor; reconnect with Last-Event-ID and nothing is sent twice.

Needs an API key in the Authorization header.

On this page

Parameters

FieldInTypeDescription
idrequiredpathstring
A session id
  • format: uuid
afterquerystring
  • max length: 120

Example request

curl -X GET "https://polaris.example.com/api/v1/sessions/{id}/events" \
  -H "Authorization: Bearer $POLARIS_API_KEY"

Responses

StatusMeaning
200OK

Can also answer the common errors 400, 401, 403, 404, 429. See common errors