Register a campaign
This API lets you register a campaign using a preexisting brand.
API Endpoint
Arguments
campaign_alias string required | A friendly name for your campaign. This name appears on the Plivo console. |
brand_id string required | ID of the for which campaign creation request is being submitted. |
vertical string required | Indicates the industry specific to the message use case. Allowed values: |
description string required | A brief description of the campaign and how it’s relevant to your business — minimum of 40 characters. |
usecase string required | Indicates your messaging use case. Allowed values: STARTER brands can only use
|
sample1 string required | 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. |
sample2 string required | The content of the second sample message. |
subscriber_optin boolean required | A confirmation that you are collecting and processing customer opt-ins. Allowed value: |
subscriber_optout boolean required | A confirmation that you are collecting and processing customer opt-outs. Allowed value: |
subscriber_help boolean required | 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: |
direct_lending boolean required | Indicates whether this campaign includes content related to direct lending or other loan arrangements. Allowed values: |
embedded_link boolean required | Indicates whether embedded links are being used. Operators do not accept public URL shorteners. Allowed values: |
embedded_phone boolean required | Indicates whether the campaign is using an embedded phone number other than the required HELP contact number. Allowed values: |
age_gated boolean required | Indicates whether the campaign includes any age-gated content as defined by operator and CTIA guidelines. Allowed values: |
affiliate_marketing boolean required | Indicates whether affiliate marketing was used in the construction of this campaign. Allowed values: |
sub_usecases list | Only applicable when use case is STARTER , MIXED , or LOW_VOLUME . Indicates two to five comma-separated use cases.Allowed values: |
message_flow string required | 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. |
help_message string required | Indicates the response to the HELP keyword. It may include the brand name and support contact information. Check documentation for samples. |
optout_message string required | 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. |
optin_message string | Message sent to subscribers to confirm their opt-in to the campaign. |
optin_keywords string | 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 string | 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. |
url string | The fully qualified URL to which status update callbacks for the message should be sent. |
method string | The HTTP method to be used when calling the URL defined above. Allowed values: |
Returns
api_id for the request, unique campaign_id, and success message