Skip to main content

Send Voice Message

Call the SendVMSMessage API to send a voice message.

Request Parameters

Parameter nameTypeDescriptionRequired
ActionstringValue: SendVMSMessage.Yes
AccountIdintProject ID, Get AccountId.Yes
TemplateIdstringVoice template ID.Yes
CalledNumberstringRecipient number.Yes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeintWhen RetCode is not 0, the specific error description will be shown in Message. If RetCode is 0, Message is not returned.Yes
ActionstringOperation name.Yes
MessagestringWhen RetCode is not 0, the specific error description will be shown in Message.Yes
SessionNostringThe unique ID of the submitted task for this session, used to query the send list in this session.No

Request Example

curl --request POST 'https://api.uspeedo.com/api' \
--header 'Content-Type: application/json' \
-d '{
"Action": "SendVMSMessage",
"AccountId": 1,
"TemplateId": "template id",
"CalledNumber": "+11111111"
}'

Response Example

{
"Action": "SendVMSMessageResponse",
"Message": "Send success",
"RetCode": 0,
"SessionNo": "session no"
}