import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.bundlePricing.userBundles.listResources('ca1d2263-d1f1-43ac-ba53-248e7a4bb26a');
console.log(response.data);{
"data": [
{
"id": "ca1d2263-d1f1-43ac-ba53-248e7a4bb26a",
"resource": "+15617819942",
"resource_type": "number",
"created_at": "2025-01-20",
"updated_at": "2025-01-20"
}
]
}Retrieves the resources of a user bundle by its ID.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.bundlePricing.userBundles.listResources('ca1d2263-d1f1-43ac-ba53-248e7a4bb26a');
console.log(response.data);{
"data": [
{
"id": "ca1d2263-d1f1-43ac-ba53-248e7a4bb26a",
"resource": "+15617819942",
"resource_type": "number",
"created_at": "2025-01-20",
"updated_at": "2025-01-20"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Format: Bearer <TOKEN> Authenticates the request with your Telnyx API V2 KEY
User bundle's ID, this is used to identify the user bundle in the API.
"ca1d2263-d1f1-43ac-ba53-248e7a4bb26a"
Successful Response
Show child attributes
Resource's ID.
"ca1d2263-d1f1-43ac-ba53-248e7a4bb26a"
The resource itself (usually a phone number).
"+15617819942"
The type of the resource (usually 'number').
"number"
Date the resource was created.
"2025-01-20"
Date the resource was last updated.
"2025-01-20"
Was this page helpful?