Skip to content

Read an agent conversation's durable cards

GET
/api/v1/agents/{id}/cards
Code sample: cURL
curl 'https://api.justcrawl.io/api/v1/agents/AGENT_ID/cards' \
-H 'Authorization: Bearer $JUSTCRAWL_API_KEY'

Returns the complete ordered card history, durable action resolutions, and id-only save receipts. The response is intentionally unpaginated so replay cannot resurrect an old one-shot question. A save receipt remains after its saved query is deleted; savedQueryId is then null and the consumed offer must not be replayed.

id
required
string format: uuid

Agent and conversation id.

Full card replay state.

Media typeapplication/json
object
cards
required
Array<object>
object
seq
required
integer
turnId
required
string format: uuid
nullable
card
required
Any of:

Immutable, server-authored offer to save one completed agent query. Only a click on its stored Save action can authorize the save; clients and models cannot replace the source, scope, metadata, or author at acceptance time.

object
id
required
string format: uuid
type
required
string
Allowed values: save_query_offer
version
required
integer
Allowed values: 1
payload
required
object
sourceQueryId
required
string format: uuid
proposedName
required
string
proposedDescription
required
string
nullable
scopeKind
required
string
Allowed values: agent
scopeAgentId
required
string format: uuid
actions
required
Array<object>
>= 2 items <= 2 items

A server-authored card action. Clients echo only its id and stored value.

object
id
required
string
label
required
string
repeatable
boolean
value
nullable
resolutions
required
Array<object>
object
cardId
required
string format: uuid
cardType
required
string
actionId
required
string
value
required
nullable
source
required
string
Allowed values: click typed legacy
sourceMessageId
required
string format: uuid
resolvedAt
required
string format: date-time
saveReceipts
required
Array<object>

Id-only durable proof that a save offer was consumed. It survives saved-query deletion.

object
cardId
required
string format: uuid
sourceQueryId
required
string format: uuid
savedQueryId
required
string format: uuid
nullable
toolCallId
required
string
saveOutcomes
required
Array<object>

Durable recoverable result for a save offer whose write rolled back.

object
cardId
required
string format: uuid
status
required
string
Allowed values: name_conflict
proposedName
required
string
nullable
toolCallId
required
string
Example
{
"cards": [
{
"card": {
"type": "save_query_offer",
"version": 1,
"payload": {
"scopeKind": "agent"
}
}
}
],
"resolutions": [
{
"source": "click"
}
],
"saveOutcomes": [
{
"status": "name_conflict"
}
]
}

Missing or invalid authentication token

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

Insufficient permissions for this operation

Media typeapplication/json
object
error
string
Example
{
"error": "No organization. Complete onboarding first."
}

Resource not found

Media typeapplication/json
object
error
string
Example
{
"error": "Workflow not found"
}

Unexpected server error. Logs and PostHog $exception capture

Media typeapplication/json
object
error
string
Example
{
"error": "Something went wrong"
}