This product is a Beta product. This means that it and the information is subject for change, updates or removal.
If you test this product, please let us know your feedback, so that we can make it the best possible product for you. Please share your feedback with us here.
Replies to conversations will be delivered with a POST request to the URL specified in the "reply_url" field when creating the conversation.
POST https://yourapp.example/elks/conversation_replies
sms_id=sf8425555e5d8db61dda7a7b3f1b91bdb&
from=%2B46706861004&
created=2024-06-01T13%3A57%3A23.741000&
message=No%2C%20Thursday%20doesn%27t%20work%20for%20me
Parameter | Description |
---|---|
id | The unique id of the message in our systems. |
from | The sender of the SMS. |
to | The phone number the SMS was sent to. |
message | The contents of the SMS. |
direction | The direction of the SMS. Always ”incoming” for incoming SMS. |
created | The time in UTC when the SMS object was created in our systems. |
It is possible to respond to the webhook with a json object with the "reply" parameter to send out a reply to the incoming message.
{
"reply": "Thank you for your reply"
}
If you expect another reply you can keep the conversation going by including "retain": true in the reply.
{
"reply": "Ok, does Friday work better for you?",
"retain": true
}
Your webhook code must respond with a HTTP status in the range 200-204. If not, the API will consider the request failed and keep trying for at least 6 hours and at least 5 times per callback.