Create an enterprise
Create the legal entity (enterprise) that represents your business on the Telnyx platform.
The response carries a server-assigned id you use for every subsequent call. An enterprise is created once and reused; the API collects all required fields up front.
Common failure modes:
422- a required field is missing or malformed (the responseerrors[].source.pointernames the field).409- an enterprise with the same identifying details already exists under your account.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const enterprise = await client.enterprises.create({
billing_address: {
country: 'US',
administrative_area: 'IL',
city: 'Chicago',
postal_code: '60601',
street_address: '100 Main St',
},
billing_contact: {
first_name: 'Alex',
last_name: 'Bill',
email: 'billing@run065.example.com',
phone_number: '+13125550001',
},
country_code: 'US',
doing_business_as: 'Run 065 Debug',
fein: '12-3456789',
industry: 'technology',
jurisdiction_of_incorporation: 'Delaware',
legal_name: 'Run 065 Debug Co',
number_of_employees: '51-200',
organization_contact: {
first_name: 'Sam',
last_name: 'Org',
email: 'org@run065.example.com',
job_title: 'Compliance Lead',
phone_number: '+13125550000',
},
organization_legal_type: 'llc',
organization_physical_address: {
country: 'US',
administrative_area: 'IL',
city: 'Chicago',
postal_code: '60601',
street_address: '100 Main St',
},
organization_type: 'commercial',
website: 'https://run065.example.com',
role_type: 'enterprise',
});
console.log(enterprise.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
enterprise = client.enterprises.create(
billing_address={
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
},
billing_contact={
"first_name": "Alex",
"last_name": "Bill",
"email": "billing@run065.example.com",
"phone_number": "+13125550001",
},
country_code="US",
doing_business_as="Run 065 Debug",
fein="12-3456789",
industry="technology",
jurisdiction_of_incorporation="Delaware",
legal_name="Run 065 Debug Co",
number_of_employees="51-200",
organization_contact={
"first_name": "Sam",
"last_name": "Org",
"email": "org@run065.example.com",
"job_title": "Compliance Lead",
"phone_number": "+13125550000",
},
organization_legal_type="llc",
organization_physical_address={
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
},
organization_type="commercial",
website="https://run065.example.com",
role_type="enterprise",
)
print(enterprise.data)package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
enterprise, err := client.Enterprises.New(context.TODO(), telnyx.EnterpriseNewParams{
BillingAddress: telnyx.BillingAddressParam{
Country: "US",
AdministrativeArea: "IL",
City: "Chicago",
PostalCode: "60601",
StreetAddress: "100 Main St",
},
BillingContact: telnyx.BillingContactParam{
FirstName: "Alex",
LastName: "Bill",
Email: "billing@run065.example.com",
PhoneNumber: "+13125550001",
},
CountryCode: "US",
DoingBusinessAs: "Run 065 Debug",
Fein: "12-3456789",
Industry: telnyx.EnterpriseNewParamsIndustryTechnology,
JurisdictionOfIncorporation: "Delaware",
LegalName: "Run 065 Debug Co",
NumberOfEmployees: telnyx.EnterpriseNewParamsNumberOfEmployeesNumberOfEmployees51_200,
OrganizationContact: telnyx.OrganizationContactParam{
FirstName: "Sam",
LastName: "Org",
Email: "org@run065.example.com",
JobTitle: "Compliance Lead",
PhoneNumber: "+13125550000",
},
OrganizationLegalType: telnyx.EnterpriseNewParamsOrganizationLegalTypeLlc,
OrganizationPhysicalAddress: telnyx.PhysicalAddressParam{
Country: "US",
AdministrativeArea: "IL",
City: "Chicago",
PostalCode: "60601",
StreetAddress: "100 Main St",
},
OrganizationType: telnyx.EnterpriseNewParamsOrganizationTypeCommercial,
Website: "https://run065.example.com",
RoleType: telnyx.EnterpriseNewParamsRoleTypeEnterprise,
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", enterprise.Data)
}package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.enterprises.BillingAddress;
import com.telnyx.sdk.models.enterprises.BillingContact;
import com.telnyx.sdk.models.enterprises.EnterpriseCreateParams;
import com.telnyx.sdk.models.enterprises.EnterpriseCreateResponse;
import com.telnyx.sdk.models.enterprises.OrganizationContact;
import com.telnyx.sdk.models.enterprises.PhysicalAddress;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
EnterpriseCreateParams params = EnterpriseCreateParams.builder()
.billingAddress(BillingAddress.builder()
.administrativeArea("IL")
.city("Chicago")
.country("US")
.postalCode("60601")
.streetAddress("100 Main St")
.build())
.billingContact(BillingContact.builder()
.email("billing@run065.example.com")
.firstName("Alex")
.lastName("Bill")
.phoneNumber("+13125550001")
.build())
.countryCode("US")
.doingBusinessAs("Run 065 Debug")
.fein("12-3456789")
.industry(EnterpriseCreateParams.Industry.TECHNOLOGY)
.jurisdictionOfIncorporation("Delaware")
.legalName("Run 065 Debug Co")
.numberOfEmployees(EnterpriseCreateParams.NumberOfEmployees.NUMBER_OF_EMPLOYEES_51_200)
.organizationContact(OrganizationContact.builder()
.email("org@run065.example.com")
.firstName("Sam")
.jobTitle("Compliance Lead")
.lastName("Org")
.phoneNumber("+13125550000")
.build())
.organizationLegalType(EnterpriseCreateParams.OrganizationLegalType.LLC)
.organizationPhysicalAddress(PhysicalAddress.builder()
.administrativeArea("IL")
.city("Chicago")
.country("US")
.postalCode("60601")
.streetAddress("100 Main St")
.build())
.organizationType(EnterpriseCreateParams.OrganizationType.COMMERCIAL)
.website("https://run065.example.com")
.build();
EnterpriseCreateResponse enterprise = client.enterprises().create(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
enterprise = telnyx.enterprises.create(
billing_address: {administrative_area: "IL", city: "Chicago", country: "US", postal_code: "60601", street_address: "100 Main St"},
billing_contact: {email: "billing@run065.example.com", first_name: "Alex", last_name: "Bill", phone_number: "+13125550001"},
country_code: "US",
doing_business_as: "Run 065 Debug",
fein: "12-3456789",
industry: :technology,
jurisdiction_of_incorporation: "Delaware",
legal_name: "Run 065 Debug Co",
number_of_employees: :"51-200",
organization_contact: {
email: "org@run065.example.com",
first_name: "Sam",
job_title: "Compliance Lead",
last_name: "Org",
phone_number: "+13125550000"
},
organization_legal_type: :llc,
organization_physical_address: {administrative_area: "IL", city: "Chicago", country: "US", postal_code: "60601", street_address: "100 Main St"},
organization_type: :commercial,
website: "https://run065.example.com"
)
puts(enterprise)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$enterprise = $client->enterprises->create(
billingAddress: [
'administrativeArea' => 'IL',
'city' => 'Chicago',
'country' => 'US',
'postalCode' => '60601',
'streetAddress' => '100 Main St',
'extendedAddress' => 'Suite 504',
],
billingContact: [
'email' => 'billing@run065.example.com',
'firstName' => 'Alex',
'lastName' => 'Bill',
'phoneNumber' => '+13125550001',
],
countryCode: 'US',
doingBusinessAs: 'Run 065 Debug',
fein: '12-3456789',
industry: 'technology',
jurisdictionOfIncorporation: 'Delaware',
legalName: 'Run 065 Debug Co',
numberOfEmployees: '51-200',
organizationContact: [
'email' => 'org@run065.example.com',
'firstName' => 'Sam',
'jobTitle' => 'Compliance Lead',
'lastName' => 'Org',
'phoneNumber' => '+13125550000',
],
organizationLegalType: 'llc',
organizationPhysicalAddress: [
'administrativeArea' => 'IL',
'city' => 'Chicago',
'country' => 'US',
'postalCode' => '60601',
'streetAddress' => '100 Main St',
'extendedAddress' => 'Suite 504',
],
organizationType: 'commercial',
website: 'https://run065.example.com',
corporateRegistrationNumber: 'corporate_registration_number',
customerReference: 'internal-id-12345',
dunBradstreetNumber: 'dun_bradstreet_number',
primaryBusinessDomainSicCode: 'primary_business_domain_sic_code',
professionalLicenseNumber: 'professional_license_number',
roleType: 'enterprise',
);
var_dump($enterprise);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx enterprises create \
--api-key 'My API Key' \
--billing-address "{administrative_area: IL, city: Chicago, country: US, postal_code: '60601', street_address: 100 Main St}" \
--billing-contact "{email: billing@run065.example.com, first_name: Alex, last_name: Bill, phone_number: '+13125550001'}" \
--country-code US \
--doing-business-as 'Run 065 Debug' \
--fein 12-3456789 \
--industry technology \
--jurisdiction-of-incorporation Delaware \
--legal-name 'Run 065 Debug Co' \
--number-of-employees 51-200 \
--organization-contact "{email: org@run065.example.com, first_name: Sam, job_title: Compliance Lead, last_name: Org, phone_number: '+13125550000'}" \
--organization-legal-type llc \
--organization-physical-address "{administrative_area: IL, city: Chicago, country: US, postal_code: '60601', street_address: 100 Main St}" \
--organization-type commercial \
--website https://run065.example.comcurl --request POST \
--url https://api.telnyx.com/v2/enterprises \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legal_name": "Run 065 Debug Co",
"organization_type": "commercial",
"country_code": "US",
"role_type": "enterprise",
"website": "https://run065.example.com",
"fein": "12-3456789",
"industry": "technology",
"number_of_employees": "51-200",
"organization_legal_type": "llc",
"doing_business_as": "Run 065 Debug",
"jurisdiction_of_incorporation": "Delaware",
"organization_contact": {
"first_name": "Sam",
"last_name": "Org",
"email": "org@run065.example.com",
"job_title": "Compliance Lead",
"phone_number": "+13125550000"
},
"billing_contact": {
"first_name": "Alex",
"last_name": "Bill",
"email": "billing@run065.example.com",
"phone_number": "+13125550001"
},
"organization_physical_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St"
},
"billing_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St"
}
}
'{
"data": {
"id": "4a6192a4-573d-446d-b3ce-aff9117272a6",
"legal_name": "Acme Plumbing LLC",
"organization_type": "commercial",
"country_code": "US",
"role_type": "enterprise",
"website": "https://acmeplumbing.example.com",
"fein": "12-3456789",
"industry": "technology",
"number_of_employees": "51-200",
"organization_legal_type": "llc",
"doing_business_as": "Acme Plumbing",
"jurisdiction_of_incorporation": "Delaware",
"customer_reference": "internal-id-12345",
"primary_business_domain_sic_code": null,
"corporate_registration_number": null,
"professional_license_number": null,
"dun_bradstreet_number": null,
"organization_contact": {
"first_name": "Sam",
"last_name": "Org",
"email": "sam@acmeplumbing.example.com",
"job_title": "Compliance Lead",
"phone_number": "+13125550000"
},
"billing_contact": {
"first_name": "Alex",
"last_name": "Bill",
"email": "billing@acmeplumbing.example.com",
"phone_number": "+13125550001"
},
"organization_physical_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
"extended_address": "Suite 504"
},
"billing_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
"extended_address": "Suite 504"
},
"created_at": "2026-04-26T18:06:51.940749Z",
"updated_at": "2026-04-26T18:09:24.785211Z",
"branded_calling_enabled": true,
"number_reputation_enabled": true
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Legal name of the enterprise.
3 - 64"Acme Plumbing LLC"
Organization category for vetting purposes:
commercial- for-profit business entities (LLC, corp, partnership, sole proprietorship). Most callers fall here.government- federal/state/local government bodies.non_profit- registered 501(c)(3)/equivalent (incl. educational institutions, charities, religious organisations).
commercial, government, non_profit "commercial"
ISO 3166-1 alpha-2 country code. Currently US and CA are supported.
"US"
255"https://acmeplumbing.example.com"
US Federal Employer Identification Number (NN-NNNNNNN) or Canadian equivalent.
"12-3456789"
Industry classification.
accounting, finance, billing, collections, business, charity, nonprofit, communications, telecom, customer service, support, delivery, shipping, logistics, education, financial, banking, government, public, healthcare, health, pharmacy, medical, insurance, legal, law, notifications, scheduling, real estate, property, retail, ecommerce, sales, marketing, software, technology, tech, media, surveys, market research, travel, hospitality, hotel "technology"
Approximate headcount range. Used for vetting heuristics; pick the bucket that contains your current employee count.
1-10, 11-50, 51-200, 201-500, 501-2000, 2001-10000, 10001+ "51-200"
Legal-entity form. Pick the form that matches your incorporation documents:
corporation- C-corp or S-corp.llc- limited liability company.partnership- general/limited partnership.nonprofit- non-profit corporation, charitable trust, or 501(c)(3)/equivalent.other- anything else (sole proprietorships, government bodies, DBAs, etc.). You may be asked for additional documents during vetting.
corporation, llc, partnership, nonprofit, other "llc"
255"Acme Plumbing"
255"Delaware"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
enterprise for an organization registering its own DIRs; bpo for a Business Process Outsourcer placing calls on behalf of one or more enterprises.
enterprise, bpo "enterprise"
Optional free-form string the caller can attach for their own bookkeeping. Telnyx does not interpret it.
255"internal-id-12345"
Optional SIC code for the primary line of business.
Optional corporate-registration / company-number identifier.
Optional professional-license number for regulated industries.
Optional D-U-N-S Number.
Response
Enterprise created.
Show child attributes
Show child attributes
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
});
const enterprise = await client.enterprises.create({
billing_address: {
country: 'US',
administrative_area: 'IL',
city: 'Chicago',
postal_code: '60601',
street_address: '100 Main St',
},
billing_contact: {
first_name: 'Alex',
last_name: 'Bill',
email: 'billing@run065.example.com',
phone_number: '+13125550001',
},
country_code: 'US',
doing_business_as: 'Run 065 Debug',
fein: '12-3456789',
industry: 'technology',
jurisdiction_of_incorporation: 'Delaware',
legal_name: 'Run 065 Debug Co',
number_of_employees: '51-200',
organization_contact: {
first_name: 'Sam',
last_name: 'Org',
email: 'org@run065.example.com',
job_title: 'Compliance Lead',
phone_number: '+13125550000',
},
organization_legal_type: 'llc',
organization_physical_address: {
country: 'US',
administrative_area: 'IL',
city: 'Chicago',
postal_code: '60601',
street_address: '100 Main St',
},
organization_type: 'commercial',
website: 'https://run065.example.com',
role_type: 'enterprise',
});
console.log(enterprise.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
enterprise = client.enterprises.create(
billing_address={
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
},
billing_contact={
"first_name": "Alex",
"last_name": "Bill",
"email": "billing@run065.example.com",
"phone_number": "+13125550001",
},
country_code="US",
doing_business_as="Run 065 Debug",
fein="12-3456789",
industry="technology",
jurisdiction_of_incorporation="Delaware",
legal_name="Run 065 Debug Co",
number_of_employees="51-200",
organization_contact={
"first_name": "Sam",
"last_name": "Org",
"email": "org@run065.example.com",
"job_title": "Compliance Lead",
"phone_number": "+13125550000",
},
organization_legal_type="llc",
organization_physical_address={
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
},
organization_type="commercial",
website="https://run065.example.com",
role_type="enterprise",
)
print(enterprise.data)package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
enterprise, err := client.Enterprises.New(context.TODO(), telnyx.EnterpriseNewParams{
BillingAddress: telnyx.BillingAddressParam{
Country: "US",
AdministrativeArea: "IL",
City: "Chicago",
PostalCode: "60601",
StreetAddress: "100 Main St",
},
BillingContact: telnyx.BillingContactParam{
FirstName: "Alex",
LastName: "Bill",
Email: "billing@run065.example.com",
PhoneNumber: "+13125550001",
},
CountryCode: "US",
DoingBusinessAs: "Run 065 Debug",
Fein: "12-3456789",
Industry: telnyx.EnterpriseNewParamsIndustryTechnology,
JurisdictionOfIncorporation: "Delaware",
LegalName: "Run 065 Debug Co",
NumberOfEmployees: telnyx.EnterpriseNewParamsNumberOfEmployeesNumberOfEmployees51_200,
OrganizationContact: telnyx.OrganizationContactParam{
FirstName: "Sam",
LastName: "Org",
Email: "org@run065.example.com",
JobTitle: "Compliance Lead",
PhoneNumber: "+13125550000",
},
OrganizationLegalType: telnyx.EnterpriseNewParamsOrganizationLegalTypeLlc,
OrganizationPhysicalAddress: telnyx.PhysicalAddressParam{
Country: "US",
AdministrativeArea: "IL",
City: "Chicago",
PostalCode: "60601",
StreetAddress: "100 Main St",
},
OrganizationType: telnyx.EnterpriseNewParamsOrganizationTypeCommercial,
Website: "https://run065.example.com",
RoleType: telnyx.EnterpriseNewParamsRoleTypeEnterprise,
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", enterprise.Data)
}package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.enterprises.BillingAddress;
import com.telnyx.sdk.models.enterprises.BillingContact;
import com.telnyx.sdk.models.enterprises.EnterpriseCreateParams;
import com.telnyx.sdk.models.enterprises.EnterpriseCreateResponse;
import com.telnyx.sdk.models.enterprises.OrganizationContact;
import com.telnyx.sdk.models.enterprises.PhysicalAddress;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
EnterpriseCreateParams params = EnterpriseCreateParams.builder()
.billingAddress(BillingAddress.builder()
.administrativeArea("IL")
.city("Chicago")
.country("US")
.postalCode("60601")
.streetAddress("100 Main St")
.build())
.billingContact(BillingContact.builder()
.email("billing@run065.example.com")
.firstName("Alex")
.lastName("Bill")
.phoneNumber("+13125550001")
.build())
.countryCode("US")
.doingBusinessAs("Run 065 Debug")
.fein("12-3456789")
.industry(EnterpriseCreateParams.Industry.TECHNOLOGY)
.jurisdictionOfIncorporation("Delaware")
.legalName("Run 065 Debug Co")
.numberOfEmployees(EnterpriseCreateParams.NumberOfEmployees.NUMBER_OF_EMPLOYEES_51_200)
.organizationContact(OrganizationContact.builder()
.email("org@run065.example.com")
.firstName("Sam")
.jobTitle("Compliance Lead")
.lastName("Org")
.phoneNumber("+13125550000")
.build())
.organizationLegalType(EnterpriseCreateParams.OrganizationLegalType.LLC)
.organizationPhysicalAddress(PhysicalAddress.builder()
.administrativeArea("IL")
.city("Chicago")
.country("US")
.postalCode("60601")
.streetAddress("100 Main St")
.build())
.organizationType(EnterpriseCreateParams.OrganizationType.COMMERCIAL)
.website("https://run065.example.com")
.build();
EnterpriseCreateResponse enterprise = client.enterprises().create(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
enterprise = telnyx.enterprises.create(
billing_address: {administrative_area: "IL", city: "Chicago", country: "US", postal_code: "60601", street_address: "100 Main St"},
billing_contact: {email: "billing@run065.example.com", first_name: "Alex", last_name: "Bill", phone_number: "+13125550001"},
country_code: "US",
doing_business_as: "Run 065 Debug",
fein: "12-3456789",
industry: :technology,
jurisdiction_of_incorporation: "Delaware",
legal_name: "Run 065 Debug Co",
number_of_employees: :"51-200",
organization_contact: {
email: "org@run065.example.com",
first_name: "Sam",
job_title: "Compliance Lead",
last_name: "Org",
phone_number: "+13125550000"
},
organization_legal_type: :llc,
organization_physical_address: {administrative_area: "IL", city: "Chicago", country: "US", postal_code: "60601", street_address: "100 Main St"},
organization_type: :commercial,
website: "https://run065.example.com"
)
puts(enterprise)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$enterprise = $client->enterprises->create(
billingAddress: [
'administrativeArea' => 'IL',
'city' => 'Chicago',
'country' => 'US',
'postalCode' => '60601',
'streetAddress' => '100 Main St',
'extendedAddress' => 'Suite 504',
],
billingContact: [
'email' => 'billing@run065.example.com',
'firstName' => 'Alex',
'lastName' => 'Bill',
'phoneNumber' => '+13125550001',
],
countryCode: 'US',
doingBusinessAs: 'Run 065 Debug',
fein: '12-3456789',
industry: 'technology',
jurisdictionOfIncorporation: 'Delaware',
legalName: 'Run 065 Debug Co',
numberOfEmployees: '51-200',
organizationContact: [
'email' => 'org@run065.example.com',
'firstName' => 'Sam',
'jobTitle' => 'Compliance Lead',
'lastName' => 'Org',
'phoneNumber' => '+13125550000',
],
organizationLegalType: 'llc',
organizationPhysicalAddress: [
'administrativeArea' => 'IL',
'city' => 'Chicago',
'country' => 'US',
'postalCode' => '60601',
'streetAddress' => '100 Main St',
'extendedAddress' => 'Suite 504',
],
organizationType: 'commercial',
website: 'https://run065.example.com',
corporateRegistrationNumber: 'corporate_registration_number',
customerReference: 'internal-id-12345',
dunBradstreetNumber: 'dun_bradstreet_number',
primaryBusinessDomainSicCode: 'primary_business_domain_sic_code',
professionalLicenseNumber: 'professional_license_number',
roleType: 'enterprise',
);
var_dump($enterprise);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx enterprises create \
--api-key 'My API Key' \
--billing-address "{administrative_area: IL, city: Chicago, country: US, postal_code: '60601', street_address: 100 Main St}" \
--billing-contact "{email: billing@run065.example.com, first_name: Alex, last_name: Bill, phone_number: '+13125550001'}" \
--country-code US \
--doing-business-as 'Run 065 Debug' \
--fein 12-3456789 \
--industry technology \
--jurisdiction-of-incorporation Delaware \
--legal-name 'Run 065 Debug Co' \
--number-of-employees 51-200 \
--organization-contact "{email: org@run065.example.com, first_name: Sam, job_title: Compliance Lead, last_name: Org, phone_number: '+13125550000'}" \
--organization-legal-type llc \
--organization-physical-address "{administrative_area: IL, city: Chicago, country: US, postal_code: '60601', street_address: 100 Main St}" \
--organization-type commercial \
--website https://run065.example.comcurl --request POST \
--url https://api.telnyx.com/v2/enterprises \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legal_name": "Run 065 Debug Co",
"organization_type": "commercial",
"country_code": "US",
"role_type": "enterprise",
"website": "https://run065.example.com",
"fein": "12-3456789",
"industry": "technology",
"number_of_employees": "51-200",
"organization_legal_type": "llc",
"doing_business_as": "Run 065 Debug",
"jurisdiction_of_incorporation": "Delaware",
"organization_contact": {
"first_name": "Sam",
"last_name": "Org",
"email": "org@run065.example.com",
"job_title": "Compliance Lead",
"phone_number": "+13125550000"
},
"billing_contact": {
"first_name": "Alex",
"last_name": "Bill",
"email": "billing@run065.example.com",
"phone_number": "+13125550001"
},
"organization_physical_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St"
},
"billing_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St"
}
}
'{
"data": {
"id": "4a6192a4-573d-446d-b3ce-aff9117272a6",
"legal_name": "Acme Plumbing LLC",
"organization_type": "commercial",
"country_code": "US",
"role_type": "enterprise",
"website": "https://acmeplumbing.example.com",
"fein": "12-3456789",
"industry": "technology",
"number_of_employees": "51-200",
"organization_legal_type": "llc",
"doing_business_as": "Acme Plumbing",
"jurisdiction_of_incorporation": "Delaware",
"customer_reference": "internal-id-12345",
"primary_business_domain_sic_code": null,
"corporate_registration_number": null,
"professional_license_number": null,
"dun_bradstreet_number": null,
"organization_contact": {
"first_name": "Sam",
"last_name": "Org",
"email": "sam@acmeplumbing.example.com",
"job_title": "Compliance Lead",
"phone_number": "+13125550000"
},
"billing_contact": {
"first_name": "Alex",
"last_name": "Bill",
"email": "billing@acmeplumbing.example.com",
"phone_number": "+13125550001"
},
"organization_physical_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
"extended_address": "Suite 504"
},
"billing_address": {
"country": "US",
"administrative_area": "IL",
"city": "Chicago",
"postal_code": "60601",
"street_address": "100 Main St",
"extended_address": "Suite 504"
},
"created_at": "2026-04-26T18:06:51.940749Z",
"updated_at": "2026-04-26T18:09:24.785211Z",
"branded_calling_enabled": true,
"number_reputation_enabled": true
}
}