List sessions
⚠️
Preview — this feature is being built; the design below is the spec.
GET https://app.syntic.ai/v1/sessionsReturn sessions in the workspace, newest first. Sessions from messaging channels and from the API appear in one list; filter by channel to separate them.
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. |
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
agent_id | string | Sessions of one agent. | |
status | string | running, requires_action, idle or archived. | |
channel | string | api, telegram, slack, whatsapp and so on. | |
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": "sesn_01JC7M2K4P6R8T0V2X4Z",
"type": "session",
"agent_id": "agt_01JC4R8W6Q2N9X3T5V7Y",
"agent_version": 4,
"status": "requires_action",
"channel": "api",
"title": "Refund for order 88123",
"usage": {
"input_tokens": 0,
"cached_input_tokens": 0,
"output_tokens": 0,
"cost_usd": "0.0000"
},
"outcome": null,
"created_at": "2026-11-05T10:00:00Z",
"last_event_at": "2026-11-05T10:00:00Z",
"metadata": {}
}
],
"has_more": false,
"first_id": "sesn_01JC7M2K4P6R8T0V2X4Z",
"last_id": "sesn_01JC7M2K4P6R8T0V2X4Z"
}Examples
curl -sS "https://app.syntic.ai/v1/sessions?agent_id=agt_01JC4R8W6Q2N9X3T5V7Y&status=requires_action" \
-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. |
| 400 | invalid_request_error | invalid_parameter | Unknown filter value. |
| 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?