Get Brand
Returns the details of a 10DLC brand by its brandId, including the count of campaigns associated with the brand.
GET
/
10dlc
/
brand
/
{brandId}
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const brand = await client.messaging10dlc.brand.retrieve('brandId');
console.log(brand);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
brand = client.messaging_10dlc.brand.retrieve(
"brandId",
)
print(brand)
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"),
)
brand, err := client.Messaging10dlc.Brand.Get(context.TODO(), "brandId")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", brand)
}
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.BrandRetrieveParams;
import com.telnyx.sdk.models.messaging10dlc.brand.BrandRetrieveResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
BrandRetrieveResponse brand = client.messaging10dlc().brand().retrieve("brandId");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
brand = telnyx.messaging_10dlc.brand.retrieve("brandId")
puts(brand)<?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 {
$brand = $client->messaging10dlc->brand->retrieve('brandId');
var_dump($brand);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx messaging-10dlc:brand retrieve \
--api-key 'My API Key' \
--brand-id brandIdcurl --request GET \
--url https://api.telnyx.com/v2/10dlc/brand/{brandId} \
--header 'Authorization: Bearer <token>'{
"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>",
"assignedCampaignsCount": 3
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}Authorizations
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 brand = await client.messaging10dlc.brand.retrieve('brandId');
console.log(brand);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
brand = client.messaging_10dlc.brand.retrieve(
"brandId",
)
print(brand)
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"),
)
brand, err := client.Messaging10dlc.Brand.Get(context.TODO(), "brandId")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", brand)
}
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.BrandRetrieveParams;
import com.telnyx.sdk.models.messaging10dlc.brand.BrandRetrieveResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
BrandRetrieveResponse brand = client.messaging10dlc().brand().retrieve("brandId");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
brand = telnyx.messaging_10dlc.brand.retrieve("brandId")
puts(brand)<?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 {
$brand = $client->messaging10dlc->brand->retrieve('brandId');
var_dump($brand);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx messaging-10dlc:brand retrieve \
--api-key 'My API Key' \
--brand-id brandIdcurl --request GET \
--url https://api.telnyx.com/v2/10dlc/brand/{brandId} \
--header 'Authorization: Bearer <token>'{
"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>",
"assignedCampaignsCount": 3
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}