Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

A2P 10DLC - UsAppToPerson Resource


(warning)

Warning

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 UsAppToPerson resource represents an A2P 10DLC Campaign. This resource contains information about the Campaign such as message contents, opt-in and opt-out behavior, and the purpose of the messages.

This resource is part of the A2P 10DLC registration process and is intended only for use by Independent Software Vendors (ISVs).

Not an ISV? Check out the Standard and Low-Volume Brand Onboarding Guide or the Sole Proprietor Brand Onboarding Guide.


UsAppToPerson Properties

Property nameTypePIIDescription
sidSID<QE>
Not PII

The unique string that identifies a US A2P Compliance resource QE2c6890da8086d771620e9b13fadeba0b.

Pattern: ^QE[0-9a-fA-F]{32}$Min length: 34Max length: 34

account_sidSID<AC>

The SID of the Account that the Campaign belongs to.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

brand_registration_sidSID<BN>

The unique string to identify the A2P brand.

Pattern: ^BN[0-9a-fA-F]{32}$Min length: 34Max length: 34

messaging_service_sidSID<MG>

The SID of the Messaging Service that the resource is associated with.

Pattern: ^MG[0-9a-fA-F]{32}$Min length: 34Max length: 34

descriptionstring

A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.


message_samplesarray[string]

An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars.


us_app_to_person_usecasestring

A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING, SOLE_PROPRIETOR...]. SOLE_PROPRIETOR campaign use cases can only be created by SOLE_PROPRIETOR Brands, and there can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR Brand.


has_embedded_linksboolean

Indicate that this SMS campaign will send messages that contain links.


has_embedded_phoneboolean

Indicates that this SMS campaign will send messages that contain phone numbers.


subscriber_opt_inboolean

A boolean that specifies whether campaign has Subscriber Optin or not.


age_gatedboolean

A boolean that specifies whether campaign is age gated or not.


direct_lendingboolean

A boolean that specifies whether campaign allows direct lending or not.


campaign_statusstring

Campaign status. Examples: IN_PROGRESS, VERIFIED, FAILED.


campaign_idstring

The Campaign Registry (TCR) Campaign ID.


is_externally_registeredboolean

Indicates whether the campaign was registered externally or not.


rate_limitsobject

Rate limit and/or classification set by each carrier, Ex. AT&T or T-Mobile.


message_flowstring

Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum.


opt_in_messagestring

If end users can text in a keyword to start receiving messages from this campaign, the auto-reply messages sent to the end users must be provided. The opt-in response should include the Brand name, confirmation of opt-in enrollment to a recurring message campaign, how to get help, and clear description of how to opt-out. This field is required if end users can text in a keyword to start receiving messages from this campaign. 20 character minimum. 320 character maximum.


opt_out_messagestring

Upon receiving the opt-out keywords from the end users, Twilio customers are expected to send back an auto-generated response, which must provide acknowledgment of the opt-out request and confirmation that no further messages will be sent. It is also recommended that these opt-out messages include the brand name. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.


help_messagestring

When customers receive the help keywords from their end users, Twilio customers are expected to send back an auto-generated response; this may include the brand name and additional support contact information. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.


opt_in_keywordsarray[string]

If end users can text in a keyword to start receiving messages from this campaign, those keywords must be provided. This field is required if end users can text in a keyword to start receiving messages from this campaign. Values must be alphanumeric. 255 character maximum.


opt_out_keywordsarray[string]

End users should be able to text in a keyword to stop receiving messages from this campaign. Those keywords must be provided. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.


help_keywordsarray[string]

End users should be able to text in a keyword to receive help. Those keywords must be provided as part of the campaign registration request. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.


date_createdstring<date-time>

date_updatedstring<date-time>

The date and time in GMT when the resource was last updated specified in ISO 8601 format.


urlstring<uri>

The absolute URL of the US App to Person resource.


mockboolean

