Latest Legacy

Retrieve all brands

This API lets you fetch all the brands associated with an account.

API Endpoint

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

Arguments

limitinteger

Denotes the number of results per page. The maximum number of results that can be fetched is 20.

Defaults to 20.

offset integer

Denotes the number of value items by which the results should be offset. Defaults to 0. Read more about offset-based pagination.

registration_statusstring

Filter by registration_status.

Allowed values: FAILED, PROCESSING, COMPLETED

typestring

Filter by registration type.

Allowed values: STARTER, STANDARD

Returns

api_id and a dictionary with an objects property that contains up to 20 brands. Each tuple in the list is a separate Brand object.

Response

HTTP Status Code: 200

{
   "api_id":"553379bc-6c9a-4f5d-8e8f-e0999euejene8",
   "meta":{
      "limit":1,
      "offset":0,
      "next":"/v1/Account/<AUTH_ID>/10dlc/Brand/?limit=1&offset=1",
      "previous":null,
      "total_count":45
   },
   "brands":[
      {
    	"brand_alias": "sample name”,
        "brand_id": "BXXXXX",
        "brand_type": "STANDARD",
        "company_name": "sample company",
        "ein": "123456789",
        "ein_issuing_country": "US",
        "entity_type": "PUBLIC",
        "profile_uuid": "7b8ff904-a1d2-46b2-888d-34d4df4cf95a",
        "registration_status": "COMPLETED",
        "vertical": "COMMUNICATION",
        "vetting_score": 80,
        "vetting_status": "ACTIVE",
        "website": "www.samplewebsite.com"
        "Address":{
            "city": "Dallas",
            "country": "US",
            "postal_code": "10001",
            "state": "Texas",
            "street": "#11, Nashville Street"
            },
        "Authorized_contact":{
            "email": "xxxx@gmail.com",
            "first_name": "John",
            "last_name": "Doe",
            "phone": “14845355113",
            "seniority": "Admin",
            "title": "Mr"
            },
        "created_at":"2023-03-06T20:59:26.040592Z"
          }
   ]
}

Example Request

1
2
3
4
5
import plivo

client = plivo.RestClient("<auth_id>", "<auth_token>")
response = client.campaign.list(limit=1, offset=0)
print(response)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "rubygems"
require "/etc/plivo-ruby/lib/plivo.rb"
include Plivo

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

begin
response = api.brand.list(limit: 1, offset: 0)

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.list()
    .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
        ->list();
    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
21
package com.plivo.examples;

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

public class PlivoTest {

    public static void main(String[] args) {

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

        // List Brand
        try {
            ListResponse < Brand > response = Brand.lister().limit(1).offset(2).list();
            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
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>");

            // List Brand
            Console.WriteLine("List Brand");
            try
            {
                var response = api.Brand.List();
                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/  
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/v7"
)

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