MessageEndpoint
The following resources are applicable:
/message/send
Mount Point: /rest/message/send
GET
Sends a message to a recipient.
The recipient can also be an group. The best channel (group, user, remote) is automatically selected.
Example: https://api.mysms.com/json/message/send?api_key=xxxxx&msisdn=xxx&password=xxx&recipient=436761234567&message=Hi
Error Codes
2 | A required parameter was not given |
97 | The access to the api was denied |
98 | You made too much requests in a short time |
99 | The service is currently not available |
100 | The auth token is invalid |
101 | The credentials are wrong |
109> | The login is blocked for a specific time, because some wrong logins were made |
113 | For this operation the user must have a msisdn associated |
200 | One or more recipients are not in the correct format or are containing invalid msisdns (i.e: 436761234567) |
202 | The credit is not enough to send the message to all recipients |
600 | The api key is invalid |
1000 | The api key is invalid |
Parameters
name | description | type | default |
---|---|---|---|
api_key | (no documentation provided) | query | |
msisdn | (no documentation provided) | query | |
password | (no documentation provided) | query | |
recipient | (no documentation provided) | query | |
message | (no documentation provided) | query | |
date | (no documentation provided) | query |
Response Body
element: | messageSendResponse |
media types: | */* application/xml application/json |
(no documentation provided)
POST
Sends a message to a recipient.
The recipient can also be an group. The best channel (group, user, remote) is automatically selected.Error Codes
2 | A required parameter was not given |
97 | The access to the api was denied |
98 | You made too much requests in a short time |
99 | The service is currently not available |
100 | The auth token is invalid |
101 | The credentials are wrong |
109 | The login is blocked for a specific time, because some wrong logins were made |
113 | For this operation the user must have a msisdn associated |
200 | One or more recipients are not in the correct format or are containing invalid msisdns (i.e: 436761234567) |
202 | The credit is not enough to send the message to all recipients |
600 | The api key is invalid |
1000 | The api key is invalid |
Request Body
element: | messageSendRequest |
media types: | */* application/xml application/json |
(no documentation provided)
Response Body
element: | messageSendResponse |
media types: | */* application/xml application/json |
(no documentation provided)