List session events
⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/sessions/{session_id}/eventsReturn 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
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | agents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | The session id, starting with sesn_. |
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
type | string | Only events of this type. | |
limit | integer | 20 | 1 to 100. |
after_id | string | Next page: the previous page’s last_id. | |
before_id | string | Previous 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:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 404 | not_found_error | session_not_found | No session with that id in this workspace. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Related
Was this page helpful?