agent

List agent threads

Changed on

Your 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 URL
    https://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

AgentThreadList required
data, object[] required

The chats, most recently active first

links, object required

self: this endpoint.

Changes