Create a new A2P Campaign Registration and initialize an embedded compliance session.
Create a new A2P Campaign Registration and initialize an embedded compliance session.
Request body
The legacy Twilio A2P Brand SID (BN-prefixed) for the brand this campaign is registered under. This is a different identifier from the id returned by the Initialize Brand endpoint (which is formatted as tri1.us1.account.AC.../registration.BU...). Retrieve the BN brand SID via GET /v1/a2p/BrandRegistrations/{Sid} on messaging.twilio.com.
The SID of the Messaging Service.
Theme ID for styling the inquiry form.
The categories of the messaging use case.
A description of the messaging use case.
A sample message for the use case.
A second sample message for the use case.
A third sample message for the use case.
A fourth sample message for the use case.
A fifth sample message for the use case.
The opt-in methods for the use case.
A description of the opt-in process.
Whether messages will contain embedded links.
Whether messages will contain embedded phone numbers.
A sample URL that will be embedded in messages (must use https://).
Whether the campaign involves direct lending.
Whether the content is age-gated.
The URL to the privacy policy.
The URL to the terms and conditions.
Keywords users can text to opt in.
A sample opt-in confirmation message.
Keywords users can text to opt out.
A sample opt-out confirmation message.
Keywords users can text for help.
A sample help message.
Response
Created
The unique A2P Brand or Campaign Registration identifier, formatted as tri1.us1.account.AC.../registration.BU....
The Persona inquiry ID used to start the embedded compliance session.
The Persona session token for embedding the compliance UI. Expires in 24 hours.