This API Reference page is meant to supplement the ISV API Onboarding Guides. Do not attempt to use this API Resource without following the appropriate guide, or you may incur delays in registration and unintended fees.
The UsAppToPersonUsecase resource provides a list of possible A2P 10DLC Use Cases that a specific Brand can use when creating an A2P 10DLC Campaign.
Human readable name, code, description and post_approval_required (indicates whether or not post approval is required for this Use Case) of A2P Campaign Use Cases.
GET https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/Usecases
This request returns a list of possible A2P 10DLC Use Cases for a given Messaging Service and A2P 10DLC Brand.
You need to provide one of the code
values when creating a UsAppToPerson resource.
The SID of the Messaging Service to fetch the resource from.
^MG[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The unique string to identify the A2P brand.
^BN[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchUsAppToPersonUsecase() {11const usAppToPersonUsecase = await client.messaging.v112.services("MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")13.usAppToPersonUsecases.fetch({14brandRegistrationSid: "BNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",15});1617console.log(usAppToPersonUsecase.usAppToPersonUsecases);18}1920fetchUsAppToPersonUsecase();
1{2"us_app_to_person_usecases": [3{4"code": "2FA",5"name": "Two-Factor authentication (2FA)",6"description": "Two-Factor authentication, one-time use password, password reset",7"post_approval_required": false8},9{10"code": "ACCOUNT_NOTIFICATION",11"name": "Account Notification",12"description": "All reminders, alerts, and notifications. (Examples include: flight delayed, hotel booked, appointment reminders.)",13"post_approval_required": false14},15{16"code": "AGENTS_FRANCHISES",17"name": "Agents and Franchises",18"description": "For brands that have multiple agents, franchises or offices in the same brand vertical, but require individual localised numbers per agent/location/office.",19"post_approval_required": true20},21{22"code": "CHARITY",23"name": "Charity",24"description": "Includes: 5013C Charity\nDoes not include: Religious organizations",25"post_approval_required": false26},27{28"code": "PROXY",29"name": "Proxy",30"description": "Peer-to-peer app-based group messaging with proxy/pooled numbers (For example: GroupMe)\nSupporting personalized services and non-exposure of personal numbers for enterprise or A2P communications. (Examples include: Uber and AirBnb.)",31"post_approval_required": true32},33{34"code": "CUSTOMER_CARE",35"name": "Customer Care",36"description": "All customer care messaging, including account management and support",37"post_approval_required": false38},39{40"code": "DELIVERY_NOTIFICATION",41"name": "Delivery Notification",42"description": "Information about the status of the delivery of a product or service",43"post_approval_required": false44},45{46"code": "EMERGENCY",47"name": "Emergency",48"description": "Notification services designed to support public safety / health during natural disasters, armed conflicts, pandemics and other national or regional emergencies",49"post_approval_required": true50},51{52"code": "FRAUD_ALERT",53"name": "Fraud Alert Messaging",54"description": "Fraud alert notification",55"post_approval_required": false56},57{58"code": "HIGHER_EDUCATION",59"name": "Higher Education",60"description": "For campaigns created on behalf of Colleges or Universities and will also include School Districts etc that fall outside of any \"free to the consumer\" messaging model",61"post_approval_required": false62},63{64"code": "K12_EDUCATION",65"name": "K-12 Education",66"description": "Campaigns created for messaging platforms that support schools from grades K-12 and distance learning centers. This is not for Post-Secondary schools.",67"post_approval_required": true68},69{70"code": "LOW_VOLUME",71"name": "Low Volume Mixed",72"description": "Low throughput, any combination of use-cases. Examples include: test, demo accounts",73"post_approval_required": false74},75{76"code": "MARKETING",77"name": "Marketing",78"description": "Any communication with marketing and/or promotional content",79"post_approval_required": false80},81{82"code": "MIXED",83"name": "Mixed",84"description": "Mixed messaging reserved for specific consumer service industry",85"post_approval_required": false86},87{88"code": "POLITICAL",89"name": "Political",90"description": "Part of organized effort to influence decision making of specific group. All campaigns to be verified",91"post_approval_required": false92},93{94"code": "POLLING_VOTING",95"name": "Polling and voting",96"description": "Polling and voting",97"post_approval_required": false98},99{100"code": "PUBLIC_SERVICE_ANNOUNCEMENT",101"name": "Public Service Announcement",102"description": "An informational message that is meant to raise the audience awareness about an important issue",103"post_approval_required": false104},105{106"code": "SECURITY_ALERT",107"name": "Security Alert",108"description": "A notification that the security of a system, either software or hardware, has been compromised in some way and there is an action you need to take",109"post_approval_required": false110},111{112"code": "SOCIAL",113"name": "Social",114"description": "Communication within or between closed communities (For example: influencers alerts)",115"post_approval_required": true116},117{118"code": "SWEEPSTAKE",119"name": "Sweepstake",120"description": "Sweepstake",121"post_approval_required": true122}123]124}