Send Message

Base URL:
POST: https://api.smsgatewayapi.com/v1/message/send

Parameters:
ParameterInputDescription
Required
client_idAPI client IDCan be found with your API documentation
Required
client_secretAPI client secretCan be found with your API documentation
Required
messagemessageThe message to be send.
Required
todestination numberThe number that will recieve the message
Required
sendersenderThe number or name that of the sender. A number can't be longer than 14 characters and a name can't be longer than 11 characters and can't contain special characters
Optional
dateDate and time the number will be sendFormat: yyyy-mm-dd hh:mm. If not provided the message will be send as soon as possible
Optional
referencecustom referencestring of maximum 75 characters
Optional
typetypeIf the value is "group", the "to" param will be a group ID instead of a phone number
Optional
testtrue/falseThe system will check all parameters but will not send an SMS message.
This will not use any credits.
Becauce the request can be an array, the api also accepts test as a get parameter
Optional
subidid of a subaccountIf provided, the message will be send from the subaccount
{
	"message": "Example",
	"to": "{nr}",
	"date":"2019-10-15 15:30";,
	"sender": "11111111111"
}
{
	"message": "Example",
	"to": "{group ID}",
	"type": "group",
	"date":"2019-10-15 15:30";,
	"sender": "11111111111"
}

There are two ways to send multiple messages using one api call:
Note: a single sms can't have multiple types

[
	{
		"message": "Example one",
		"to": "{nr}",
		"sender": "11111111111",
		"reference": "t_97"
	},
	{
		"message": "Example two",
		"to": "{other nr}",
		"sender": "11111111111"
	}
]
{
	"message": "Example",
	"to": ["{nr}", "{other nr}"],
	"sender": "11111111111"
}
[
	{
		"message": "Example one",
		"to": ["{nr}", "{other nr}"],
		"sender": "11111111111"
	},
	{
		"message": "Example two",
		"to": "{Group ID}",
		"type": "group",
		"sender": "11111111111"
	}
]

Example outputs:
Note: when you pass a singe message with an array as "to" but that array has only one number, the api will return the single message response.

{
	"messageid": "h2md1ewkyzjkuyn9ak7pryw1evtyw3x"
}
{
	"messageids": [
		"h2md1ewkyzjkuyn9ak7pryw1evtyw3x",
		"678rjqhrjwg3r7t78te1yxfda9u3yt6"
	]
}
{
	"messageid": "h2md1ewkyzjkuyn9ak7pryw1evtyw3x",
	"test": true
}
Our system proccesses the messages in UTF8 and generates this in CELLPHONE unicode. There are 9 characters which counted as 2 characters in GSM unicode. If you use one of these characters in your message, your message will be in fact longer. There can be errors because of this. Example: If you have a message of 160 characters and you used two €-chacters then the message real length is 162 characters long
Name Name Name
Euro symbol \ Backslash } Right brace
[ Open bracket ^ Caret ~ Tilde
] Close bracket { Left brace | Vertical bar

Check our other solutions for sending SMS messages:

SMS SOFTWARE

Send and receive SMS through our software

VOICE MESSAGES

Send text-to-speech voice messages

EMAIL2SMS

Send SMS through your email program


REGISTREER GRATIS

Ontdek onze geavanceerde SMS software vandaag!

REGISTREER