A boolean that specifies whether campaign is a mock or not. Mock campaigns will be automatically created if using a mock brand. Mock campaigns should only be used for testing purposes.


errorsarray

Details indicating why a campaign registration failed. These errors can indicate one or more fields that were incorrect or did not meet review requirements.


Create a UsAppToPerson resource

POST https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p

This request creates a UsAppToPerson resource, which represents an A2P 10DLC Campaign. Creating this resource submits the Campaign for review and incurs fees.

Learn more about the formats and contents of each parameter in the Gather the Required Business Information doc.

Path parameters

Property nameTypeRequiredPIIDescription
MessagingServiceSidSID<MG>required

The SID of the Messaging Service to create the resources from.

Pattern: ^MG[0-9a-fA-F]{32}$Min length: 34Max length: 34

Request body parameters

Property nameTypeRequiredPIIDescription
BrandRegistrationSidSID<BN>required

A2P Brand Registration SID

Pattern: ^BN[0-9a-fA-F]{32}$Min length: 34Max length: 34

Descriptionstringrequired

A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.


MessageFlowstringrequired

Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum.


MessageSamplesarray[string]required

An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars.


UsAppToPersonUsecasestringrequired

A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..]


HasEmbeddedLinksbooleanrequired

Indicates that this SMS campaign will send messages that contain links.


HasEmbeddedPhonebooleanrequired

Indicates that this SMS campaign will send messages that contain phone numbers.


OptInMessagestringOptional

If end users can text in a keyword to start receiving messages from this campaign, the auto-reply messages sent to the end users must be provided. The opt-in response should include the Brand name, confirmation of opt-in enrollment to a recurring message campaign, how to get help, and clear description of how to opt-out. This field is required if end users can text in a keyword to start receiving messages from this campaign. 20 character minimum. 320 character maximum.


OptOutMessagestringOptional

Upon receiving the opt-out keywords from the end users, Twilio customers are expected to send back an auto-generated response, which must provide acknowledgment of the opt-out request and confirmation that no further messages will be sent. It is also recommended that these opt-out messages include the brand name. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.


HelpMessagestringOptional

When customers receive the help keywords from their end users, Twilio customers are expected to send back an auto-generated response; this may include the brand name and additional support contact information. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.


OptInKeywordsarray[string]Optional

If end users can text in a keyword to start receiving messages from this campaign, those keywords must be provided. This field is required if end users can text in a keyword to start receiving messages from this campaign. Values must be alphanumeric. 255 character maximum.


OptOutKeywordsarray[string]Optional

End users should be able to text in a keyword to stop receiving messages from this campaign. Those keywords must be provided. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.


HelpKeywordsarray[string]Optional

End users should be able to text in a keyword to receive help. Those keywords must be provided as part of the campaign registration request. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.


SubscriberOptInbooleanOptional

A boolean that specifies whether campaign has Subscriber Optin or not.


AgeGatedbooleanOptional

A boolean that specifies whether campaign is age gated or not.


DirectLendingbooleanOptional

A boolean that specifies whether campaign allows direct lending or not.

(information)

Info

If you use Twilio's default opt-out or advanced opt-out, you do not need to submit opt-out and help keywords and messages when creating a Campaign. Twilio will automatically complete those fields for you with the default or your advanced opt-out and help messaging.

If you manage opt-out and help yourself, you must pass the opt-out and help parameters when creating a Campaign.

