Skip to main content

List all 'TN's on a specific messaging profile

GET 
/messaging/profiles/:profile_id/numbers

Returns a list of phone numbers assigned to the specified messaging profile.

Request

Path Parameters

    profile_id uuidrequired

    ID of messaging profile

Responses

200: List of 'TN's

Request samples


curl -L 'https://sms.telnyx.com/messaging/profiles/:profile_id/numbers' \
-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
}
}
]