Share Links
Endpoints for retrieving the share links of a given user. Share links are organised by engagement medium and share medium. For background on how they work, see the Share Links Overview.
Returns a user's share links, organised by engagement medium and share medium. Use the optional engagementMedium and shareMedium query parameters to filter the response.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"
The ID of the account to look up
Filters share links by user.id.
Filters share urls by engagementMedium.
Filters share urls by shareMedium.
The ID of the program whose share links to return. Required — the API returns 400 if omitted.
47255A list of share urls
A user's share links, organised by engagement medium and share medium.
Bad request. programId is required but was not provided.
User/Account not found
Unexpected Error
GET /api/v1/{tenant_alias}/account/{accountId}/user/{userId}/shareurls?programId=47255 HTTP/1.1
Host: app.referralsaasquatch.com
Authorization: Basic username:password
Accept: */*
{
"shareLinks": {
"cleanShareLink": "https://share.impact.squatchtesting.com/mzbnEyE",
"EMAIL": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"MOBILE": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"EMBED": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"POPUP": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"HOSTED": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"UNKNOWN": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
}
}
}Same as Lookup a user's share URLs, but authenticated with a user JWT instead of an API key. Use this from client-side contexts such as the Mobile and Web SDKs.
A JWT for a given user. Used by the Mobile and Web SDKs and other client-side contexts via Open Endpoints.
Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"
The ID of the account to look up
Filters share links by user.id.
Filters share urls by engagementMedium.
Filters share urls by shareMedium.
The ID of the program whose share links to return. Required — the API returns 400 if omitted.
47255A list of share urls
A user's share links, organised by engagement medium and share medium.
Bad request. programId is required but was not provided.
Unauthorized
Endpoint disabled
Account not found
GET /api/v1/{tenant_alias}/open/account/{accountId}/user/{userId}/shareurls?programId=47255 HTTP/1.1
Host: app.referralsaasquatch.com
X-SaaSquatch-User-Token: YOUR_API_KEY
Accept: */*
{
"shareLinks": {
"cleanShareLink": "https://share.impact.squatchtesting.com/mzbnEyE",
"EMAIL": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"MOBILE": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"EMBED": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"POPUP": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"HOSTED": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
},
"UNKNOWN": {
"EMAIL": "https://share.impact.squatchtesting.com/mobnEyE",
"FACEBOOK": "https://share.impact.squatchtesting.com/m9bnEyE",
"PINTEREST": "https://share.impact.squatchtesting.com/RzbnEyE",
"TWITTER": "https://share.impact.squatchtesting.com/mMbnEyE",
"DIRECT": "https://share.impact.squatchtesting.com/m5bnEyE",
"WHATSAPP": "https://share.impact.squatchtesting.com/mFbnEyE",
"LINEMESSENGER": "https://share.impact.squatchtesting.com/mDbnEyE",
"SMS": "https://share.impact.squatchtesting.com/mabnEyE",
"FBMESSENGER": "https://share.impact.squatchtesting.com/mhbnEyE",
"LINKEDIN": "https://share.impact.squatchtesting.com/m7bnEyE",
"UNKNOWN": "https://share.impact.squatchtesting.com/mBbnEyE"
}
}
}Last updated
