Skip to main content

Generate Campaign Content

Auto-generate all the required content for a 10DLC campaign registration based on a registered brand and selected use cases. Returns the campaign description, message flow (consent text), sample messages, opt-in/opt-out messages, and HELP message — ready to submit.

Endpoint

POST /v1/10dlc/campaign/generate-content

Authentication

X-API-Key
string
required
Your API key

Request Body

brand_id
string
required
The brand ID to generate content for (e.g., B4KRR4F)
use_cases
string[]
required
Array of use case identifiers. Available values:2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, HIGHER_EDUCATION, MARKETING, POLLING_VOTING, PUBLIC_SERVICE, SECURITY_ALERT

Response

success
boolean
Whether the generation was successful
description
string
Auto-generated campaign description for the registration form
message_flow
string
Complete opt-in consent text with checkboxes. Includes a separate marketing checkbox if MARKETING is in the use cases.
sample_messages
string[]
Up to 5 sample messages based on the selected use cases (2 per use case)
sample1
string
First sample message (ready for campaign create)
sample2
string
Second sample message
sample3
string
Third sample message
sample4
string
Fourth sample message
sample5
string
Fifth sample message
optin_message
string
The message sent to users when they opt in
optout_message
string
The message sent to users when they opt out (reply STOP)
help_message
string
The message sent to users when they reply HELP
optin_keywords
string
Keywords that trigger opt-in (e.g., START, YES, SUBSCRIBE)
optout_keywords
string
Keywords that trigger opt-out (e.g., STOP, UNSUBSCRIBE, CANCEL, END, QUIT)
help_keywords
string
Keywords that trigger the help message (e.g., HELP, INFO)
brand
object
Brand details used for content generation

Example Request

curl -X POST "https://api.teli.ai/v1/10dlc/campaign/generate-content" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "brand_id": "B4KRR4F",
    "use_cases": ["CUSTOMER_CARE", "ACCOUNT_NOTIFICATION", "MARKETING"]
  }'

Example Response

{
  "success": true,
  "description": "Send first-party customer care, account notification, and marketing messages offered directly by the messaging party. My Company is a real estate company that provides products and services to customers in the Real Estate industry.",
  "message_flow": "Clients will be able to sign up to receive SMS notifications by checking their preference (use case(s)) by clicking on https://mycompany.com/optin at https://mycompany.com where they'll see a form to fill out information, and can click a specific box for Customer Care, Account Notification and/or Marketing. The text reads:\n\n[ ] By providing a telephone number, clicking this button, and submitting the form, you are consenting to be contacted by SMS text message from My Company, regarding customer care, account notification messages, (our message frequency may vary). Message & data rates apply. Reply STOP to unsubscribe from further messaging from My Company. Reply HELP for more information. See our Privacy Policy (containing our SMS Terms) at the bottom of the page for more information.\n\n[ ] By providing a telephone number, clicking this button, and submitting the form, you are consenting to be contacted by SMS text message from My Company, regarding new offers (marketing), (our message frequency may vary). Message & data rates apply. Reply STOP to unsubscribe from further messaging from My Company. Reply HELP for more information. See our Privacy Policy (containing our SMS Terms) at the bottom of the page for more information.\n\nConsent is provided exclusively for My Company to contact the user based on the selection, not any other third parties mentioned on the site. SMS opt-in data is not shared/sold to third parties for promotional/marketing purposes.\nPrivacy Policy URL: https://mycompany.com/privacy",
  "sample_messages": [
    "Our team has looked into your issue, and should have a resolution soon. We'll reach out for more information as soon as possible. Reply STOP to opt out from My Company.",
    "Thanks for reaching out concerning your account. Please describe the issue and we will respond as soon as we are able. Reply STOP to opt out from My Company.",
    "Your 10DLC campaign is now fully approved, congratulations! Reply STOP to opt out from My Company.",
    "Your payment has been successfully received. Reply STOP to opt out from My Company.",
    "We think you'll love our new release, let's book a call and discuss soon! Reply STOP to opt out from My Company."
  ],
  "sample1": "Our team has looked into your issue, and should have a resolution soon. We'll reach out for more information as soon as possible. Reply STOP to opt out from My Company.",
  "sample2": "Thanks for reaching out concerning your account. Please describe the issue and we will respond as soon as we are able. Reply STOP to opt out from My Company.",
  "sample3": "Your 10DLC campaign is now fully approved, congratulations! Reply STOP to opt out from My Company.",
  "sample4": "Your payment has been successfully received. Reply STOP to opt out from My Company.",
  "sample5": "We think you'll love our new release, let's book a call and discuss soon! Reply STOP to opt out from My Company.",
  "optin_message": "Welcome! You've now opted-in to messaging from My Company. Message Frequency may vary. Message and data rates may apply. Reply STOP to opt-out, and HELP for support.",
  "optout_message": "You have successfully unsubscribed from My Company, no further messages will be sent. Reply START to opt-back into communication.",
  "help_message": "My Company, you can get more assistance from our website at https://mycompany.com and +13135551234. Reply STOP to Opt-out. Msg & Data rate may apply. You can also text START to restart getting messages from My Company again.",
  "optin_keywords": "START, YES, SUBSCRIBE",
  "optout_keywords": "STOP, UNSUBSCRIBE, CANCEL, END, QUIT",
  "help_keywords": "HELP, INFO",
  "brand": {
    "company_name": "My Company",
    "vertical": "REAL_ESTATE",
    "industry": "Real Estate",
    "optin_link": "https://mycompany.com/optin",
    "website": "https://mycompany.com",
    "privacy_policy_link": "https://mycompany.com/privacy",
    "terms_and_conditions_link": "https://mycompany.com/terms"
  },
  "powered_by": "Teli"
}

How to Use the Generated Content

The generated fields map directly to the Create Campaign endpoint:
Generated FieldCampaign Create Field
descriptiondescription
message_flowmessageFlow
sample_messages[0]sample1
sample_messages[1]sample2
sample_messages[2]sample3
sample_messages[3]sample4
sample_messages[4]sample5
optin_messageoptinMessage
optout_messageoptoutMessage
help_messagehelpMessage
optin_keywordsoptin_keywords
optout_keywordsoptout_keywords
help_keywordshelp_keywords

Available Use Cases

ValueDescription
2FATwo-factor authentication codes
ACCOUNT_NOTIFICATIONAccount status updates and alerts
CUSTOMER_CARECustomer support and service messages
DELIVERY_NOTIFICATIONShipping and delivery updates
FRAUD_ALERTFraud detection and prevention alerts
HIGHER_EDUCATIONUniversity and college notifications
MARKETINGPromotional offers and marketing messages
POLLING_VOTINGPolling, voting, and survey messages
PUBLIC_SERVICEPublic service announcements
SECURITY_ALERTSecurity breach and password reset alerts