curl --request POST \
--url https://staging.crossmint.com/api/unstable/agent-checkouts/{id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"id": "msg_answer_1",
"parts": [
{
"action": "submit",
"requestId": "req_123",
"response": {
"answers": {
"email": "ada@example.com"
},
"kind": "form"
},
"type": "input_response"
}
]
}
'{
"messageId": "<string>",
"status": "accepted"
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}Agent Checkouts
Send Agent Checkout Message
Sends a message into a checkout run: free text, or an input_response that answers an awaiting_input run by submitting form values, choosing an alternative, or declining. The response acknowledges receipt with a messageId; the agent’s reply arrives as a later message.
API scope required: agent-checkouts.update
POST
/
unstable
/
agent-checkouts
/
{id}
/
messages
curl --request POST \
--url https://staging.crossmint.com/api/unstable/agent-checkouts/{id}/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"id": "msg_answer_1",
"parts": [
{
"action": "submit",
"requestId": "req_123",
"response": {
"answers": {
"email": "ada@example.com"
},
"kind": "form"
},
"type": "input_response"
}
]
}
'{
"messageId": "<string>",
"status": "accepted"
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}Agent Checkouts is available in production only. A staging API key gets
403 with the message "Agent Checkouts is only available in production". See Test in Production.Authorizations
apiKey & userJwtapiKey
API key required for authentication
The end user's JWT, sent as Authorization: Bearer <JWT> together with a client-side API key. Validated against the project's external JWT configuration.
Headers
Server-side subject to act on behalf of. Ignored for client-side user auth.
Path Parameters
Minimum string length:
1Body
application/json
Was this page helpful?

