Create Brand
This endpoint is used to create a new brand. A brand is an entity created by The Campaign Registry (TCR) that represents an organization or a company. It is this entity that TCR created campaigns will be associated with. Each brand creation will entail an upfront, non-refundable $4 expense.
POST
/
10dlc
/
brand
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const telnyxBrand = await client.messaging10dlc.brand.create({
country: 'US',
displayName: 'ABC Mobile',
email: 'email',
entityType: 'PRIVATE_PROFIT',
vertical: 'TECHNOLOGY',
});
console.log(telnyxBrand.identityStatus);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
telnyx_brand = client.messaging_10dlc.brand.create(
country="US",
display_name="ABC Mobile",
email="email",
entity_type="PRIVATE_PROFIT",
vertical="TECHNOLOGY",
)
print(telnyx_brand.identity_status)
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"),
)
telnyxBrand, err := client.Messaging10dlc.Brand.New(context.TODO(), telnyx.Messaging10dlcBrandNewParams{
Country: "US",
DisplayName: "ABC Mobile",
Email: "email",
EntityType: telnyx.EntityTypePrivateProfit,
Vertical: telnyx.VerticalTechnology,
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", telnyxBrand.IdentityStatus)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.messaging10dlc.brand.BrandCreateParams;
import com.telnyx.sdk.models.messaging10dlc.brand.EntityType;
import com.telnyx.sdk.models.messaging10dlc.brand.TelnyxBrand;
import com.telnyx.sdk.models.messaging10dlc.brand.Vertical;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
BrandCreateParams params = BrandCreateParams.builder()
.country("US")
.displayName("ABC Mobile")
.email("email")
.entityType(EntityType.PRIVATE_PROFIT)
.vertical(Vertical.TECHNOLOGY)
.build();
TelnyxBrand telnyxBrand = client.messaging10dlc().brand().create(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
telnyx_brand = telnyx.messaging_10dlc.brand.create(
country: "US",
display_name: "ABC Mobile",
email: "email",
entity_type: :PRIVATE_PROFIT,
vertical: :TECHNOLOGY
)
puts(telnyx_brand)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
use Telnyx\Messaging10dlc\Brand\EntityType;
use Telnyx\Messaging10dlc\Brand\Vertical;
use Telnyx\Messaging10dlc\Brand\StockExchange;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$telnyxBrand = $client->messaging10dlc->brand->create(
country: 'US',
displayName: 'ABC Mobile',
email: 'email',
entityType: EntityType::PRIVATE_PROFIT,
vertical: Vertical::TECHNOLOGY,
businessContactEmail: '[email protected]',
city: 'New York',
companyName: 'ABC Inc.',
ein: '111111111',
firstName: 'John',
ipAddress: 'ipAddress',
isReseller: true,
lastName: 'Smith',
mobilePhone: '+12024567890',
mock: true,
phone: '+12024567890',
postalCode: '10001',
state: 'NY',
stockExchange: StockExchange::NASDAQ,
stockSymbol: 'ABC',
street: '123',
webhookFailoverURL: 'https://webhook.com/9010a453-4df8-4be6-a551-1070892888d6',
webhookURL: 'https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93',
website: 'http://www.abcmobile.com',
);
var_dump($telnyxBrand);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx messaging-10dlc:brand create \
--api-key 'My API Key' \
--country US \
--display-name 'ABC Mobile' \
--email email \
--entity-type PRIVATE_PROFIT \
--vertical TECHNOLOGYcurl --request POST \
--url https://api.telnyx.com/v2/10dlc/brand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entityType": "PRIVATE_PROFIT",
"displayName": "ABC Mobile",
"country": "US",
"email": "<string>",
"vertical": "TECHNOLOGY",
"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",
"isReseller": false,
"mock": false,
"mobilePhone": "+12024567890",
"businessContactEmail": "[email protected]",
"webhookURL": "https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93",
"webhookFailoverURL": "https://webhook.com/9010a453-4df8-4be6-a551-1070892888d6"
}
'{
"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": "[email protected]",
"webhookFailoverURL": "<string>",
"createdAt": "2021-03-08T17:57:48.801186",
"updatedAt": "2021-03-08T17:57:48.801186",
"status": "OK",
"failureReasons": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}Authorizations
Body
application/json
Vertical or industry segment of the brand.
Available options:
AGRICULTURE, COMMUNICATION, CONSTRUCTION, EDUCATION, ENERGY, ENTERTAINMENT, FINANCIAL, GAMBLING, GOVERNMENT, HEALTHCARE, HOSPITALITY, HUMAN_RESOURCES, INSURANCE, LEGAL, MANUFACTURING, NGO, POLITICAL, POSTAL, PROFESSIONAL, REAL_ESTATE, RETAIL, TECHNOLOGY, TRANSPORTATION Example:
"TECHNOLOGY"
Business contact email.
Required if entityType is PUBLIC_PROFIT. Otherwise, it is recommended to either omit this field or set it to null.
Example:
Response
Successful Response
Telnyx-specific extensions to The Campaign Registry's Brand type
Business contact email.
Required if entityType is PUBLIC_PROFIT.
Example:
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const telnyxBrand = await client.messaging10dlc.brand.create({
country: 'US',
displayName: 'ABC Mobile',
email: 'email',
entityType: 'PRIVATE_PROFIT',
vertical: 'TECHNOLOGY',
});
console.log(telnyxBrand.identityStatus);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
telnyx_brand = client.messaging_10dlc.brand.create(
country="US",
display_name="ABC Mobile",
email="email",
entity_type="PRIVATE_PROFIT",
vertical="TECHNOLOGY",
)
print(telnyx_brand.identity_status)
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"),
)
telnyxBrand, err := client.Messaging10dlc.Brand.New(context.TODO(), telnyx.Messaging10dlcBrandNewParams{
Country: "US",
DisplayName: "ABC Mobile",
Email: "email",
EntityType: telnyx.EntityTypePrivateProfit,
Vertical: telnyx.VerticalTechnology,
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", telnyxBrand.IdentityStatus)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.messaging10dlc.brand.BrandCreateParams;
import com.telnyx.sdk.models.messaging10dlc.brand.EntityType;
import com.telnyx.sdk.models.messaging10dlc.brand.TelnyxBrand;
import com.telnyx.sdk.models.messaging10dlc.brand.Vertical;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
BrandCreateParams params = BrandCreateParams.builder()
.country("US")
.displayName("ABC Mobile")
.email("email")
.entityType(EntityType.PRIVATE_PROFIT)
.vertical(Vertical.TECHNOLOGY)
.build();
TelnyxBrand telnyxBrand = client.messaging10dlc().brand().create(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
telnyx_brand = telnyx.messaging_10dlc.brand.create(
country: "US",
display_name: "ABC Mobile",
email: "email",
entity_type: :PRIVATE_PROFIT,
vertical: :TECHNOLOGY
)
puts(telnyx_brand)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
use Telnyx\Messaging10dlc\Brand\EntityType;
use Telnyx\Messaging10dlc\Brand\Vertical;
use Telnyx\Messaging10dlc\Brand\StockExchange;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$telnyxBrand = $client->messaging10dlc->brand->create(
country: 'US',
displayName: 'ABC Mobile',
email: 'email',
entityType: EntityType::PRIVATE_PROFIT,
vertical: Vertical::TECHNOLOGY,
businessContactEmail: '[email protected]',
city: 'New York',
companyName: 'ABC Inc.',
ein: '111111111',
firstName: 'John',
ipAddress: 'ipAddress',
isReseller: true,
lastName: 'Smith',
mobilePhone: '+12024567890',
mock: true,
phone: '+12024567890',
postalCode: '10001',
state: 'NY',
stockExchange: StockExchange::NASDAQ,
stockSymbol: 'ABC',
street: '123',
webhookFailoverURL: 'https://webhook.com/9010a453-4df8-4be6-a551-1070892888d6',
webhookURL: 'https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93',
website: 'http://www.abcmobile.com',
);
var_dump($telnyxBrand);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx messaging-10dlc:brand create \
--api-key 'My API Key' \
--country US \
--display-name 'ABC Mobile' \
--email email \
--entity-type PRIVATE_PROFIT \
--vertical TECHNOLOGYcurl --request POST \
--url https://api.telnyx.com/v2/10dlc/brand \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entityType": "PRIVATE_PROFIT",
"displayName": "ABC Mobile",
"country": "US",
"email": "<string>",
"vertical": "TECHNOLOGY",
"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",
"isReseller": false,
"mock": false,
"mobilePhone": "+12024567890",
"businessContactEmail": "[email protected]",
"webhookURL": "https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93",
"webhookFailoverURL": "https://webhook.com/9010a453-4df8-4be6-a551-1070892888d6"
}
'{
"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": "[email protected]",
"webhookFailoverURL": "<string>",
"createdAt": "2021-03-08T17:57:48.801186",
"updatedAt": "2021-03-08T17:57:48.801186",
"status": "OK",
"failureReasons": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}