Integrate install attribution and dynamic links into your mobile app with 2 HTTP API calls.
Base URL
https://api.linktrace.in
Your API Key
your-api-key(issued once you sign up)
Two API calls are all you need. Here is the full flow:
Call POST /api/v1/referral-links to create a unique traceable link. Attach it to a referrer (a user, a campaign, or a channel) by setting referrerIdentifier.
Your user or campaign distributes this link. When someone clicks it, LinkTrace records the referral data.
After a new user installs and signs up, call POST /api/v1/attributions with their userId. LinkTrace resolves which link they came from and returns the full referral data.
Call this endpoint from your app after a new user completes signup. Pass their unique identifier (userId) — this can be your internal user ID, device ID, or any stable identifier.
customPayload fields you set on the link are returned in the attribution response.| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| x-api-key | your-api-key | Yes |
{
"userId": "user_275"
}Copy this prompt and paste it into your AI coding tool. It includes your API key and full integration context — the assistant will ask the right questions and generate code tailored to your stack.
Generate a unique traceable link for a referrer or campaign. Share this link anywhere — in-app share sheets, social posts, email campaigns, or QR codes. Anyone who clicks this link and installs your app within the attribution window will be attributed to this referrer.
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| x-api-key | your-api-key | Yes |
{
"referrerIdentifier": "user_id_223",
"source": "home_tab",
"campaign": "in_app_referral",
"environment": "production",
"customPayload": {
"date": "15 Aug, 2025",
"cta": "share app pop up in home"
}
}val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{
\"userId\": \"user_275\"
}".toRequestBody(mediaType)
val request = Request.Builder()
.url("https://api.linktrace.in/api/v1/attributions")
.post(body)
.addHeader("Content-Type", "application/json")
.addHeader("x-api-key", "your-api-key")
.build()
val response = client.newCall(request).execute()Running into an issue with your integration? Send us an email — we respond within 24 hours on weekdays.
contact@linktrace.in