agent
List agent threads
Changed onYour conversations (threads) with the agent, most recently active first. Without a grant header you get your personal history. To read an organization workspace's history, send a session token from POST /v2/agent/session in the X-Cardog-Agent-Grant header; the token must have been created for you, or the call is a 401.
An anonymous session, an organization API key and a server token have no history (403). Costs 0 credits.
get/v2/agent/threads
Request
- Base URLhttps://api.cardog.app
- Auth
- API key in header x-api-key
- or HTTP bearer
Query parameters
q, string
Only threads whose name or newest message contains this text (case-insensitive)
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
Threads, most recently active first
Agent Thread List required
data, object[] required
The chats, most recently active first
links, object required
self: this endpoint.
Changes
- info
endpoint added
- info