Skip to main content
GET
/
messaging
/
profiles
/
{id}
/
alphanumeric
/
sender
/
ids
JavaScript
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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The identifier of the messaging profile.

Query Parameters

page[number]
integer
default:1
page[size]
integer
default:20

Response

Successful response with a list of alphanumeric sender IDs.

data
object[]
meta
object