curl --request POST \
--url https://api.voicebot.studio/api/v1/phone-number \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"number": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>",
"provider": "twilio",
"name": "<string>",
"assistantId": "<string>",
"squadId": "<string>",
"fallbackDestination": {
"number": "<string>",
"type": "number",
"extension": "<string>",
"callerId": "<string>",
"message": "<string>",
"description": "<string>",
"numberE164CheckEnabled": true
},
"serverUrl": "<string>",
"serverUrlSecret": "<string>"
}
'{
"id": "<string>",
"provider": "<string>",
"number": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"assistantId": "<string>",
"squadId": "<string>",
"fallbackDestination": {
"number": "<string>",
"type": "number",
"extension": "<string>",
"callerId": "<string>",
"message": "<string>",
"description": "<string>",
"numberE164CheckEnabled": true
},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"orgId": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>"
}Create a new phone number.
curl --request POST \
--url https://api.voicebot.studio/api/v1/phone-number \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"number": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>",
"provider": "twilio",
"name": "<string>",
"assistantId": "<string>",
"squadId": "<string>",
"fallbackDestination": {
"number": "<string>",
"type": "number",
"extension": "<string>",
"callerId": "<string>",
"message": "<string>",
"description": "<string>",
"numberE164CheckEnabled": true
},
"serverUrl": "<string>",
"serverUrlSecret": "<string>"
}
'{
"id": "<string>",
"provider": "<string>",
"number": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"assistantId": "<string>",
"squadId": "<string>",
"fallbackDestination": {
"number": "<string>",
"type": "number",
"extension": "<string>",
"callerId": "<string>",
"message": "<string>",
"description": "<string>",
"numberE164CheckEnabled": true
},
"serverUrl": "<string>",
"serverUrlSecret": "<string>",
"orgId": "<string>",
"twilioAccountSid": "<string>",
"twilioAuthToken": "<string>"
}"twilio"Show child attributes
Server URL must match either workflow.amira.bot or workflow.voicebot.studio
Successful Response
Show child attributes