Churn
Acknowledge Churn Alert
Mark a churn risk alert as acknowledged by your team.
POST
/
v1
/
churn
/
alerts
/
{id}
/
ack
Acknowledge a churn alert
curl --request POST \
--url https://billing.example.com/v1/churn/alerts/{id}/ack \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/churn/alerts/{id}/ack"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/churn/alerts/{id}/ack', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/churn/alerts/{id}/ack",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/churn/alerts/{id}/ack"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://billing.example.com/v1/churn/alerts/{id}/ack")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/churn/alerts/{id}/ack")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "acknowledged"
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier of the churn alert (e.g., alert_6a5b4c3d2e1f0987). |
Example Request
curl -X POST https://api.recurso.dev/v1/churn/alerts/alert_6a5b4c3d2e1f0987/ack \
-H "Authorization: Bearer rsk_live_xxx" \
-H "Content-Type: application/json"
Response
Returns the updated churn alert object with theacknowledged_at timestamp populated.
{
"id": "alert_6a5b4c3d2e1f0987",
"object": "churn_alert",
"type": "churn_risk_high",
"customer_id": "cust_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"customer_name": "Pinnacle Digital Solutions",
"score": 0.91,
"risk_factors": [
"Subscription canceled and reactivated twice in 60 days",
"4 failed payment attempts in last 30 days",
"Support ticket volume increased 150% month-over-month"
],
"acknowledged_at": "2026-06-23T14:10:00Z",
"created_at": "2026-06-23T06:00:00Z"
}
Acknowledging an alert is idempotent. Calling this endpoint on an already-acknowledged alert returns the existing
acknowledged_at timestamp without modification.Use the Get Churn Alerts endpoint with
acknowledged=false to retrieve only alerts that still need review.⌘I
Acknowledge a churn alert
curl --request POST \
--url https://billing.example.com/v1/churn/alerts/{id}/ack \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/churn/alerts/{id}/ack"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/churn/alerts/{id}/ack', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/churn/alerts/{id}/ack",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/churn/alerts/{id}/ack"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://billing.example.com/v1/churn/alerts/{id}/ack")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/churn/alerts/{id}/ack")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "acknowledged"
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}