Skip to main content

Get DIDs

This request returns a list of DIDs associated with a FlexML Application Endpoint.

get/dids

Sample

A sample GET request to get a list of DIDs matching the criteria in the request URL:

curl -X GET \
'https://api.carrierx.com/flexml/v1/dids' \
-u 'flexml_user_123:qwerty123'

Response

200 status code with a list of DID objects associated with the endpoint:

{
"count": 1,
"has_more": false,
"items": [
{
"account_sid": "1d4adc32-45d1-4789-9780-928049e2bce1",
"country_code": "USA",
"did_sid": "d72c0ec3-c21d-4db1-8877-690cb9644fbc",
"in_country_format": "(516) 206-5319",
"international_format": "+1 516-206-5319",
"method": "POST",
"phonenumber": "15162065319",
"status_callback_method": "POST",
"status_callback_url": null,
"url": null
}
],
"limit": 10,
"offset": 0,
"pagination": {},
"total": 1
}

This request is enabled for Pagination, Result Filtering, and Field Filtering.