API overview
Churn Prevention
churn-prevention
Design cancel flows with exit surveys and dynamic save offers, set up failed-payment recovery, and run retention reviews.
Pricing & runtime
- Current price
- 25 Credits per run
- Timeout
- up to 1200s
- Brand Context
- Optional — pass a brand_context_id
Prices are calibrated against real run costs and may change — the credit_cost returned when creating a run is authoritative.
Input parameters
Pass these under the input object of POST /api/v1/runs.
| Key | Type | Required | Label & description |
|---|---|---|---|
| product_description | short_text | Required | ProductWhat the product is. |
| mode | select | Optional | ModeWhat to build or review.Options: Build cancel flow, Optimize existing flow, Dunning / failed payments, Retention review |
| churn_situation | long_text | Optional | Churn numbersYour own churn rate, subscriber count, MRR, current cancel behavior. |
| billing_platform | short_text | Optional | Billing setupProvider, intervals, pause/downgrade support. |
| usage_data | long_text | Optional | Usage & reasonsYour own activation metric and past cancellation reasons. |
| constraints | short_text | Optional | ConstraintsB2B/B2C, cancel-policy requirements, tone. |
| interaction_language | select | Optional | Report languageControls the language of the generated report.Options: English, Chinese |
Request example
Covers every required field. Optional fields follow the same pattern.
curl -X POST https://api.TODO-APP-DOMAIN/api/v1/runs \
-H "Authorization: Bearer $SUPAMARKETERS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"app_slug": "churn-prevention",
"input": {
"product_description": "example text"
}
}'What you get back
A 201 response returns run_no, credit_cost, stream_url and result_url (relative paths). Stream progress from stream_url and fetch the terminal result — summary and output — from result_url. Results stay available for the App's retention window (30 days by default).