List Phone Numbers
Phone Numbers
List Phone Numbers
List all phone numbers.
GET
List Phone Numbers
Authorizations
Response
200 - application/json
Successful Response
- TransferDestinationNumber
- TransferDestinationSip
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request GET \
--url https://api.voicebot.studio/api/v1/phone-number \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.voicebot.studio/api/v1/phone-number"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.voicebot.studio/api/v1/phone-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.voicebot.studio/api/v1/phone-number"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"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>"
}
]List all phone numbers.
curl --request GET \
--url https://api.voicebot.studio/api/v1/phone-number \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.voicebot.studio/api/v1/phone-number"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.voicebot.studio/api/v1/phone-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.voicebot.studio/api/v1/phone-number"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"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>"
}
]Successful Response
Show child attributes