curl -X POST 'https://api.sandbox.asapp.com/conversation/v1/conversations/5544332211/messages/batch' \
--header 'asapp-api-id: <API KEY ID>' \
--header 'asapp-api-secret: <API TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"text": "Hello, thank you for contacting XYZ Insurance. How can I assist you today?",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:00:00Z"
},
{
"text": "Hi, I want to check the status of my payout for my claim.",
"sender": {"role": "customer", "externalId": "cust_1234"},
"timestamp": "2024-09-09T10:01:00Z"
},
{
"text": "Sure, can you please provide me with the claim number?",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:02:00Z"
},
{
"text": "It\'s H123456789.",
"sender": {"role": "customer", "externalId": "cust_1234"},
"timestamp": "2024-09-09T10:03:00Z"
},
{
"text": "Thank you. Could you also provide the last 4 digits of your account number?",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:04:00Z"
},
{
"text": "****",
"sender": {"role": "customer", "externalId": "cust_1234"},
"timestamp": "2024-09-09T10:05:00Z"
},
{
"text": "Let me check the details for you. One moment, please.",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:06:00Z"
},
{
"text": "I see that your claim was approved on June 10, ****, for ****. The payout has been processed.",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:07:00Z"
},
{
"text": "Great! When will I receive the money?",
"sender": {"role": "customer", "externalId": "cust_1234"},
"timestamp": "2024-09-09T10:08:00Z"
},
{
"text": "The payout will be credited to your account within 3-5 business days.",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:09:00Z"
},
{
"text": "Perfect, thank you so much for your help.",
"sender": {"role": "customer", "externalId": "cust_1234"},
"timestamp": "2024-09-09T10:10:00Z"
},
{
"text": "You\'re welcome! Is there anything else I can assist you with?",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:11:00Z"
},
{
"text": "No, that\'s all. Have a nice day.",
"sender": {"role": "customer", "externalId": "cust_1234"},
"timestamp": "2024-09-09T10:12:00Z"
},
{
"text": "You too. Goodbye!",
"sender": {"role": "agent", "externalId": "agent_1234"},
"timestamp": "2024-09-09T10:13:00Z"
}
]
}'