DocumentationInstall Attribution API

Install Attribution API

Asks Nohmo which campaign an app install came from. Send whatever identifiers the platform gave you; the response tells you how confident the match is.

POST /api/tracker/attribute/

bash
curl -X POST https://www.nohmo.in/api/tracker/attribute/ \
-H "Content-Type: application/json" \
-H "X-API-Key: pk_xxxx" \
-d '{
"deviceId": "a1b2c3d4...",
"platform": "android",
"installReferrer": "utm_source=google&utm_campaign=spring",
"gaid": "38400000-8cf0-11bd-b23e-10b96e40000d"
}'
FieldRequiredDescription
deviceIdThe installing device
platformios or android
installReferrerAndroid Play Install Referrer string — the strongest signal available
gaidGoogle Advertising ID (Android)
idfaIdentifier for Advertisers (iOS), only if the user granted tracking permission

Response

json
{
"success": true,
"data": {
"attributed": true,
"matchType": "referrer",
"source": "google",
"medium": "cpc",
"campaign": "spring",
"term": null,
"content": null
}
}

Note: attributed is false for an organic install. matchType tells you how it was matched — a deterministic referrer match is trustworthy, a probabilistic one is a best guess, so do not treat them as the same number in a report.

StatusMeaning
400Invalid JSON, or deviceId missing
401API key missing or invalid
404No device with that deviceId in this project