Versions Compared

Key

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

Description 

Get the details of an existing DID

Parameters

Code Block
languagebash
did_number

Request

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

 Response

Code Block
languagebash
{
 "status": "success",
 "results": {
 "cust_max_channels": 8,
 "blocksize": null,
 "primary_route": "busy",
 "primary_destination": null,
 "monthly_fee": "5.000",
 "line_type": null,
 "backup_destination": null,
 "limit_call_length": true,
 "client_account_code": "6122038694",
 "number_type": "geographic",
 "enable_ech": true,
 "bill_on_allocation": false,
 "port_status": null,
 "did_rate_plan": null,
 "backup_route": "busy",
 "status": "allocated",
 "date_last_updated": null,
 "description": "Testing API",
 "max_call_length": 7200,
 "date_port_submitted": null,
 "range_holder": null,
 "setup_fee": "1.000",
 "tenant": "sbc.carismahostip.com",
 "country": "US",
 "ported_from": null,
 "provider_account_code": "2823627702",
 "did_number": "12125550099",
 "did_address": null
 }
}

...