Skip to main content

List short codes

GET 
/short_codes

List short codes

Request

Query Parameters

    filter object

    Consolidated filter parameter (deepObject style). Originally: filter[messaging_profile_id]

    page object

    Consolidated page parameter (deepObject style). Originally: page[number], page[size]

Responses

200: Successful response with a list of short codes.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/short_codes' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"record_type": "short_code",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"short_code": "12345",
"country_code": "US",
"messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}