curl --request POST \
--url https://api.cleartalk.ai/cleartalk-sms/send-sms \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"user_number": "+1234567890",
"agent_number": "+1234567890",
"agent_message": "Hello! How can I help you today?",
"request_data": {
"customer_id": "12345",
"order_number": "ORD-789"
}
}
'curl --request POST \
--url https://api.cleartalk.ai/cleartalk-sms/send-sms \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"user_number": "+1234567890",
"agent_number": "+1234567890",
"agent_message": "Hello! How can I help you today?",
"request_data": {
"customer_id": "12345",
"order_number": "ORD-789"
}
}
'API Key for authentication
The user's phone number to send the message to
"+1234567890"
The agent's phone number to send the message from
"+1234567890"
The message to send to the user
"Hello! How can I help you today?"
Additional request data to be used in the conversation
{
"customer_id": "12345",
"order_number": "ORD-789"
}