Integrate SoftChurn data into your applications with our REST API.
API access is available on the Scale plan. Generate your API key from Settings.
All API requests require an API key sent via the Authorization header.
Authorization: Bearer your_api_key_here
The API is rate-limited to 60 requests per minute per API key. Rate limit headers are included in every response:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per minute |
X-RateLimit-Remaining | Requests remaining in current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
/api/v1/account
Returns your account details, plan, and usage stats.
/api/v1/customers
Returns paginated list of tracked customers. Supports ?status= and ?q= filters.
/api/v1/customers/{id}
Returns details for a single tracked customer.
/api/v1/customers/{id}/events
Returns payment events for a specific customer.
/api/v1/customers/export
Returns customer data as a CSV file download.
/api/v1/campaigns
Returns active dunning campaigns with their status.
/api/v1/stats/monthly
Returns recovery and failure statistics for the current month.
/api/v1/webhooks/deliveries
Returns recent webhook delivery attempts and their status.
/api/v1/webhooks/test
Sends a test webhook event to your configured URL.
The API returns standard HTTP status codes. Error responses include a JSON body:
{
"error": true,
"message": "Rate limit exceeded. Try again in 42 seconds.",
"code": 429
}
| Code | Meaning |
|---|---|
| 200 | Success |
| 401 | Invalid or missing API key |
| 403 | Feature not available on your plan |
| 404 | Resource not found |
| 429 | Rate limit exceeded |
| 500 | Internal server error |