Get LRN Prefixes
This request returns a list of LRN Prefix objects.
get | /phonenumber/lrn_prefixes |
Sample
A sample GET request to get LRN prefixes matching the criteria in the request URL:
curl -X GET \
'https://api.carrierx.com/core/v2/phonenumber/lrn_prefixes' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with a list of LRN Prefix objects:
{
"count": 1,
"has_more": false,
"items": [
{
"attributes": {},
"callback_url": null,
"lrn_prefix_sid": "cea69d91-8db6-27b5-a3b2-d6a4d8b62573",
"lrn_sid": null,
"name": "N/A",
"partner_sid": "e00430c3-a7d0-4666-ab5c-f7202448382f",
"prefix": "1520",
"string_key_1": null,
"string_key_2": null,
"source_trunk_group_sid": null,
"transformations": [],
"trunk_group_sid": null
}
],
"limit": 10,
"offset": 0,
"pagination": {},
"total": 1
}
This request is enabled for Pagination, Result Filtering, and Field Filtering.
Required Scopes
To get information about LRN Prefix objects, the partner must have one of the following scopes enabled:
phonenumber.manage
phonenumber.read
Query Arguments
Parameter | Data Type | Description |
---|---|---|
with_related | boolean | Determines if the partner information related to the LRN prefix should be shown. Values accepted in this field are true and false . The default value is false . |