Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description 

Get a list of DIDs belonging to a client. 

Parameters

Code Block
languagebash
client_account_code

Request

Code Block
languagebash
curl -X POST \
-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{"client_account_code":"1480270993"}' \
-k https://your.domain.com/api/users/get_client_did

 Response

Code Block
languagebash
{
"441138300783":
 {
"Status": "allocated",
 "Channels": 2,"Number Type": "geographic",
"Primary Route": "device",
"Backup Route": "busy",
"Primary Destination": "1480270993Jrcdj0",
"Backup Destination": "",
"Country": "United Kingdom"
},
"442031290962":
{
"Status": "allocated",
"Channels": 2,
"Number Type": "geographic",
"Primary Route": "uri",
"Backup Route": "congestion",
"Primary Destination": "{E164}@sbc.carismahostip.com:5060",
"Backup Destination": "", "Country": "United Kingdom"}
}

...