List Configurations
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/organizations/telephony-configs \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/telephony-configs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/telephony-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"configurations": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": 123,
"is_default_outbound": true,
"name": "<string>",
"provider": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"phone_number_count": 0
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Telephony Configurations
List Configurations
List all telephony configurations in your organization
GET
/
api
/
v1
/
organizations
/
telephony-configs
List Configurations
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/organizations/telephony-configs \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/telephony-configs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/telephony-configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"configurations": [
{
"created_at": "2023-11-07T05:31:56Z",
"id": 123,
"is_default_outbound": true,
"name": "<string>",
"provider": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"phone_number_count": 0
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
LabsAuthLabsApiKey
Headers
Required with X-BW-LABS-AGENTS-API-KEY: the positive local workspace ID to access. The key owner must be a current member. Missing or invalid IDs return 400; non-member workspaces return 403. Not required for bearer authentication, which uses the user's selected workspace.