Ir al contenido

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.

Necesita una clave de API en la cabecera Authorization.

En esta página

Parámetros

CampoEnTipoDescripción
idobligatoriorutastring
A session id
  • formato: uuid
afterconsultastring
  • long. máx.: 120

Petición de ejemplo

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

Respuestas

EstadoQué es
200OK

También puede dar los errores comunes 400, 401, 403, 404, 429. Ver errores comunes