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.
Overview
Send an SMS
Receive an SMS
SMS actions
Action: Forward
Action: Reply
SMS delivery reports
SMS history
Get SMS by ID
Send an MMS
Receive an MMS
MMS history
Get MMS by ID
Make a phone call
Receive a phone call
Call actions
Action: Connect
Action: Connect to SIP
Action: Play
Action: IVR
Action: Record
Action: Hangup
Option: Recordcall
Call history
Get phone call by ID
Call from client
Voice streaming
WebSocket messages
Message: sync
Message: interrupt
Audio formats
Allocate a number
Deallocate a number
Configure a number
Get number by ID
List all numbers
Activate Conversations
Send a question
Receive a reply
Conversation history
Get conversation by ID
MMS image history
Get MMS image by ID
Get MMS image file
Recording history
Get recording by ID
Get recording .wav file
Get account details
Update account
Create a subaccount
Update a subaccount
Get subaccount details
Get all subaccounts
VOIP SIP
WebRTC SIP
Using GET requests instead of POST
Server IP Addresses
OpenAPI Specification
Show virtual phone number information
Request
GET https://api.46elks.com/a1/numbers/{id}
Response structure
Example JSON response
{
"id": "n57c8f48af76bf986a14f251b35389e8b",
"active": "yes",
"country": "se",
"number": "+46766861001",
"capabilities": [ "sms", "voice", "mms" ],
"sms_url": "https://yourapp.example/elks/sms",
"mms_url": "https://yourapp.example/elks/mms",
"voice_start": "https://yourapp.example/elks/calls",
}
Parameter
Type
Description
id
string
ID of the allocated number
active
string
If the number is active or not, always "yes" on newly allocated numbers
country
string
A two-letter (ISO alpha 2) country code.
number
string
The phone number in E.164 format .
capabilities
list
The capabilities of the number, for example [ "sms", "voice" ] or
[ "websocket" ]. See Number
types .
sms_url
string
If the number has SMS support this url is where the API will send incoming SMS.
voice_start
string
If the number has Voice support this url is where the API will send incoming calls to be handled.
mms_url
string
If the number has MMS support this url is where the API will send incoming MMS.
websocket_url
string
If the number has WebSocket support this is the url the API will
connect to when the number receives a call.