Create a UsAppToPerson resource

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_30
// Download the helper library from https://www.twilio.com/docs/node/install
_30
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_30
_30
// Find your Account SID and Auth Token at twilio.com/console
_30
// and set the environment variables. See http://twil.io/secure
_30
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_30
const authToken = process.env.TWILIO_AUTH_TOKEN;
_30
const client = twilio(accountSid, authToken);
_30
_30
async function createUsAppToPerson() {
_30
const usAppToPerson = await client.messaging.v1
_30
.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_30
.usAppToPerson.create({
_30
brandRegistrationSid: "BNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_30
description: "Description",
_30
hasEmbeddedLinks: true,
_30
hasEmbeddedPhone: false,
_30
messageFlow:
_30
"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. Term and Conditions at www.example.com/tc. Privacy Policy at www.example.com/privacy",
_30
messageSamples: [
_30
"EXPRESS: Denim Days Event is ON. Reply STOP to unsubscribe.",
_30
"LAST CHANCE: Book your next flight for just 1 (ONE) EUR",
_30
],
_30
usAppToPersonUsecase: "UsAppToPersonUsecase",
_30
});
_30
_30
console.log(usAppToPerson.sid);
_30
}
_30
_30
createUsAppToPerson();

Output

_47
{
_47
"sid": "QE2c6890da8086d771620e9b13fadeba0b",
_47
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_47
"brand_registration_sid": "BNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_47
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_47
"description": "Description",
_47
"message_samples": [
_47
"EXPRESS: Denim Days Event is ON",
_47
"LAST CHANCE: Book your next flight for just 1 (ONE) EUR"
_47
],
_47
"us_app_to_person_usecase": "UsAppToPersonUsecase",
_47
"has_embedded_links": true,
_47
"has_embedded_phone": false,
_47
"subscriber_opt_in": false,
_47
"age_gated": false,
_47
"direct_lending": false,
_47
"campaign_status": "PENDING",
_47
"campaign_id": "CFOOBAR",
_47
"is_externally_registered": false,
_47
"rate_limits": {
_47
"att": {
_47
"mps": 600,
_47
"msg_class": "A"
_47
},
_47
"tmobile": {
_47
"brand_tier": "TOP"
_47
}
_47
},
_47
"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. Term and Conditions at www.example.com/tc. Privacy Policy at www.example.com/privacy",
_47
"opt_in_message": "Acme Corporation: You are now opted-in. For help, reply HELP. To opt-out, reply STOP",
_47
"opt_out_message": "You have successfully been unsubscribed from Acme Corporation. You will not receive any more messages from this number.",
_47
"help_message": "Acme Corporation: Please visit www.example.com to get support. To opt-out, reply STOP.",
_47
"opt_in_keywords": [
_47
"START"
_47
],
_47
"opt_out_keywords": [
_47
"STOP"
_47
],
_47
"help_keywords": [
_47
"HELP"
_47
],
_47
"date_created": "2021-02-18T14:48:52Z",
_47
"date_updated": "2021-02-18T14:48:52Z",
_47
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p/QE2c6890da8086d771620e9b13fadeba0b",
_47
"mock": false,
_47
"errors": []
_47
}


Fetch a UsAppToPerson resource

GET https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}

This request returns a UsAppToPerson resource. The UsAppToPerson resource represents an A2P 10DLC Campaign.

The value of Sid is always the US A2P Compliance resource identifier: QE2c6890da8086d771620e9b13fadeba0b.

Path parameters

Property nameTypeRequiredPIIDescription
MessagingServiceSidSID<MG>required

The SID of the Messaging Service to fetch the resource from.

Pattern: ^MG[0-9a-fA-F]{32}$Min length: 34Max length: 34

SidSID<QE>required

The SID of the US A2P Compliance resource to fetch QE2c6890da8086d771620e9b13fadeba0b.

Pattern: ^QE[0-9a-fA-F]{32}$Min length: 34Max length: 34

