List 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 fetch the resource from.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^MG[0-9a-fA-F]{32}$
.
GET
/v1/Services/{MessagingServiceSid}/Compliance/Usa2p
curl \
--request GET 'https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p' \
--user "username:password"
Response examples (200)
Read full
{
"meta": {
"key": "compliance",
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p?PageSize=20&Page=0",
"page": 0,
"page_size": 20,
"next_page_url": null,
"first_page_url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p?PageSize=20&Page=0",
"previous_page_url": null
},
"compliance": [
{
"sid": "QE2c6890da8086d771620e9b13fadeba0b",
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p/QE2c6890da8086d771620e9b13fadeba0b",
"mock": false,
"errors": [],
"age_gated": false,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"campaign_id": "CFOOBAR",
"description": "Send marketing messages about sales to opted in customers.",
"rate_limits": {
"att": {
"mps": 600,
"msg_class": "A"
},
"tmobile": {
"brand_tier": "TOP"
}
},
"date_created": "2021-02-18T14:48:52Z",
"date_updated": "2021-02-18T14:48:52Z",
"help_message": "Acme Corporation: Please visit www.example.com to get support. To opt-out, reply STOP.",
"message_flow": "End users opt-in by visiting www.example.com and adding their phone number. They then check a box agreeing to receive text messages from Example Brand. Additionally, end users can also opt-in by texting START to (111) 222-3333 to opt in.",
"help_keywords": [
"HELP"
],
"direct_lending": false,
"opt_in_message": "Acme Corporation: You are now opted-in. For help, reply HELP. To opt-out, reply STOP",
"campaign_status": "PENDING",
"message_samples": [
"EXPRESS: Denim Days Event is ON",
"LAST CHANCE: Book your next flight for just 1 (ONE) EUR"
],
"opt_in_keywords": [
"START"
],
"opt_out_message": "You have successfully been unsubscribed from Acme Corporation. You will not receive any more messages from this number.",
"opt_out_keywords": [
"STOP"
],
"subscriber_opt_in": true,
"has_embedded_links": true,
"has_embedded_phone": false,
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"brand_registration_sid": "BNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"is_externally_registered": false,
"us_app_to_person_usecase": "MARKETING"
}
]
}
{
"meta": {
"key": "compliance",
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p?PageSize=20&Page=0",
"page": 0,
"page_size": 20,
"next_page_url": null,
"first_page_url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p?PageSize=20&Page=0",
"previous_page_url": null
},
"compliance": [
{
"sid": "QE2c6890da8086d771620e9b13fadeba0b",
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p/QE2c6890da8086d771620e9b13fadeba0b",
"mock": false,
"errors": [
{
"url": "https://www.twilio.com/docs/api/errors/30897",
"fields": [
"MESSAGE_FLOW"
],
"error_code": 30897,
"description": "The campaign submission has been reviewed and it was rejected due to Disallowed Content."
}
],
"age_gated": false,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"campaign_id": "CFOOBAR",
"description": "Send marketing messages about sales to opted in customers.",
"rate_limits": {
"att": {
"mps": 600,
"msg_class": "A"
},
"tmobile": {
"brand_tier": "TOP"
}
},
"date_created": "2021-02-18T14:48:52Z",
"date_updated": "2021-02-18T14:48:52Z",
"help_message": "Acme Corporation: Please visit www.example.com to get support. To opt-out, reply STOP.",
"message_flow": "End users opt-in by visiting www.example.com and adding their phone number. They then check a box agreeing to receive text messages from Example Brand. Additionally, end users can also opt-in by texting START to (111) 222-3333 to opt in.",
"help_keywords": [
"HELP"
],
"direct_lending": false,
"opt_in_message": "Acme Corporation: You are now opted-in. For help, reply HELP. To opt-out, reply STOP",
"campaign_status": "PENDING",
"message_samples": [
"EXPRESS: Denim Days Event is ON",
"LAST CHANCE: Book your next flight for just 1 (ONE) EUR"
],
"opt_in_keywords": [
"START"
],
"opt_out_message": "You have successfully been unsubscribed from Acme Corporation. You will not receive any more messages from this number.",
"opt_out_keywords": [
"STOP"
],
"subscriber_opt_in": true,
"has_embedded_links": true,
"has_embedded_phone": false,
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"brand_registration_sid": "BNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"is_externally_registered": false,
"us_app_to_person_usecase": "MARKETING"
}
]
}