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.
Get SMS by ID
Request
GET https://api.46elks.com/a1/sms/{id}
Response structure
Example JSON response
{
"id": "s3633fa8e62f823e52fbc67ebf6925ab5",
"direction": "incoming",
"from": "SMSElk",
"created": "2016-08-18T09:55:31.116000",
"to": "+46700000000",
"message": "I'm not a moose."
}
Parameter
Type
Description
id
string
ID of the SMS.
direction
string
Incoming or outgoing.
from
string
The sender.
to
string
The phone number of the recipient, in E.164 format.
created
string
The time in UTC when the SMS was created.
delivered
string
The time in UTC when the SMS was delivered.
message
string
The content of the SMS, same as the message parameter. Not included in the response if dontlog=message is set.
status
string
created (received by our servers), sent (sent from us to the carrier), delivered (confirmed delivered to the recipient) or failed (could not be delivered).
cost
integer
The cost of sending the SMS. Specified in 10000s of the currency of the account (SEK or EUR). For example, for an account with currency SEK, a cost of 3500 means that it cost 0.35SEK. Learn more about the details of pricing.