Verify Twilio Us A2P Compliance
Return whether Twilio shows this number on a US A2P messaging path with an approved brand.
POST
/api/v1/channels/twilio/{channel_id}/numbers/verify-a2p-complianceAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
channel_id
integer
path
required
Request body
application/json
body
A2pMessagingPathCheckRequest
required
1 field
phonestringrequiredE.164 phone number exactly as Twilio stores it for this incoming number.
Request example
{
"phone": "string"
}Responses
200Successful Response
application/json
response
A2pMessagingPathCheckResponse
required
1 field
a2p_approvedbooleanrequiredTrue 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.
Response example
{
"a2p_approved": true
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
