API Endpoint
The Campaign Object
The brand_id associated with the campaign.
Unique identifier for the campaign created.
A friendly name for your campaign. This name appears on the Plivo console.
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.A brief description of the campaign and how it’s relevant to your business.
Indicates status of a campaign.
Use case used to create the campaign.
Sub-use cases used to create mixed campaigns.
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.
Response to HELP keyword on this campaign’s numbers.
Message sent to subscribers to confirm their opt-in to the campaign.
Response to STOP keyword on this campaign’s numbers.
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.
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.Example Object
Register a Campaign
This API lets you register a campaign using a preexisting brand.Arguments
A friendly name for your campaign. This name appears on the Plivo console.
ID of the brand for which campaign creation request is being submitted.
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, STARTER. STARTER brands can only use STARTER as their use case.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.
The content of the second sample message.
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.Only applicable when use case is
STARTER, MIXED, or LOW_VOLUME. Indicates two to five comma-separated use cases. Allowed values: 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, HIGHER_EDUCATION, MARKETING, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, SECURITY_ALERT.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.
Message sent to subscribers to confirm their opt-in to the campaign.
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 fully qualified URL to which status update callbacks for the message should be sent.
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, STARTER.Filters results by a brand_id.
Filter by registration status of a campaign. Allowed values:
Active, Failed, Processing, Expired.Filters results by campaign source. Allowed values:
plivo, shared.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 friendly name for your campaign. This name appears on the Plivo console.
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.
The content of the second sample message.
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.
Message sent to subscribers to confirm their opt-in to the campaign.
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
A friendly name for your campaign.
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 fully qualified URL to which status update callbacks for the message should be sent.
The HTTP method to be used when calling the URL defined above. Allowed values:
GET, POST. Defaults to POST.