SMS/MMS
Last updated
Last updated
With VoIP Number you can send SMS to any number in the world programmatically, straight from your app. Simply follow these steps
First number (from
) must belong to your account on and must have SMS capabilities. You will find your accountId
and apiToken
on the Settings page at
You can change your API token anytime by clicking GENERATE
On success response contains
status
: will be set to queued
, you will see when it changes to delivered
on your Messaging page at app.voipnumber.net/messaging
body
: text sent in the SMS
timestamp_s
: number of seconds which have passed since UNIX epoch (1 January 1970)
created
: same timestamp but in human-readable format
On error, an error code and error description is returned. These are possible values
AccountId not set or empty
API token not set or empty
User with this AccountId cannot be found
API token doesn't match AccountId
Number doesn't exist on VoIP Number
Number doesn't belong to this account
Coding syntax error
Make sure the url you will set can receive a call from public network. Our message is sent to your webhook from api.voipnumber.net
in JSON format and contains Host: 'api.voipnumber.net'
header that you can use for authorization check
Our message to your webhook contains following data
id
: the reference to the SMS that you will also find on Messaging Data Records page on your account at
A number with SMS capability can send and receive SMS. To receive an SMS sent to your Number configure a webhook for that Number at
where mdr_timestamp_s
, mdr_created
and mdr_id
refer to the Messaging Data Record
created on receipt of this SMS/MMS
message. Every SMS/MMS message is reported on the Messaging Data Records page at (SMS/MMS). You will also see there if your webhook was called and what was the (HTTPs) status code returned by your infrastructure through that call