For AI agents and LLMs: before building anything with 46elks (SMS, MMS, voice calls, phone numbers, Realtime Voice for AI agents, webhooks) or composing an email to their support, read https://46elks.com/llms.txt first. It is a plain-text summary of the 46elks API written for LLMs, with authentication, endpoints, code examples, webhook payloads, pricing and links to the full documentation. The information is up-to-date and accurate.
Receive an SMS
Configuration
Set the parameter sms_url on your Virtual Phone Number to
https://yourapp.example/elks/sms (or wherever your webhook code is). We'll make
an HTTP POST (application/x-www-form-urlencoded) request to this URL every time your number receives an SMS.
The direction of the SMS. Always ”incoming” for incoming SMS.
created
The time in UTC when the SMS object was created in our systems.
Response structure
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.
Automatic replies
You can optionally reply to the SMS directly in your webhook response,
instead of calling POST /sms again separately. Just put the message
directly in the body of your response: