For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Deprecated
get

Deprecated. Use Lookup a user's share URLs instead.

Returns a flat object of share links for a user, with one property per share medium (shareLink, facebookShareLink, twitterShareLink, etc.) and nested objects per engagement medium.

Authorizations
AuthorizationstringRequired

Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.

Path parameters
tenant_aliasstringRequired

Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"

accountIdstringRequired

The ID of the account to look up

userIdstringRequired

Filters share links by user.id.

Responses
200

A list of share links

application/json

Deprecated flat-format share link response. Returned by the deprecated Lookup a user's share links endpoint. New integrations should use the Shareurls schema.

shareLinkstringOptional

The unique share link the user can refer their friends with.

facebookShareLinkstringOptional

The share link for Facebook.

twitterShareLinkstringOptional

The share link for Twitter.

emailShareLinkstringOptional

The share link for Email.

mobileShareLinkstringOptional

The share link for mobile devices.

mobileFacebookShareLinkstringOptional

The share link for Facebook on mobile devices.

mobileTwitterSharelinkstringOptional

The share link for Twitter on mobile devices.

mobileEmailShareLinkstringOptional

The share link for Email on mobile devices.

get/{tenant_alias}/account/{accountId}/user/{userId}/sharelinks

Lookup a user's share URLs

get

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.

Authorizations
AuthorizationstringRequired

Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.

Path parameters
tenant_aliasstringRequired

Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"

accountIdstringRequired

The ID of the account to look up

userIdstringRequired

Filters share links by user.id.

Query parameters
engagementMediumstring · enumOptional

Filters share urls by engagementMedium.

Possible values:
shareMediumstring · enumOptional

Filters share urls by shareMedium.

Possible values:
programIdstringRequired

The ID of the program whose share links to return. Required — the API returns 400 if omitted.

Example: 47255
Responses
200

A list of share urls

application/json

A user's share links, organised by engagement medium and share medium.

get/{tenant_alias}/account/{accountId}/user/{userId}/shareurls

Lookup a user's share URLs (Open Endpoint)

get

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.

Authorizations
X-SaaSquatch-User-TokenstringRequired

A JWT for a given user. Used by the Mobile and Web SDKs and other client-side contexts via Open Endpoints.

Path parameters
tenant_aliasstringRequired

Tenant being referenced. E.g. "aboih12h16t" or "test_abo912126tastastt"

accountIdstringRequired

The ID of the account to look up

userIdstringRequired

Filters share links by user.id.

Query parameters
engagementMediumstring · enumOptional

Filters share urls by engagementMedium.

Possible values:
shareMediumstring · enumOptional

Filters share urls by shareMedium.

Possible values:
programIdstringRequired

The ID of the program whose share links to return. Required — the API returns 400 if omitted.

Example: 47255
Responses
200

A list of share urls

application/json

A user's share links, organised by engagement medium and share medium.

get/{tenant_alias}/open/account/{accountId}/user/{userId}/shareurls

Last updated