Skip to navigation

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_idstringRequiredformat: "uuid"
Chat Room ID

Query parameters

cursorstringOptional

Cursor for keyset pagination (from previous response next_cursor)

limitintegerOptional1-100

Items per page for cursor pagination (default: 50, max: 100)

pageintegerOptionalDeprecated

Page number (deprecated — use cursor instead)

page_sizeintegerOptionalDeprecated

Items per page (deprecated — use limit instead)

Response

Agent context
datalist of objects
metadataobject
metaobjectOptional

Deprecated — use metadata instead

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error