A2P 10DLC - BrandVetting Resource
The BrandVetting resource represents the association between a Campaign Verify token and a BrandRegistration resource .
The BrandVetting resource is a subresource of the BrandRegistration resource.
Property name Type PII Description
The SID of the Account that created the vetting record.
Pattern: ^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique string to identify Brand Registration.
Pattern: ^BN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The Twilio SID of the third-party vetting record.
Pattern: ^VT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
date_updated string<date-time> The date and time in GMT when the resource was last updated specified in ISO 8601 format.
date_created string<date-time> The date and time in GMT when the resource was created specified in ISO 8601 format.
The unique identifier of the vetting from the third-party provider.
The type of vetting that has been conducted. One of “STANDARD” (Aegis) or “POLITICAL” (Campaign Verify).
The status of the import vetting attempt. One of “PENDING,” “SUCCESS,” or “FAILED”.
vetting_provider enum<string> The third-party provider that has conducted the vetting. One of “CampaignVerify” (Campaign Verify tokens) or “AEGIS” (Secondary Vetting).
Possible values: campaign-verify
The absolute URL of the Brand Vetting resource.
Create a BrandVetting resource POST https://messaging.twilio.com/v1/a2p/BrandRegistrations/{BrandSid}/Vettings
This API request creates a BrandVetting resource. This associates a BrandRegistration resource and a Campaign Verify token.
The VettingProvider
is campaign-verify
, and the Campaign Verify token is provided in the VettingId
parameter.
Property name Type Required PII Description
The SID of the Brand Registration resource of the vettings to create .
Pattern: ^BN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Property name Type Required PII Description
VettingProvider enum<string> required The third-party provider of the vettings to create .
Possible values: campaign-verify
The unique ID of the vetting
Create a BrandVetting resource for a 527 political organization _22 // Download the helper library from https://www.twilio.com/docs/node/install
_22 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_22 // Find your Account SID and Auth Token at twilio.com/console
_22 // and set the environment variables. See http://twil.io/secure
_22 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_22 const authToken = process.env.TWILIO_AUTH_TOKEN;
_22 const client = twilio(accountSid, authToken);
_22 async function createBrandVetting() {
_22 const brandVetting = await client.messaging.v1
_22 .brandRegistrations("BNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
_22 .brandVettings.create({
_22 "cv|1.0|tcr|10dlc|9975c339-d46f-49b7-a399-2e6d5ebac66d|EXAMPLEjEd8xSlaAgRXAXXBUNBT2AgL-LdQuPveFhEyY",
_22 vettingProvider: "campaign-verify",
_22 console.log(brandVetting.accountSid);
_12 "account_sid": "AC78e8e67fc0246521490fb9907fd0c165",
_12 "brand_sid": "BNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "brand_vetting_sid": "VT12445353",
_12 "vetting_provider": "campaign-verify",
_12 "vetting_id": "cv|1.0|tcr|10dlc|9975c339-d46f-49b7-a399-2e6d5ebac66d|EXAMPLEjEd8xSlaAgRXAXXBUNBT2AgL-LdQuPveFhEyY",
_12 "vetting_class": "POLITICAL",
_12 "vetting_status": "IN_PROGRESS",
_12 "date_created": "2021-01-27T14:18:35Z",
_12 "date_updated": "2021-01-27T14:18:35Z",
_12 "url": "https://messaging.twilio.com/v1/a2p/BrandRegistrations/BN0044409f7e067e279523808d267e2d85/Vettings/VT12445353"
Warning Don't create a UsAppToPerson resource until the BrandVetting resource's vetting_status
is SUCCESS
.
You can check the vetting_status
of the BrandVetting resource using the Fetch request below .
Once the BrandVetting status is SUCCESS
, the Campaign Verify token has been successfully associated with your Brand. This allows you to use the POLITICAL
special use case.
Fetch a specific BrandVetting resource GET https://messaging.twilio.com/v1/a2p/BrandRegistrations/{BrandSid}/Vettings/{BrandVettingSid}
This API request fetches an individual BrandVetting resource using a BrandVettingSid
.
You can use this request to check the vetting_status
of a BrandVetting resource.
Property name Type Required PII Description
The SID of the Brand Registration resource of the vettings to read .
Pattern: ^BN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
BrandVettingSid SID<VT> required The Twilio SID of the third-party vetting record.
Pattern: ^VT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Fetch a specific BrandVetting resource _19 // Download the helper library from https://www.twilio.com/docs/node/install
_19 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19 // Find your Account SID and Auth Token at twilio.com/console
_19 // and set the environment variables. See http://twil.io/secure
_19 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19 const authToken = process.env.TWILIO_AUTH_TOKEN;
_19 const client = twilio(accountSid, authToken);
_19 async function fetchBrandVetting() {
_19 const brandVetting = await client.messaging.v1
_19 .brandRegistrations("BNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
_19 .brandVettings("VTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
_19 console.log(brandVetting.accountSid);
_12 "account_sid": "AC78e8e67fc0246521490fb9907fd0c165",
_12 "brand_sid": "BNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "brand_vetting_sid": "VTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_12 "vetting_provider": "campaign-verify",
_12 "vetting_id": "cv|1.0|tcr|10dlc|9975c339-d46f-49b7-a399-EXAMPLETOKEN|GQ3EXAMPLETOKENAXXBUNBT2AgL-LdQuPveFhEyY",
_12 "vetting_class": "POLITICAL",
_12 "vetting_status": "IN_PROGRESS",
_12 "date_created": "2021-01-27T14:18:35Z",
_12 "date_updated": "2021-01-27T14:18:35Z",
_12 "url": "https://messaging.twilio.com/v1/a2p/BrandRegistrations/BN0044409f7e067e279523808d267e2d85/Vettings/VT12445353"
List all BrandVetting resources GET https://messaging.twilio.com/v1/a2p/BrandRegistrations/{BrandSid}/Vettings
This request returns all BrandVetting resources associated with a BrandRegistration resource .
Property name Type Required PII Description
The SID of the Brand Registration resource of the vettings to read .
Pattern: ^BN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
Property name Type Required PII Description
VettingProvider enum<string> Optional The third-party provider of the vettings to read
Possible values: campaign-verify
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum: 1
Maximum: 1000
The page index. This value is simply for client state.
Minimum: 0
The page token. This is provided by the API.
List all BrandVetting resources for a specific BrandRegistration resource _18 // Download the helper library from https://www.twilio.com/docs/node/install
_18 const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18 // Find your Account SID and Auth Token at twilio.com/console
_18 // and set the environment variables. See http://twil.io/secure
_18 const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18 const authToken = process.env.TWILIO_AUTH_TOKEN;
_18 const client = twilio(accountSid, authToken);
_18 async function listBrandVetting() {
_18 const brandVettings = await client.messaging.v1
_18 .brandRegistrations("BNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
_18 .brandVettings.list({ limit: 20 });
_18 brandVettings.forEach((b) => console.log(b.accountSid));
_25 "first_page_url": "https://messaging.twilio.com/v1/a2p/BrandRegistrations/BN0044409f7e067e279523808d267e2d85/Vettings?PageSize=50&Page=0",
_25 "previous_page_url": null,
_25 "next_page_url": null,
_25 "url": "https://messaging.twilio.com/v1/a2p/BrandRegistrations/BN0044409f7e067e279523808d267e2d85/Vettings?PageSize=50&Page=0"
_25 "account_sid": "AC78e8e67fc0246521490fb9907fd0c165",
_25 "brand_sid": "BN0044409f7e067e279523808d267e2d85",
_25 "brand_vetting_sid": "VT12445353",
_25 "vetting_provider": "campaign-verify",
_25 "vetting_id": "cv|1.0|tcr|10dlc|9975c339-d46f-49b7-a399-EXAMPLETOKEN|GQ3EXAMPLETOKENAXXBUNBT2AgL-LdQuPveFhEyY",
_25 "vetting_class": "POLITICAL",
_25 "vetting_status": "IN_PROGRESS",
_25 "date_created": "2021-01-27T14:18:35Z",
_25 "date_updated": "2021-01-27T14:18:35Z",
_25 "url": "https://messaging.twilio.com/v1/a2p/BrandRegistrations/BN0044409f7e067e279523808d267e2d85/Vettings/VT12445353"