Fetch a US A2P Campaign

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_19
// Download the helper library from https://www.twilio.com/docs/node/install
_19
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_19
_19
// Find your Account SID and Auth Token at twilio.com/console
_19
// and set the environment variables. See http://twil.io/secure
_19
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19
const authToken = process.env.TWILIO_AUTH_TOKEN;
_19
const client = twilio(accountSid, authToken);
_19
_19
async function fetchUsAppToPerson() {
_19
const usAppToPerson = await client.messaging.v1
_19
.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19
.usAppToPerson("QEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_19
.fetch();
_19
_19
console.log(usAppToPerson.sid);
_19
}
_19
_19
fetchUsAppToPerson();

Output

_47
{
_47
"sid": "QEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_47
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_47
"brand_registration_sid": "BNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_47
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_47
"description": "Send marketing messages about sales to opted in customers.",
_47
"message_samples": [
_47
"EXPRESS: Denim Days Event is ON",
_47
"LAST CHANCE: Book your next flight for just 1 (ONE) EUR"
_47
],
_47
"us_app_to_person_usecase": "MARKETING",
_47
"has_embedded_links": true,
_47
"has_embedded_phone": false,
_47
"subscriber_opt_in": true,
_47
"age_gated": false,
_47
"direct_lending": false,
_47
"campaign_status": "PENDING",
_47
"campaign_id": "CFOOBAR",
_47
"is_externally_registered": false,
_47
"rate_limits": {
_47
"att": {
_47
"mps": 600,
_47
"msg_class": "A"
_47
},
_47
"tmobile": {
_47
"brand_tier": "TOP"
_47
}
_47
},
_47
"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.",
_47
"opt_in_message": "Acme Corporation: You are now opted-in. For help, reply HELP. To opt-out, reply STOP",
_47
"opt_out_message": "You have successfully been unsubscribed from Acme Corporation. You will not receive any more messages from this number.",
_47
"help_message": "Acme Corporation: Please visit www.example.com to get support. To opt-out, reply STOP.",
_47
"opt_in_keywords": [
_47
"START"
_47
],
_47
"opt_out_keywords": [
_47
"STOP"
_47
],
_47
"help_keywords": [
_47
"HELP"
_47
],
_47
"date_created": "2021-02-18T14:48:52Z",
_47
"date_updated": "2021-02-18T14:48:52Z",
_47
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p/QE2c6890da8086d771620e9b13fadeba0b",
_47
"mock": false,
_47
"errors": []
_47
}

You can use this request to check the campaign_status of the Campaign represented by this UsAppToPerson resource. Possible statuses are listed below:

  • PENDING - The Campaign has not yet been viewed by TCR.
  • IN_PROGRESS - TCR has begun the review process for the Campaign.
  • FAILED - The Campaign has failed the verification process.
  • VERIFIED - TCR has approved the Campaign.

If campaign_status is FAILED, the errors property of the UsAppToPerson resource is populated with a list of reasons why the Campaign was not approved. See the Troubleshooting Campaigns guide for more information.


Read all UsAppToPerson resources associated with a Messaging Service

GET https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p

This request retrieves all UsAppToPerson resources associated with a specific Messaging Service.

Path parameters

Property nameTypeRequiredPIIDescription
MessagingServiceSidSID<MG>required

The SID of the Messaging Service to fetch the resource from.

Pattern: ^MG[0-9a-fA-F]{32}$Min length: 34Max length: 34

Query parameters

Property nameTypeRequiredPIIDescription
PageSizeintegerOptional

How many resources to return in each list page. The default is 50, and the maximum is 1000.

Minimum: 1Maximum: 1000

PageintegerOptional

The page index. This value is simply for client state.

Minimum: 0

PageTokenstringOptional

The page token. This is provided by the API.

List all UsAppToPerson resources associated with a Messaging Service

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_18
// Download the helper library from https://www.twilio.com/docs/node/install
_18
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18
_18
// Find your Account SID and Auth Token at twilio.com/console
_18
// and set the environment variables. See http://twil.io/secure
_18
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18
const authToken = process.env.TWILIO_AUTH_TOKEN;
_18
const client = twilio(accountSid, authToken);
_18
_18
async function listUsAppToPerson() {
_18
const usAppToPeople = await client.messaging.v1
_18
.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_18
.usAppToPerson.list({ limit: 20 });
_18
_18
usAppToPeople.forEach((u) => console.log(u.sid));
_18
}
_18
_18
listUsAppToPerson();

Output

_60
{
_60
"compliance": [
_60
{
_60
"sid": "QE2c6890da8086d771620e9b13fadeba0b",
_60
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_60
"brand_registration_sid": "BNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_60
"messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_60
"description": "Send marketing messages about sales to opted in customers.",
_60
"message_samples": [
_60
"EXPRESS: Denim Days Event is ON",
_60
"LAST CHANCE: Book your next flight for just 1 (ONE) EUR"
_60
],
_60
"us_app_to_person_usecase": "MARKETING",
_60
"has_embedded_links": true,
_60
"has_embedded_phone": false,
_60
"subscriber_opt_in": true,
_60
"age_gated": false,
_60
"direct_lending": false,
_60
"campaign_status": "PENDING",
_60
"campaign_id": "CFOOBAR",
_60
"is_externally_registered": false,
_60
"rate_limits": {
_60
"att": {
_60
"mps": 600,
_60
"msg_class": "A"
_60
},
_60
"tmobile": {
_60
"brand_tier": "TOP"
_60
}
_60
},
_60
"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.",
_60
"opt_in_message": "Acme Corporation: You are now opted-in. For help, reply HELP. To opt-out, reply STOP",
_60
"opt_out_message": "You have successfully been unsubscribed from Acme Corporation. You will not receive any more messages from this number.",
_60
"help_message": "Acme Corporation: Please visit www.example.com to get support. To opt-out, reply STOP.",
_60
"opt_in_keywords": [
_60
"START"
_60
],
_60
"opt_out_keywords": [
_60
"STOP"
_60
],
_60
"help_keywords": [
_60
"HELP"
_60
],
_60
"date_created": "2021-02-18T14:48:52Z",
_60
"date_updated": "2021-02-18T14:48:52Z",
_60
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p/QE2c6890da8086d771620e9b13fadeba0b",
_60
"mock": false,
_60
"errors": []
_60
}
_60
],
_60
"meta": {
_60
"page": 0,
_60
"page_size": 20,
_60
"first_page_url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p?PageSize=20&Page=0",
_60
"previous_page_url": null,
_60
"next_page_url": null,
_60
"url": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Compliance/Usa2p?PageSize=20&Page=0",
_60
"key": "compliance"
_60
}
_60
}


Delete a UsAppToPerson resource

DELETE https://messaging.twilio.com/v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}

This request deletes a UsAppToPerson resource.

(error)

Danger

Deleting an approved UsAppToPerson resource blocks all A2P 10DLC messaging from the Messaging Service.

You must create a new UsAppToPerson resource and wait for the associated Campaign to be approved by TCR in order to send A2P 10DLC messages from the Messaging Service again. This can take several days.

Path parameters

Property nameTypeRequiredPIIDescription
MessagingServiceSidSID<MG>required

The SID of the Messaging Service to delete the resource from.

Pattern: ^MG[0-9a-fA-F]{32}$Min length: 34Max length: 34

SidSID<QE>required

The SID of the US A2P Compliance resource to delete QE2c6890da8086d771620e9b13fadeba0b.

Pattern: ^QE[0-9a-fA-F]{32}$Min length: 34Max length: 34

The value of Sid is always the US A2P Compliance resource identifier: QE2c6890da8086d771620e9b13fadeba0b.

Delete a UsAppToPerson resource

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_17
// Download the helper library from https://www.twilio.com/docs/node/install
_17
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_17
_17
// Find your Account SID and Auth Token at twilio.com/console
_17
// and set the environment variables. See http://twil.io/secure
_17
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_17
const authToken = process.env.TWILIO_AUTH_TOKEN;
_17
const client = twilio(accountSid, authToken);
_17
_17
async function deleteUsAppToPerson() {
_17
await client.messaging.v1
_17
.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_17
.usAppToPerson("QEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_17
.remove();
_17
}
_17
_17
deleteUsAppToPerson();


Rate this page: