Skip to main content

Get Domains

This request returns a list of existing domains for the currently logged-in partner.

get /shortener/domains

Sample

A sample GET request to get domains matching the criteria in the request URL:

curl -X GET \
'https://api.carrierx.com/core/v2/shortener/domains' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

200 status code with a list of Domain objects:

{
"count": 1,
"has_more": false,
"items": [
{
"domain_name": "newdomain.com",
"domain_sid": "a0625551-63de-428e-889d-2d467b4e77a3",
"expired_mode": "redirect_temporary",
"expired_page": null,
"expired_status_code": null,
"minimum_length": 6,
"not_found_mode": "redirect_temporary",
"not_found_page": null,
"not_found_status_code": null,
"partner_sid": "e00430c3-a7d0-4666-ab5c-f7202448382f",
"scope": "children",
"secure": "disabled",
"suffix_pattern": null
}
],
"limit": 1000,
"offset": 0,
"pagination": {},
"total": 1
}

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

Required Scopes

To get information about Domain objects, the partner must have one of the following scopes enabled:

  • shortener.manage
  • shortener.read