Send Message
GET {{baseUrl}}/sms/:format?api_key=<>&api_secret=<>&client-ref=<>&from=<>&message-class=<>&network-code=<>&status-report-req=<>&text=<>&to=<>&ttl=<>&type_of_media=<>&vcard=<>
Nexmo makes it simple to send and receive a high volume of SMS anywhere in the world within minutes.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Your API Key. | |
api_secret | string | Your API Secret. | |
client-ref | string | Include any reference string for your reference. Useful for your internal reports (40 characters max). | |
from | string | Sender address may be alphanumeric (Ex: from=MyCompany20). Restrictions may apply, depending on the destination. | |
message-class | string | Set to 0 for Flash SMS. | |
network-code | string | Force the recipient network operator MCCMNC, make sure to supply the correct information otherwise the message wont be delivered. | |
status-report-req | string | Set to 1 if you want to receive a delivery report (DLR) for this request. Make sure to configure your Callback URL in your API Settings | |
text | string | Body of the text message (with a maximum length of 3200 characters), UTF-8 and URL encoded value. | |
to | string | Mobile number in international format, and one recipient per request. | |
ttl | string | Message life span in milliseconds. | |
type_of_media | string | This can be omitted for text (default), but is required when sending a Binary (binary), WAP Push (wappush), Unicode message (unicode), vcal (vcal) or vcard (vcard). | |
vcard | string | vcard text body correctly formatted. |