列出呼入号码
开发环境
开发环境
GET
/v1/inbound
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v1/inbound' \
--header 'authorization: <authorization>'
响应示例响应示例
{
"inbound_numbers": [
{
"created_at": "2023-11-27T17:21:38.33359+00:00",
"phone_number": "+18005551234",
"prompt": "When you receive a call, recite a random poem from 'Sunset Boulevard' and then ask, 'How may I assist you in your poetic journey today?'",
"webhook": "https://api.example.com/poetry-line",
"voice_id": 2,
"dynamic_data": [],
"interruption_threshold": null,
"first_sentence": null,
"reduce_latency": true,
"transfer_phone_number": null,
"voice_settings": null,
"record": false,
"max_duration": 30
},
{
"created_at": "2023-11-25T21:42:22.325993+00:00",
"phone_number": "+18005559876",
"prompt": "Answer with 'You've reached the Secret Society of Enigmatic Enthusiasts. Please state the password or leave a message after the beep.'",
"webhook": "https://mysteryclub.example.com/inbound-call-hook",
"voice_id": 1,
"dynamic_data": null,
"interruption_threshold": null,
"first_sentence": null,
"reduce_latency": true,
"transfer_phone_number": null,
"voice_settings": null,
"record": false,
"max_duration": 30
}
]
}
请求参数
Header 参数
authorization
string
必需
示例值:
<authorization>
返回响应
修改于 2024-05-10 08:12:44