Read history
Reads history from the newest event. Omit limit for everything. To page back, pass the previous before_cursor until it is null. Sleeping and archived replicas return retained history without waking. Returns 409 when a suspended replica has no retained history.
Request
- Base URLhttps://api.replicas.dev
- URLhttps://api.replicas.dev/v1/replica/{id}/history
- AuthHTTP bearer
Path parameters
The unique identifier of the replica
Query parameters
Filter history to a specific chat
Maximum number of events to return, taken from the end of the history. Omit to return the full history.
Exclusive upper bound: return only events with an index below this value. Pass the previous response's eventsStartIndex to fetch the page before it. Indexes are stable as new events append to the end.
Exclusive upper bound for Codex transcript turns, paged with turnsStartIndex the same way beforeEvent pages events.
Opaque cursor from the previous response's beforeCursor. Advances events and Codex turns together.
Headers
API version. 2026-10-07 returns snake_case responses. See versioning.
Response
Successful response
Example response
{
"thread_id": "thread_123",
"events": [],
"eventsStartIndex": 120,
"turnsStartIndex": 0,
"beforeCursor": "{\"mode\":\"range\",\"events\":\"1048576\",\"turns\":\"4096\"}",
"total": 170,
"has_more": true,
"codexAspTranscript": {
"turns": []
},
"senders": []
}Changes
No recorded changes to this operation across all 1 revision of this API.