Get Links
This request returns a list of existing links for the currently logged-in partner.
get | /shortener/links |
Sample
A sample GET request to get links matching the criteria in the request URL:
curl -X GET \
'https://api.carrierx.com/core/v2/shortener/links' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with a list of Link objects:
{
"count": 1,
"has_more": false,
"items": [
{
"date_accessed": null,
"date_created": "2024-01-18T19:26:02.000Z",
"destination_url": "http://destinationurl.com",
"domain_sid": "330a8a83-d4bb-4f39-ae54-c59c8d87cd44",
"hits": 0,
"link_sid": "a533f53a-7e6f-4822-be3c-3767924ee2a9",
"maximum_ttl": -1,
"mode": "redirect_temporary",
"partner_sid": "e00430c3-a7d0-4666-ab5c-f7202448382f",
"short_name": "eOtEtO",
"url": "http://newdomain.com/eOtEtO"
}
],
"limit": 1000,
"offset": 0,
"pagination": {},
"total": null
}
This request is enabled for Pagination, Result Filtering, and Field Filtering.
Required Scopes
To get information about Link objects, the partner must have one of the following scopes enabled:
shortener.manage
shortener.read