DocumentationInvite Link API

Invite Link API

Mints a short attribution link for an "invite a friend" share, so installs coming from it are attributed back to the campaign.

POST /api/tracker/invite-link/

bash
curl -X POST https://www.nohmo.in/api/tracker/invite-link/ \
-H "Content-Type: application/json" \
-H "X-API-Key: pk_xxxx" \
-d '{
"source": "referral",
"campaign": "invite-a-friend",
"medium": "share",
"content": "user_42"
}'
FieldRequiredDescription
sourceutm_source. Defaults to referral
mediumutm_medium
campaignutm_campaign
contentutm_content — a good place for the referring user id

Response

json
{ "shortCode": "aB3xY9z" }

Note: This endpoint returns a bare object, not the { success, data } envelope the other endpoints use — read shortCode from the top level. The full link is https://www.nohmo.in/l/<shortCode>. The same UTM combination always returns the same code, so a user sharing repeatedly never creates duplicate links.