Skip to main content

Retrieve a 'TN'

GET 
/messaging/numbers/:tn

Retrieves the specified phone number's existing messaging settings.

Request

Path Parameters

    tn stringrequired

    E.164 formatted phone number (without the plus sign)

Responses

200: Requested 'TN'

Request samples


curl -L 'https://sms.telnyx.com/messaging/numbers/:tn' \
-H 'Accept: application/json'

Response samples


{
"num": "+13129457420",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_updated": 1521566241103171,
"country_code": "string",
"campaign_id": "string",
"num_country": "USA",
"traffic_type": "P2P",
"num_type": "long-code",
"sms": {
"enabled": true,
"domestic_two_way": true,
"international_inbound": true,
"international_outbound": true
},
"mms": {
"enabled": true,
"domestic_two_way": true,
"international_inbound": true,
"international_outbound": true
}
}