Send an SMS message. The bnum needs to be an AVANSER BNUM that the logged in user has access to send messages from. For more information about checking this, see the Mobile BNUMs section in the User Information documentation
Errors
| Error Code | Error Type | Error Message |
|---|---|---|
| -1015 | MISSING-BNUM | bnum field missing |
| -1016 | MISSING-EXTERNAL | external field missing |
| -1017 | MISSING-MESSAGE | message field missing |
| -1023 | INVALID-BNUM | Unable to parse BNUM number |
| -1022 | INVALID-EXTERNAL | Unable to parse EXTERNAL number |
| -1018 | SEND-MESSAGE-FAILED | Unable to send your message |
SEND-MESSAGE-FAILED is a generic error returned if the message cannot be sent for an unspecified reason.
Security
accessToken
- Avanser Productionhttps://p3.avanser.com/app/sendmessage
- AVANSER Mock Serverhttps://avanser.redocly.app/_mock/user-api/references/sendmessage
curl -i -X POST \
'https://p3.avanser.com/app/sendmessage?bnum=%2B61-0412345678&external=0498765432&message=string&token=YOUR_API_KEY_HERE'SMS submission result.
The time that the API response left the server, represented as the number of seconds since the UNIX epoch.
Example:1508903167
The number of seconds that it took to process the API request.
Example:0.00041531896591187
Boolean indicating whether there was an error returned by the API request.
Example:false
Response
{ "timestamp": 1510101887, "exection": 0.00018191409111023, "error": false, "data": "+61-0412345678;+61-04987654321;12345" }