Recommend which text to send

Candidate SMS copy for a goal, ranked by expected revenue per message, each with the evidence behind its score: the factors that moved it and how many case studies each rests on, the closest published SMS-only case studies with their source links, and how much of the score comes from your own sends.

GET/v1/copy/recommend

Query Parameters

  • industryapparel, home_goods, food_beverage, restaurant, beauty, health_wellness, cannabis, hospitality, consumer_app, fintech, fitness, pets, arts_crafts, jewelry_accessories, sporting_goods, electronics, services, otherrequired

    The sender's industry

  • company_typeecommerce, subscription_ecommerce, subscription_app, consumer_app, restaurant, hospitality, retail, marketplace, fintech, servicesrequired

    Kind of business

  • goalany, abandoned_cart, abandoned_browse, welcome, winback, failed_payment, trial, promo, re_engagement, post_purchase, back_in_stock, quiz, launch, transactional, mixed

    The message type to write, or any to compare the types that fit audience Default "any".

  • audiencestring

    Who gets it, in words, e.g. "opened the paywall and left"

  • brandstringrequired

    Business name as customers know it At most 40 characters.

  • productstringrequired

    What is being sold, as the customer would say it, e.g. "your second number" At most 60 characters.

  • offerstring

    Optional, e.g. "50% off your first month". Without one no candidate has an offer

  • codestring

    Optional promo code

  • deadlinestring

    Optional, e.g. "tonight"

  • linkstring

    URL or merge field; default {{link}}

  • first_nameboolean

    Your contacts have first names, so candidates may use {{first_name}}

  • first_messageboolean

    The first text these people get from the number: the brand and opt-out line are added and counted

  • candidatesstring

    Your own drafts to score: a JSON array of up to 10 strings

  • limitinteger

    How many messages to return (default 5, max 20) Default 5. Maximum 20. Minimum 1.

  • use_historyboolean

    false ranks on the case studies only Default true.

Details

The prior is a dataset of documented SMS campaigns by industry, company type and message type (results that mix SMS with email or push are listed but never counted); your batches and automations (clicks, STOPs, and revenue from tracked events with a revenue property within 7 days) update it. Candidates are built only from your inputs, so none invents an offer, code or date.

Sends and saves nothing.

Responses

  • 200JSON object

    Ranked copy with evidence

  • 400Error

    Invalid input

  • 401Error

    Missing, malformed, or revoked API key

  • 402Error

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429Error

    Rate limit or quota exceeded

Response Fields

  • objectcopy_recommendation
  • recommendationsarray of object
  • recommendations[].rankinteger
  • recommendations[].textstring
  • recommendations[].message_typestring
  • recommendations[].origincomposed, writer, yours
  • recommendations[].scorenumber
  • recommendations[].expected_revenue_per_message_usdobject

    Nullable.

  • recommendations[].expected_revenue_per_message_usd.p10number
  • recommendations[].expected_revenue_per_message_usd.p50number
  • recommendations[].expected_revenue_per_message_usd.p90number
  • recommendations[].expected_ctrnumber

    Nullable.

  • recommendations[].segmentsinteger
  • recommendations[].featuresarray of string
  • recommendations[].driversarray of object
  • recommendations[].drivers[].factorstring
  • recommendations[].drivers[].effectnumber
  • recommendations[].drivers[].rowsinteger
  • recommendations[].history_weightnumber
  • recommendations[].notesarray of string
  • message_typesarray of object
  • evidencearray of object
  • blended_not_countedarray of object
  • historyobject
  • modelobject
  • caveatsarray of string

Errors

Every error has the same JSON shape, and request_id matches the X-Request-Id response header. Errors lists every code and what to do about it.

  • 400

    Invalid input

  • 401

    Missing, malformed, or revoked API key

  • 402

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429

    Rate limit or quota exceeded