agentApiContext
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).
get/api/v1/agent/chats/{chat_id}/context
Path parameters
chat_idstring uuid required
Chat Room ID
Query parameters
cursorstring
Cursor for keyset pagination (from previous response next_cursor)
limitinteger
Items per page for cursor pagination (default: 50, max: 100)
pageinteger
Page number (deprecated — use cursor instead)
page_sizeinteger
Items per page (deprecated — use limit instead)
Headers
X-API-Keystring required
Enter your API key for programmatic access
Response
Agent context
ContextGetAgentChatContextResponse200 required— unresolved $ref