Latest Legacy

Retrieve a specific brand

This API lets you fetch details about a specific brand associated to your account.

API Endpoint

GET https://api.plivo.com/v1/Account/{auth_id}/Brand/{brand_id}

Arguments

No arguments need to be passed.

Returns

api_id and the brand object identified by the brand_id specified in the request URL.

Response

HTTP Status Code: 200

{
   "api_id": "75ced400-bb29-11ec-bb91-0242ac110003",
   "brand": {
       "address": {
           "city": "New York",
           "country": "US",
           "postal_code": "10001",
           "state": "NY",
           "street": "123"
       },
       "authorized_contact": {
           "email": "john@example.com",
           "first_name": "John",
           "last_name": "Doe",
           "phone": "+12125557778",
           "seniority": "admin",
           "title": "Doe"
       },
       "brand_id": "BCDEF1G",
       "brand_type": "STANDARD",
       "company_name": "ABC Inc.",
       "ein": "111111111",
       "ein_issuing_country": "US",
       "entity_type": "PRIVATE_PROFIT",
       "profile_uuid": "09849948-656a-41a2-99da-8370251c804b",
       "registration_status": "COMPLETED",
       "vertical": "ENERGY",
       "vetting_score": 80,
       "vetting_status": "ACTIVE"
   }
}

Example Request

1
2
3
4
5
import plivo

client = plivo.RestClient("<auth_id>", "<auth_token>")
response = client.brand.get(brand_id="<Brand_ID>")
print(response)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "rubygems"
require "/etc/plivo-ruby/lib/plivo.rb"
include Plivo

api = RestClient.new("<auth_id>", "<auth_token>")

begin
	# Get Brand
	puts('Get Brand')
	response = api.brand.get("<Brand_ID>")

	puts response
rescue PlivoRESTError => e
	puts 'Exception: ' + e.message
end
1
2
3
4
5
6
7
8
9
10
let plivo = require('plivo');

let client = new plivo.Client("<auth_id>", "<auth_token>");
client.brand.get("<brand_id>")
    .then(function (response) {
        console.log(JSON.stringify(response));
    }).catch(function (error) {
        console.log("err");
        console.log(error);
    });
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

# Available in versions >= 4.29.0 (https://github.com/plivo/plivo-php/releases/tag/v4.29.0)

require '/etc/plivo-php/vendor/autoload.php';
use Plivo\RestClient;
$client = new RestClient("<auth_id>", "<auth_token>");
$client
    ->client
    ->setTimeout(60);
try
{
    $res = $client
        ->brand
        ->get("<brand_id>");
    print_r($res);
}
catch(PlivoRestException $ex)
{
    print_r($ex);
}
?>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.plivo.examples;

import com.plivo.api.Plivo;
import com.plivo.api.models.brand.Brand;

public class PlivoTest {

    public static void main(String[] args) {

        Plivo.init("<auth_id>", "<auth_token>");

        // Get Brand Details
        try {
            Brand response = Brand.getter("<Brand_ID>").get();
            System.out.println(response);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Available in versions >= 5.9.0 (https://github.com/plivo/plivo-dotnet/releases/tag/v5.9.0)

using System;
using System.Collections.Generic;
using Plivo;
using Plivo.Exception;

namespace dotnet_project
{
    class Ten_dlc
    {
        static void Main(string[] args)
        {

            var api = new PlivoApi("<auth_id>", "<auth_token>");

            // Get Brand
            Console.WriteLine("Get Brand");
            try
            {
                var response = api.Brand.Get("B8OD95Z");
                Console.WriteLine(response);
            }
            catch (PlivoRestException e)
            {
                Console.WriteLine("Exception: " + e.Message);
            }
        }
    }
}
1
2
curl -i --user auth_id:auth_token \
    https://api.plivo.com/v1/Account/{auth_id}/10dlc/Brand/{brand_id}/  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main

import (
	"fmt"
	"os"

	plivo "github.com/plivo/plivo-go"
)

func main() {
	client, err := plivo.NewClient("<auth_id>", "<auth_token>", &plivo.ClientOptions{})
	if err != nil {
		panic(err)
	}
	//Get Brand
	response, err := client.Brand.Get("<Brand_ID>")
	if err != nil {
		fmt.Printf("Error occurred while getting brand. error:%+v\n", err)
		os.Exit(1)
	} else {
		fmt.Printf("%+v\n", response)
	}
}