Create us app to person
A service for (fetch/create/delete) A2P Campaign for a Messaging Service
Path parameters
-
The SID of the Messaging Service to create the resources from.
Body
-
A2P Brand Registration SID
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^BN[0-9a-fA-F]{32}$
. -
A short description of what this SMS campaign does.
-
Indicates that this SMS campaign will send messages that contain links.
-
Indicates that this SMS campaign will send messages that contain phone numbers.
-
Message samples, at least 2 and up to 5 sample messages, <=1024 chars each.
-
A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..]
POST /v1/Services/{MessagingServiceSid}/Compliance/Usa2p
curl \
-X POST https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'BrandRegistrationSid=string&Description=string&HasEmbeddedLinks=true&HasEmbeddedPhone=true&MessageSamples=string&UsAppToPersonUsecase=string'
Request example
{
"BrandRegistrationSid": "string",
"Description": "string",
"HasEmbeddedLinks": true,
"HasEmbeddedPhone": true,
"MessageSamples": [
"string"
],
"UsAppToPersonUsecase": "string"
}
Request examples
{
"BrandRegistrationSid": "string",
"Description": "string",
"HasEmbeddedLinks": true,
"HasEmbeddedPhone": true,
"MessageSamples": [
"string"
],
"UsAppToPersonUsecase": "string"
}
Response examples (201)
{
"account_sid": "string",
"brand_registration_sid": "string",
"campaign_id": "string",
"campaign_status": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"description": "string",
"has_embedded_links": true,
"has_embedded_phone": true,
"is_externally_registered": true,
"message_samples": [
"string"
],
"messaging_service_sid": "string",
"mock": true,
"sid": "string",
"url": "https://example.com",
"us_app_to_person_usecase": "string"
}
Response examples (201)
{
"account_sid": "string",
"brand_registration_sid": "string",
"campaign_id": "string",
"campaign_status": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"description": "string",
"has_embedded_links": true,
"has_embedded_phone": true,
"is_externally_registered": true,
"message_samples": [
"string"
],
"messaging_service_sid": "string",
"mock": true,
"sid": "string",
"url": "https://example.com",
"us_app_to_person_usecase": "string"
}