Sending VOICECODE
Sending VOICECODE messages
POST
https://direct.revicom.ltd/api/v1/message
The method allows sending an array of single messages (1 to 1,000)
Headers
Authorization*
string
Basic {TOKEN_1}
Content-Type*
string
application/json
Request Body
channelType*
string
Sending channel (always VOICECODE
)
senderName*
string
Sender name (always voicecode
)
destination*
string
Subscriber number
content*
string
Object with a message content
tags
array
Message tags (array of strings). Each tag must match the expression ^\w+$
(any case letters, numbers and underscore "_" are allowed)
callbackUrl
string
Address (URL) to send callback
callbackEvents
array
Events to send callback (an array of strings).
If callbackUrl
value is set and callbackEvents
value is not set in the request, callback will be sent on the delivered
event.
content.contentType*
string
Content type (always text
)
content.text*
string
The text of the message that will be read to the subscriber. Must match the template (described below). From 1 to 1000 characters
ttl
integer
Message lifetime in seconds. After the ttl expires, the final status is assigned to the message. 30
≤
ttl
≤
86400
externalMessageId
string
Internal message id in your system (up to 100 symbols)
If the request is successful, a response is returned that lists the message IDs and result codes. With errors = false, all submitted messages are guaranteed to have been successfully generated.
Recommended timeout: 70 seconds.
Usually, response to request returns in no more than a few seconds. However, timeout of 70 seconds guarantees that response will be received, including in situations of increased load.
Enumerations:
callbackEvents
Request example
Last updated