Send a message or click an agent card action
curl -X POST 'https://api.justcrawl.io/api/v1/agents/AGENT_ID/messages' \ -H 'Authorization: Bearer $JUSTCRAWL_API_KEY' \ -H 'Content-Type: application/json' \ -d '{"action":{"cardId":"SAVE_OFFER_CARD_ID","actionId":"accept"}}'Queues one agent turn. For a card click, send only the stored cardId, actionId,
and optional stored value. The gateway reloads the tenant-owned card, validates the
action, authors canonical transcript text, and refuses altered or already-used
one-shot actions. A save_query_offer is accepted only through this click route;
typed text and model/tool calls cannot authorize saving. Accepting that offer also
requires bi:write; declining it and other card actions require workflows:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Agent and conversation id.
Request Bodyrequired
Section titled “Request Bodyrequired”object
A click on an action loaded from the same conversation card. The gateway reloads the stored action and ignores client-authored display text.
object
object
A click on an action loaded from the same conversation card. The gateway reloads the stored action and ignores client-authored display text.
object
Examplegenerated
{ "content": "example", "action": { "cardId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "actionId": "example", "value": "example" }}Responses
Section titled “Responses”Turn accepted. content is present for card actions and is authored by the server.
object
Examplegenerated
{ "turnId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "content": "example"}Validation failed — request body or query is missing/invalid
object
Example
{ "error": "Missing or invalid \"url\" field"}Missing or invalid authentication token
object
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
object
Example
{ "error": "No organization. Complete onboarding first."}Resource not found
object
Example
{ "error": "Workflow not found"}The one-shot action was already used or an identical click is still in flight.
object
Examplegenerated
{ "error": "example"}Unexpected server error. Logs and PostHog $exception capture
object
Example
{ "error": "Something went wrong"}