User
Messages
Enqueue message
Enqueues a message for sending. If deviceId is set, the specified device is used; otherwise a random registered device is chosen.
post/3rdparty/v1/messages
Query parameters
skipPhoneValidationboolean
Skip phone validation
deviceActiveWithininteger
Filter devices active within the specified number of hours
Request body
Example request
{
"dataMessage": {
"data": "SGVsbG8gV29ybGQh",
"port": 53739
},
"deviceId": "PyDmBQZZXYmyxMwED8Fzy",
"id": "PyDmBQZZXYmyxMwED8Fzy",
"isEncrypted": true,
"message": "Hello World!",
"phoneNumbers": [
"79990001234"
],
"scheduleAt": "2020-01-01T08:30:00Z",
"simNumber": 1,
"textMessage": {
"text": "Hello World!"
},
"ttl": 86400,
"validUntil": "2020-01-01T00:00:00Z",
"withDeliveryReport": true
}Response
Message enqueued
Example response
{
"dataMessage": {
"data": "SGVsbG8gV29ybGQh",
"port": 53739
},
"deviceId": "PyDmBQZZXYmyxMwED8Fzy",
"hashedMessage": {
"hash": "1d4b6e3b1b6e3b1b6e3b1b6e3b1b6e3b1b6e3b1b"
},
"id": "PyDmBQZZXYmyxMwED8Fzy",
"recipients": [
{
"error": "timeout",
"phoneNumber": "79990001234"
}
],
"textMessage": {
"text": "Hello World!"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.