Skip to main content
GET
/
enterprises
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 enterpriseListResponse of client.enterprises.list()) {
  console.log(enterpriseListResponse.id);
}
{
  "data": [
    {
      "id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
      "legal_name": "Acme Corp Inc.",
      "doing_business_as": "Acme",
      "organization_type": "commercial",
      "country_code": "US",
      "role_type": "enterprise",
      "customer_reference": "<string>",
      "website": "<string>",
      "fein": "<string>",
      "industry": "<string>",
      "number_of_employees": "1-10",
      "organization_legal_type": "corporation",
      "primary_business_domain_sic_code": "<string>",
      "corporate_registration_number": "<string>",
      "professional_license_number": "<string>",
      "dun_bradstreet_number": "<string>",
      "organization_contact": {
        "first_name": "Jane",
        "last_name": "Smith",
        "email": "jane.smith@acme.com",
        "job_title": "VP of Engineering",
        "phone": "+16035551234"
      },
      "billing_contact": {
        "first_name": "John",
        "last_name": "Doe",
        "email": "billing@acme.com",
        "phone_number": "15551234568"
      },
      "organization_physical_address": {
        "country": "United States",
        "administrative_area": "Illinois",
        "city": "Chicago",
        "postal_code": "60601",
        "street_address": "123 Main St",
        "extended_address": "Suite 400"
      },
      "billing_address": {
        "country": "United States",
        "administrative_area": "Illinois",
        "city": "Chicago",
        "postal_code": "60601",
        "street_address": "123 Main St",
        "extended_address": "Suite 400"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "page_number": 123,
    "page_size": 123,
    "total_results": 123,
    "total_pages": 123
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page[number]
integer
default:1

Page number (1-indexed)

Required range: x >= 1
page[size]
integer
default:10

Number of items per page

Required range: 1 <= x <= 100

Filter by legal name (partial match)

Example:

"Acme"

Response

List of enterprises

data
object[]
meta
object