Send Message
Base URL:POST: https://api.smsgatewayapi.com/v1/message/send
Parameters:
Parameter | Input | Description | |
---|---|---|---|
Required | client_id | API client ID | Can be found in your api documentation |
Required | client_secret | API client secret | Can be found in your api documentation |
Required | message | message | the message to be sent |
Required | to | destination number | the number(s) that will receive the message |
Required | sender | sender | The number or name of the sender. A number can't be longer than 14 characters.A name can't be longer than 11 characters and can't contain special characters |
Optional | date | Date and time the number will be sent | Format: yyyy-mm-dd hh:mm. If not provided, the message will be sent as soon as possible |
Optional | reference | custom reference | String of max. 75 characters |
Optional | test | true/false | The system will check all parameters but will not send an SMS message (no credits used). |
Optional | subid | id of a subaccount | If provided, the message is sent from the subaccount |
{ "message": "Example", "to": "{nr}", "date":"2020-01-01 15:30", "sender": "11111111111" }
{ "message": "Example", "to": ["{nr1}", "{nr2}"], "sender": "11111111111" }
{ "messageid": "h2md1ewkyzjkuyn9ak7pryw1evtyw3x" }
{ "messageids": [ "h2md1ewkyzjkuyn9ak7pryw1evtyw3x", "678rjqhrjwg3r7t78te1yxfda9u3yt6" ] }
Our system processes the messages in UTF8 and generates this in GSM unicode.
There are 9 characters that are counted as 2 characters in GSM unicode.
If you use one of these characters in your message, your message will longer.
Example: If you have a message of 160 characters and you used a €-characters then the message real length is 161 characters long
Symbol | Name | Symbol | Name | Symbol | Name |
---|---|---|---|---|---|
€ | Euro symbol | \ | Backslash | } | Right brace |
[ | Open bracket | ^ | Caret | ~ | Tilde |
] | Close bracket | { | Left brace | | | Vertical bar |