Fetch 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}$
. -
The SID of the US A2P Compliance resource to fetch
QE2c6890da8086d771620e9b13fadeba0b
.Minimum length is
34
, maximum length is34
. Format should match the following pattern:^QE[0-9a-fA-F]{32}$
.
GET
/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}
curl \
--request GET 'https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}' \
--user "username:password"
Response examples (200)
Fetch
{
"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"
}
{
"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 confirmation messages about scheduled home repair services",
"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": "John Doe's Home Repair: Please call (111)-222-3333 to get help. To opt-out, please reply STOP",
"message_flow": "End users call (111)-222-3333 to schedule appointments, where they're also asked whether they would like to provide their phone numbers to receive appointment reminders ",
"help_keywords": [
"HELP"
],
"direct_lending": false,
"opt_in_message": "John Doe's Home Repair: 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 John Doe's Home Repair. 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": "SOLE_PROPRIETOR"
}
{
"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 confirmation messages about scheduled home repair services",
"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": "John Doe's Home Repair: Please call (111)-222-3333 to get help. To opt-out, please reply STOP",
"message_flow": "End users call (111)-222-3333 to schedule appointments, where they're also asked whether they would like to provide their phone numbers to receive appointment reminders ",
"help_keywords": [
"HELP"
],
"direct_lending": false,
"opt_in_message": "John Doe's Home Repair: 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 John Doe's Home Repair. 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": "SOLE_PROPRIETOR"
}