Skip to main content
POST
/
api
/
v1
/
channels
/
twilio
/
{channel_id}
/
numbers
/
verify-a2p-compliance
Typescript (SDK)
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.channels.twilio.numbers.channelsTwilioNumbersA2pComplianceCheck({
    channelId: 661482,
    a2pMessagingPathCheckRequest: {
      phone: "+18042221111",
    },
  });

  console.log(result);
}

run();
{
  "a2p_approved": true
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

channel_id
integer
required

Body

application/json

Body to check US A2P / Messaging Service setup for one number on the Twilio channel.

phone
string
required

E.164 phone number exactly as Twilio stores it for this incoming number.

Example:

"+18042221111"

Response

Successful Response

Twilio-side A2P setup state for the number.

Reflects Twilio configuration (Messaging Service + Brand + Campaign records); it is not carrier per-number REGISTERED state or legal/content compliance.

a2p_approved
boolean
required

True when the number is on a Messaging Service with a US A2P registration whose brand is approved and campaign is verified on the same registration.