Send Voice Message
Call the SendVMSMessage API to send a voice message.
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
Action | string | Value: SendVMSMessage. | Yes |
AccountId | int | Project ID, Get AccountId. | Yes |
TemplateId | string | Voice template ID. | Yes |
CalledNumber | string | Recipient number. | Yes |
Response Elements
Parameter name | Type | Description | Required |
---|---|---|---|
RetCode | int | When RetCode is not 0, the specific error description will be shown in Message. If RetCode is 0, Message is not returned. | Yes |
Action | string | Operation name. | Yes |
Message | string | When RetCode is not 0, the specific error description will be shown in Message. | Yes |
SessionNo | string | The 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"
}