Play Prompt to External Number
Through this interface, developers could play music to an external number.
Endpoint
POST /api/v0.0.1/outbound/playprompt?token={token}
Request Parameters
Name | Importance | Type | Description |
outto | Required | String | The external number. |
prompt | Required | String | Audio file name.
Note: The file name does not need to add a file suffix. The file name must contain at least a letter, and cannot contain character +. The audio file must be uploaded to the PBX’s Custom Prompt page beforehand. For multiple audio files, separate the file names with + . Example: “prompt:music1+music2” |
Examples
Request Example
POST /api/v0.0.1/outbound/playprompt?token=813b621cfe8eecf445a2ce1f4a079ffe HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“outto”: “16103”,
“prompt”: “haruhi3+xiaoshao5”
}
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”
}