Create external campaign
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 \
-X POST https://messaging.twilio.com/v1/Services/PreregisteredUsa2p \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'CampaignId=string&MessagingServiceSid=string'
Request example
{
"CampaignId": "string",
"MessagingServiceSid": "string"
}
Request examples
{
"CampaignId": "string",
"MessagingServiceSid": "string"
}
Response examples (201)
{
"account_sid": "string",
"campaign_id": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"messaging_service_sid": "string",
"sid": "string"
}
Response examples (201)
{
"account_sid": "string",
"campaign_id": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"messaging_service_sid": "string",
"sid": "string"
}