Get agent context for rehydration
Returns all messages relevant to the agent for execution context/rehydration.
This includes:
- All messages the agent sent (any type: text, tool_call, tool_result, thought, etc.)
- All text messages that @mention the agent
Use this endpoint to load the complete context an external agent needs to resume execution.
Messages are returned in chronological order (oldest first).
## Pagination
Use `cursor` + `limit` for cursor-based pagination (recommended). The response
`metadata` includes `next_cursor` and `has_more`.
`page` and `page_size` are deprecated and will be removed in API 2.0.0 (2026-10-01).
Authentication
X-API-Keystring
Enter your API key for programmatic access
Path parameters
chat_id
Chat Room ID
Query parameters
cursor
Cursor for keyset pagination (from previous response next_cursor)
limit
Items per page for cursor pagination (default: 50, max: 100)
pageDeprecated
Page number (deprecated — use cursor instead)
page_sizeDeprecated
Items per page (deprecated — use limit instead)
Response
Agent context
data
metadata
meta
Deprecated — use metadata instead
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error