API Reference
v1Connect any backend to Retake. Use this REST API if our SDKs don't support your language yet.
Authentication
Authenticate all requests by passing your API key in the header.
X-API-KeyHeader
Your Live API Key
rk_live_...The Endpoint
POST
https://retakeapi.com/api/v1/trackThis single endpoint handles everything: tracking intent, marking conversions, and identifying users. The action is determined by the event parameter.
bash
Event Types
1. Event: INTENT
Triggered when a user shows purchase intent (e.g. Abandoned Cart, Pricing View).
| Parameter | Type | Required | Description |
|---|---|---|---|
| event | string | Yes | Must be INTENT |
| type | string | Yes | E.g. cartpricingcheckout |
| userId | string | Yes | Unique user ID or Session ID |
| string | Cond. | Required if new user, or to update email. | |
| value | number | Opt. | Value of the cart/plan (e.g. 50.00) |
| items | array | Opt. | Array of product objects for email templates. |
2. Event: CONVERSION
Triggered after successful payment. Stops any scheduled recovery emails.
| Parameter | Type | Required | Description |
|---|---|---|---|
| event | string | Yes | Must be CONVERSION |
| userId | string | Yes | Must match the userId from the Intent event. |
| value | number | Yes | Final transaction value. |
| transactionId | string | Opt. | Payment provider's transaction ID (Stripe/Paddle). |
3. Event: IDENTIFY
Updates user profile (email, name) without triggering a workflow.
| Parameter | Type | Required | Description |
|---|---|---|---|
| event | string | Yes | Must be IDENTIFY |
| userId | string | Yes | User ID to update. |
| string | Opt. | New email address. | |
| name | string | Opt. | User's full name. |