Overview
The Retain API lets you send user and event data from your application. Use it to power churn prevention, health scores, and customer analytics.Endpoints
Flow
- Identify users when they sign up or when their profile changes.
- Track events as users interact with key features of your product.
Authentication
To authenticate, add anAuthorization header with the value Basic rk-xxxxxxxxx, where rk-xxxxxxxxx is your Project Token.
Response codes
Retain uses standard HTTP codes to indicate the success or failure of your requests. In general,2xx codes correspond to success, 4xx codes are for client errors (invalid request, auth, or resource not found), and 5xx codes are for server issues.
Check Errors for a comprehensive breakdown of all
possible API errors, including the response format and error codes.
Next steps
Authentication
Get and use your Project Token.
Identify
Identify users in Retain.