Skip to main content

Retrieve a short code

GET 
/short_codes/:id

Retrieve a short code

Request

Path Parameters

    id uuidrequired

    The id of the short code

Responses

200: Successful response with details about a short code.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/short_codes/:id' \
-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"
}
}