Endpoint
https://api.deeplink.invyto.in or your self-hosted URL).
Request
Send a JSON body with the following optional fields. The server will use request IP andUser-Agent when values are omitted.
| Field | Type | Required | Description |
|---|---|---|---|
platform | string | No | "android", "ios", or "web". Inferred from User-Agent if not set. |
referrer | string | No | Android: install referrer string (e.g. from Install Referrer API). Used to attribute the install to a link. |
linkId | string | No | DeepLink link ID if you already know which link to attribute (e.g. from deferred deep link flow). |
model | string | No | Device model. |
packageName | string | No | Android: app package name. |
browser | string | No | Browser name. Defaults to parsed User-Agent. |
userAgent | string | No | Full User-Agent. Defaults to request header. |
OSVersion | string | No | OS version. Defaults to parsed User-Agent. |
ipAddress | string | No | Client IP. Defaults to request IP. |
country | string | No | Country. |
state | string | No | State/region. |
city | string | No | City. |
deviceId | string | No | Optional device identifier. Defaults to model, referrer, or a fallback. |
Example request
Response
-
200 — Install recorded. Body format depends on attribution:
- Organic (no link attributed):
- Android with referrer (referrer string returned for your use):
- iOS (or when linkId is used) — UTM from the matched click:
- If you sent
linkId, the backend associates the install with that link; the response may still include UTM or a simple success payload depending on implementation.
- Organic (no link attributed):
-
500 — Server error. Response body:
{ "error": "Internal Server Error" }.
Attribution behavior
- Android — If you send
referrer, the backend can associate the install with a link that generated that referrer. The response may echo the referrer or return UTM derived from it. - iOS — There is no install referrer. The backend typically matches the install to a recent click (e.g. same IP within a time window) and returns that click’s UTM in the response.
- linkId — If your app already knows the link (e.g. from deferred deep link data), sending
linkIdensures the install is attributed to that link.

