API Endpoint
The Campaign Object
Tuple indicating status of the following attributes that were specified at the time of campaign creation:
affiliate_marketing, age_gated, direct_lending, embedded_link, embedded_phone, subscriber_help, subscriber_optin, subscriber_optout.Code identifying the reason the campaign registration was declined by TCR. Returned only when
registration_status is FAILED.Reason the campaign registration was declined by TCR. Returned only when
registration_status is FAILED.Additional standard use cases covered by the campaign, returned as a comma-separated string (2–5 use cases). Returned only when
usecase is MIXED or LOW_VOLUME. Submitted on the request side as sub_usecases (a plural array) — see the note under Register a Campaign.Sample message indicated at campaign creation time. Campaign creation requires at least two sample messages.
Sample message indicated at campaign creation time. Campaign creation requires at least two sample messages.
Tuple containing allowed transactions per minute (TPM) and brand_tier (specific to T-Mobile transactions per day (TPD)).
A brief description of how a customer opts in to the campaign and provides consent to the sender to receive their messages.
Opt-in keyword(s) associated with the campaign. If more than one, provide a comma-separated list with no special characters or embedded spaces.
Opt-out keyword(s) associated with the campaign. If more than one, provide a comma-separated list with no special characters or embedded spaces.
Help keyword(s) associated with the campaign. If more than one, provide a comma-separated list with no special characters or embedded spaces.
Public URL to the terms and conditions page that applies to this campaign. Returned only when supplied at creation.
Public URL to the privacy policy page that applies to this campaign. Returned only when supplied at creation.
Identifier of the reseller that submitted the campaign to TCR. Populated automatically by Plivo; response-only.
Indicates how a campaign has been created. If you have created this campaign on Plivo, campaign_source will be
plivo. If you have created a campaign directly on TCR and imported to Plivo, campaign_source will be shared.ISO 8601 timestamp of when the campaign was registered. Auto-generated by Plivo; response-only.
Example Object
Register a Campaign
This API lets you register a campaign using a preexisting brand.Arguments
Indicates the industry specific to the message use case. Allowed values:
PROFESSIONAL, REAL_ESTATE, HEALTHCARE, HUMAN_RESOURCES, ENERGY, ENTERTAINMENT, RETAIL, TRANSPORTATION, AGRICULTURE, INSURANCE, POSTAL, EDUCATION, HOSPITALITY, FINANCIAL, POLITICAL, GAMBLING, LEGAL, CONSTRUCTION, NGO, MANUFACTURING, GOVERNMENT, TECHNOLOGY, COMMUNICATION.A brief description of the campaign and how it’s relevant to your business - minimum of 40 characters.
Indicates your messaging use case. Allowed values:
2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, HIGHER_EDUCATION, LOW_VOLUME, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, SECURITY_ALERT.The content of a sample message that you will send through this campaign. You must provide at least two samples, each with a minimum of 20 characters.
Third sample message body. Minimum 20 characters. Up to five sample messages may be provided —
sample1 and sample2 are required, sample3–sample5 are optional.A confirmation that you are collecting and processing customer opt-ins. Allowed value:
true.A confirmation that you are collecting and processing customer opt-outs. Allowed value:
true.A confirmation that you have implemented a message reply that tells customers how they can contact the message sender when they reply with the “HELP” keyword. Allowed value:
true.Indicates whether this campaign includes content related to direct lending or other loan arrangements. Allowed values:
true, false.Indicates whether embedded links are being used. Operators do not accept public URL shorteners. Allowed values:
true, false.Indicates whether the campaign is using an embedded phone number other than the required HELP contact number. Allowed values:
true, false.Indicates whether the campaign includes any age-gated content as defined by operator and CTIA guidelines. Allowed values:
true, false.Indicates whether affiliate marketing was used in the construction of this campaign. Allowed values:
true, false.Required when use case is
MIXED or LOW_VOLUME. Two to five sub-use cases, passed as an array of enum strings. Allowed values: 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, HIGHER_EDUCATION, MARKETING, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, SECURITY_ALERT.This field is submitted as
sub_usecases (plural, an array) in the request, but it is returned as sub_usecase (singular, a comma-separated string) in the Campaign object. This naming difference is intentional.Describes how a customer opts in to a campaign, thereby giving consent to the sender to send messages. The message flow must be clear and inform customers about the nature of the campaign. If a campaign supports multiple opt-in mechanisms, you must mention all of them here. Check documentation for samples.
Indicates the response to the HELP keyword. It may include the brand name and support contact information. Check documentation for samples.
Indicates the response to the STOP keyword. It must include acknowledgement of the opt-out request and confirmation that no further messages will be sent, and may include the brand name. Check documentation for samples.
Opt-in keywords associated with the campaign. If more than one, provide a comma-separated list with no special characters or embedded spaces.
Help keywords associated with the campaign, in all capital letters. If more than one, provide a comma-separated list with no special characters or embedded spaces.
The HTTP method to be used when calling the URL defined above. Allowed values:
GET, POST. Defaults to POST.Response
Retrieve a Campaign
This API lets you fetch details about a specific campaign associated with your account.Response
List All Campaigns
This API lets you fetch all the campaigns associated with an account.Query Parameters
Denotes the number of results per page. The maximum number of results that can be fetched is 20. Defaults to 20.
Denotes the number of value items by which the results should be offset. Defaults to 0. Read more about offset-based pagination.
Filter by use case. Allowed values:
2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, HIGHER_EDUCATION, LOW_VOLUME, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, SECURITY_ALERT.Filter by registration status of a campaign. Allowed values:
Active, Failed, Processing, Expired.Response
Update a Campaign
Update a 10DLC campaign from your account. This action is only allowed for campaigns that failed to register previously - that is, current registration_status =failed.
Note that updating a campaign submits it for another vetting review with the carriers at a cost of $15. See our 10DLC support page for more details on vetting.
Please note that updates to campaigns will be allowed when the registration_status is set to processing. However, in some cases, when the registration_status is in the processing stage, updates to campaigns will not be allowed (via console) or may result in an error through the API, as the campaign may be undergoing carrier approval with the registry.
Arguments
You can update only these fields of a campaign. You can pass one or more of the fields during the update.A brief description of the campaign and how it’s relevant to your business - minimum of 40 characters.
The content of a sample message that you will send through this campaign. You must provide at least two samples, each with a minimum of 20 characters.
Describes how a customer opts in to a campaign, thereby giving consent to the sender to send messages. The message flow must be clear and inform customers about the nature of the campaign. If a campaign supports multiple opt-in mechanisms, you must mention all of them here. Check documentation for samples.
Indicates the response to the HELP keyword. It may include the brand name and support contact information. Check documentation for samples.
Indicates the response to the STOP keyword. It must include acknowledgement of the opt-out request and confirmation that no further messages will be sent, and may include the brand name. Check documentation for samples.
Opt-out keywords associated with the campaign. If more than one, provide a comma-separated list with no special characters or embedded spaces.
Opt-in keywords associated with the campaign. If more than one, provide a comma-separated list with no special characters or embedded spaces.
Help keywords associated with the campaign, in all capital letters. If more than one, provide a comma-separated list with no special characters or embedded spaces.
Response
Delete a Campaign
Deletes a 10DLC campaign from your account. This action is irreversible and is only allowed for campaigns that have no numbers in processing status.Response
Import a Campaign (Beta)
This API lets you import a campaign that you have registered directly with The Campaign Registry (TCR). This feature is currently in private beta - please contact our support team to enable this feature for your account.Arguments
ID for the campaign that needs to be imported. Make sure you have shared the campaign with Plivo from your TCR portal before submitting the API request.
The HTTP method to be used when calling the URL defined above. Allowed values:
GET, POST. Defaults to POST.