List phone numbers
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/sip-phone-numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://blackbox.dasha.ai/api/v1/sip-phone-numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/sip-phone-numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orgId": "<string>",
"phoneNumber": "<string>",
"credentialsId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdTime": "2023-11-07T05:31:56Z",
"lastUpdateTime": "2023-11-07T05:31:56Z",
"registrationStatus": {
"state": "Disabled",
"errorDescription": "<string>",
"sipResponseMessage": "<string>",
"lastUpdated": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
},
"description": "<string>",
"displayName": "<string>",
"registration": true,
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"incomingCallsAgentId": "<string>"
}
],
"totalCount": 123,
"skip": 123,
"take": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}List phone numbers
Retrieves all SIP phone numbers for your organization with support for pagination and filtering. Filter by phone number, linked agent, or unlinked status.
GET
/
api
/
v1
/
sip-phone-numbers
List phone numbers
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/sip-phone-numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://blackbox.dasha.ai/api/v1/sip-phone-numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/sip-phone-numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orgId": "<string>",
"phoneNumber": "<string>",
"credentialsId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdTime": "2023-11-07T05:31:56Z",
"lastUpdateTime": "2023-11-07T05:31:56Z",
"registrationStatus": {
"state": "Disabled",
"errorDescription": "<string>",
"sipResponseMessage": "<string>",
"lastUpdated": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
},
"description": "<string>",
"displayName": "<string>",
"registration": true,
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"incomingCallsAgentId": "<string>"
}
],
"totalCount": 123,
"skip": 123,
"take": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Query Parameters
Response
Returns phone numbers successfully
Generic paginated response containing a subset of items along with pagination metadata. Enables efficient navigation through large datasets by returning data in manageable pages rather than loading all results at once.
Was this page helpful?