Read an agent conversation
GET
/api/v1/agents/{id}/messages
Code sample: cURL
curl 'https://api.justcrawl.io/api/v1/agents/AGENT_ID/messages?limit=200' \ -H 'Authorization: Bearer $JUSTCRAWL_API_KEY'Returns the tenant-scoped transcript. The latest 200 rows are returned by default.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Agent and conversation id.
Query Parameters
Section titled “Query Parameters”limit
integer
latest
boolean
False returns the oldest page; true returns the most recent page.
Responses
Section titled “Responses”Conversation messages in sequence order.
Media typeapplication/json
object
messages
required
Array<object>
object
id
required
string format: uuid
conversationId
required
string format: uuid
role
required
string
content
required
object
key
additional properties
any
turnId
required
string format: uuid
seq
required
integer
model
required
string
inputTokens
required
integer
outputTokens
required
integer
createdAt
required
string format: date-time
Example
{ "messages": [ { "role": "user" } ]}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"}