/conversion
POSTConversion tracking endpoint. Records a post-install event for an install.
Overview#
Track conversion events (signups, purchases, etc.) that happen after install. Each event is stored on the install ID.
The SDK handles this automatically via trackConversion(). You typically don't need to call this endpoint directly.
Endpoint#
POST https://YOUR_APP_ID.mobana.ai/conversionRequest#
POST https://YOUR_APP_ID.mobana.ai/conversion
Content-Type: application/json
X-App-Key: YOUR_APP_KEY
{
"installId": "520e8400-c466-a554-40e0-0",
"name": "purchase",
"value": 49.99
}| Parameter | Type | Description |
|---|---|---|
installIdRequired | string | The same install ID used in the /find request. Links this conversion to the attribution. |
nameRequired | string | Conversion type name. Must be configured in your app settings in the Dashboard. |
value | number | Monetary value for revenue tracking (e.g., purchase amount). |
flowSessionId | string | Optional flow session ID from startFlow() result. Links this conversion to a specific flow presentation. |
timestamp | number | Unix timestamp in milliseconds. Used when sending queued offline events. Defaults to current time. |
With Flow Session
{
"installId": "520e8400-c466-a554-40e0-0",
"name": "purchase",
"value": 49.99,
"flowSessionId": "abc123-session-id",
"timestamp": 1706745600000
}Response#
{
"success": true
}This endpoint always returns { "success": true }, even for invalid conversion names or unconfigured types. This is intentional — conversion tracking should never block your app flow.
Invalid requests are logged server-side for debugging.
Configuration#
Conversion types must be configured in your app settings before they can be tracked:
- Go to Dashboard → Your App → Settings → Conversions
- Add conversion types (e.g., "signup", "purchase")
- Configure whether each type is repeatable or non-repeatable
Repeatable: Can be tracked multiple times per install (e.g., purchases)
Non-repeatable: Only counted once per install (e.g., signup)
Attribution Link#
Conversions are recorded for the install, including organic installs with no attribution match. The event is stored on installId and inherits campaign data when the install was attributed.
If no Install exists for that installId yet, the event is not stored. The response is still { "success": true }.
Offline Support#
The SDK queues conversions when offline and sends them when connection is restored. The timestamp field preserves the original event time for accurate analytics.