List session events

⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/sessions/{session_id}/events

Return the stored event history of a session, oldest first. Streaming-only message.delta events are not stored; each reply appears once as message.completed.

For how this fits into a full workflow, see Sessions.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewagents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.

Path parameters

ParameterTypeDescription
session_idstringThe session id, starting with sesn_.

Query parameters

ParameterTypeDefaultDescription
typestringOnly events of this type.
limitinteger201 to 100.
after_idstringNext page: the previous page’s last_id.
before_idstringPrevious page.

Response

200 OK, Content-Type: application/json

{
  "data": [
    {
      "id": "evt_01JC7M3A",
      "type": "user.message",
      "content": "Please refund order 88123.",
      "created_at": "2026-11-05T10:00:00Z"
    },
    {
      "id": "evt_01JC7M3B",
      "type": "tool_call.started",
      "tool_call_id": "call_7",
      "name": "lookup_order",
      "arguments": {
        "order_id": "88123"
      },
      "executor": "client",
      "created_at": "2026-11-05T10:00:02Z"
    },
    {
      "id": "evt_01JC7M3E",
      "type": "message.completed",
      "message_id": "msg_01JC7M3E",
      "content": "Your refund of 41.20 is on its way.",
      "created_at": "2026-11-05T10:00:12Z"
    }
  ],
  "has_more": false,
  "first_id": "evt_01JC7M3A",
  "last_id": "evt_01JC7M3E"
}

Examples

curl -sS https://app.syntic.ai/v1/sessions/sesn_01JC7M2K4P6R8T0V2X4Z/events \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: agents-2026-11-01"

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
404not_found_errorsession_not_foundNo session with that id in this workspace.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?