Resource to associate preregistered campaign with Messaging Service.
Body
-
ID of the preregistered campaign.
-
The SID of the Messaging Service that the resource is associated with.
Minimum length is
34, maximum length is34. Format should match the following pattern:^MG[0-9a-fA-F]{32}$.
POST
/v1/Services/PreregisteredUsa2p
curl \
--request POST 'https://messaging.twilio.com/v1/Services/PreregisteredUsa2p' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'CampaignId=string&MessagingServiceSid=string'
Response examples (201)
{
"account_sid": "string",
"campaign_id": "string",
"date_created": "2026-05-04T09:42:00Z",
"messaging_service_sid": "string",
"sid": "string"
}