Skip to main content
GET
/
billing_groups
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 billingGroup of client.billingGroups.list()) {
  console.log(billingGroup.id);
}
{
  "data": [
    {
      "record_type": "billing_group",
      "id": "f5586561-8ff0-4291-a0ac-84fe544797bd",
      "organization_id": "f1486bae-f067-460c-ad43-73a92848f902",
      "name": "My billing group name",
      "created_at": "2019-10-15T10:07:15.527Z",
      "updated_at": "2019-10-15T10:07:15.527Z",
      "deleted_at": null
    }
  ],
  "meta": {
    "total_pages": 3,
    "page_number": 2,
    "total_results": 55,
    "page_size": 25
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page[number]
integer
page[size]
integer

Response

A paginated array of billing groups

data
object[]
meta
object