Check out our upcoming events and meetups! View events →
List all alphanumeric sender IDs associated with a specific messaging profile.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const alphanumericSenderID of client.messagingProfiles.listAlphanumericSenderIDs(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
)) {
console.log(alphanumericSenderID.id);
}{
"data": [
{
"record_type": "alphanumeric_sender_id",
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"alphanumeric_sender_id": "MyCompany",
"organization_id": "<string>",
"messaging_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"us_long_code_fallback": "+15551234567"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The identifier of the messaging profile.
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const alphanumericSenderID of client.messagingProfiles.listAlphanumericSenderIDs(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
)) {
console.log(alphanumericSenderID.id);
}{
"data": [
{
"record_type": "alphanumeric_sender_id",
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"alphanumeric_sender_id": "MyCompany",
"organization_id": "<string>",
"messaging_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"us_long_code_fallback": "+15551234567"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}