List event history for a Forward session.
Request headers
|
Header |
Required |
Description |
|
|
Yes |
|
Path parameters
|
Parameter |
Type |
Required |
Description |
|
|
string |
Yes |
Session ID. |
Query parameters
|
Parameter |
Type |
Required |
Default |
Description |
|
|
integer |
No |
20 |
Items per page. Maximum 100. |
|
|
string |
No |
- |
Cursor for events after the given Event ID. |
|
|
string |
No |
- |
Cursor for events before the given Event ID. |
|
|
string |
No |
|
Sort order: |
|
|
string |
No |
- |
Filter by Event type. Comma-separated values are supported. |
|
|
string |
No |
- |
Array-style Event type filter. |
|
|
boolean |
No |
|
Include tool call events. |
|
|
boolean |
No |
|
Include thinking events. |
Example request
curl -s -X GET 'https://api.qoder.com.cn/api/v1/forward/sessions/sess_xxx/events?limit=20&order=asc' \
-H "Authorization: Bearer $QODER_PAT"
Example response
HTTP 200 OK
{
"data": [
{
"id": "evt_xxx",
"type": "agent.message",
"session_id": "sess_xxx",
"content": [
{
"type": "text",
"text": "Here is the analysis result."
}
],
"processed_at": "2026-06-22T11:00:03Z"
}
],
"first_id": "evt_xxx",
"last_id": "evt_xxx",
"has_more": false
}
Response fields
|
Field |
Type |
Description |
|
|
array |
Event objects on the current page. |
|
|
string|null |
ID of the first event on this page. |
|
|
string|null |
ID of the last event on this page. |
|
|
boolean |
Whether more records remain. |
Event fields
|
Field |
Type |
Description |
|
|
string |
Event ID. |
|
|
string |
Event type. |
|
|
string |
Session ID. |
|
|
string |
Processing timestamp when available. |
|
|
array |
Returned for message-like events. |
Errors
|
HTTP |
Type |
Code |
Trigger |
|
400 |
|
|
Cursor does not belong to this Session. |
|
400 |
|
|
Pagination parameters are invalid. |
|
401 |
|
|
PAT invalid or expired. |
|
404 |
|
|
Session does not exist. |
Notes
-
Unknown Event types do not fail the request. They are returned with the minimal envelope when available.
-
Forward filters runtime-private fields such as agent IDs, environment IDs, resources, vaults, worker IDs, traces, and raw/debug/internal payloads.