import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const brand = await client.brand.retrieve('brandId');
console.log(brand);{
"entityType": "PRIVATE_PROFIT",
"displayName": "ABC Mobile",
"country": "US",
"email": "<string>",
"brandRelationship": "BASIC_ACCOUNT",
"vertical": "<string>",
"cspId": "<string>",
"brandId": "4b20017f-8da9-a992-a6c0-683072fb7729",
"tcrBrandId": "BBRAND1",
"companyName": "ABC Inc.",
"firstName": "John",
"lastName": "Smith",
"ein": "111111111",
"phone": "+12024567890",
"street": "123",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"stockSymbol": "ABC",
"stockExchange": "NASDAQ",
"ipAddress": "<string>",
"website": "http://www.abcmobile.com",
"altBusinessId": "<string>",
"altBusinessIdType": "NONE",
"universalEin": "<string>",
"referenceId": "<string>",
"identityStatus": "VERIFIED",
"optionalAttributes": {
"taxExemptStatus": "<string>"
},
"mock": false,
"mobilePhone": "+12024567890",
"isReseller": false,
"webhookURL": "https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93",
"businessContactEmail": "name@example.com",
"webhookFailoverURL": "<string>",
"createdAt": "2021-03-08T17:57:48.801186",
"updatedAt": "2021-03-08T17:57:48.801186",
"status": "OK",
"failureReasons": "<string>",
"assignedCampaignsCount": 3
}Retrieve a brand by brandId.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const brand = await client.brand.retrieve('brandId');
console.log(brand);{
"entityType": "PRIVATE_PROFIT",
"displayName": "ABC Mobile",
"country": "US",
"email": "<string>",
"brandRelationship": "BASIC_ACCOUNT",
"vertical": "<string>",
"cspId": "<string>",
"brandId": "4b20017f-8da9-a992-a6c0-683072fb7729",
"tcrBrandId": "BBRAND1",
"companyName": "ABC Inc.",
"firstName": "John",
"lastName": "Smith",
"ein": "111111111",
"phone": "+12024567890",
"street": "123",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"stockSymbol": "ABC",
"stockExchange": "NASDAQ",
"ipAddress": "<string>",
"website": "http://www.abcmobile.com",
"altBusinessId": "<string>",
"altBusinessIdType": "NONE",
"universalEin": "<string>",
"referenceId": "<string>",
"identityStatus": "VERIFIED",
"optionalAttributes": {
"taxExemptStatus": "<string>"
},
"mock": false,
"mobilePhone": "+12024567890",
"isReseller": false,
"webhookURL": "https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93",
"businessContactEmail": "name@example.com",
"webhookFailoverURL": "<string>",
"createdAt": "2021-03-08T17:57:48.801186",
"updatedAt": "2021-03-08T17:57:48.801186",
"status": "OK",
"failureReasons": "<string>",
"assignedCampaignsCount": 3
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Telnyx-specific extensions to The Campaign Registry's Brand type
Entity type behind the brand. This is the form of business establishment.
PRIVATE_PROFIT, PUBLIC_PROFIT, NON_PROFIT, GOVERNMENT "PRIVATE_PROFIT"
Display or marketing name of the brand.
100"ABC Mobile"
ISO2 2 characters country code. Example: US - United States
2"US"
Valid email address of brand support contact.
100Brand relationship to the CSP
BASIC_ACCOUNT, SMALL_ACCOUNT, MEDIUM_ACCOUNT, LARGE_ACCOUNT, KEY_ACCOUNT Vertical or industry segment of the brand.
50Unique identifier assigned to the csp by the registry.
Unique identifier assigned to the brand.
"4b20017f-8da9-a992-a6c0-683072fb7729"
Unique identifier assigned to the brand by the registry.
"BBRAND1"
(Required for Non-profit/private/public) Legal company name.
100"ABC Inc."
First name of business contact.
100"John"
Last name of business contact.
100"Smith"
(Required for Non-profit) Government assigned corporate tax ID. EIN is 9-digits in U.S.
20"111111111"
Valid phone number in e.164 international format.
20"+12024567890"
Street number and name.
100"123"
City name
100"New York"
State. Must be 2 letters code for United States.
20"NY"
Postal codes. Use 5 digit zipcode for United States
10"10001"
(Required for public company) stock symbol.
10"ABC"
(Required for public company) stock exchange.
NONE, NASDAQ, NYSE, AMEX, AMX, ASX, B3, BME, BSE, FRA, ICEX, JPX, JSE, KRX, LON, NSE, OMX, SEHK, SSE, STO, SWX, SZSE, TSX, TWSE, VSE "NASDAQ"
IP address of the browser requesting to create brand identity.
50Brand website URL.
100"http://www.abcmobile.com"
Alternate business identifier such as DUNS, LEI, or GIIN
50An enumeration.
NONE, DUNS, GIIN, LEI Universal EIN of Brand, Read Only.
Unique identifier Telnyx assigned to the brand - the brandId
The verification status of an active brand
VERIFIED, UNVERIFIED, SELF_DECLARED, VETTED_VERIFIED Mock brand for testing purposes
Valid mobile phone number in e.164 international format.
20"+12024567890"
Indicates whether this brand is known to be a reseller
Webhook to which brand status updates are sent.
"https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93"
Business contact email.
Required if entityType is PUBLIC_PROFIT.
"name@example.com"
Failover webhook to which brand status updates are sent.
Date and time that the brand was created at.
"2021-03-08T17:57:48.801186"
Date and time that the brand was last updated at.
"2021-03-08T17:57:48.801186"
Status of the brand
OK, REGISTRATION_PENDING, REGISTRATION_FAILED Failure reasons for brand
Number of campaigns associated with the brand
3
Was this page helpful?