agent
Read an agent thread
Changed onOne thread and its messages, oldest first, in the AI SDK UIMessage format. The grant header works as in GET /v2/agent/threads: without it you read your personal history, with it the history the grant names. A thread ID not in that history is a 404. Costs 0 credits.
get/v2/agent/threads/{id}/messages
Request
- Base URLhttps://api.cardog.app
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
id, string required
Thread ID from GET /v2/agent/threads, e.g. "3f2b9c1e-7a4d-4e8b-9c0f-1a2b3c4d5e6f"
Headers
X-Cardog-Agent-Grant, string
A session token from POST /v2/agent/session, created for you. Leave it out to read your personal threads.
Response
The thread and its messages
Agent Thread Messages required
thread, object required
The thread
data, object[] required
The messages, oldest first
links, object required
self: this endpoint. threads: the list of threads.
Changes
- info
endpoint added
- info