User
API for managing users, including creation, lookup, and blocking.
Returns details of the personally identifiable information stored in the impact.com system for a specific user.
🚧 Warning! This method should only be used in connection with data protection and privacy compliance.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
The ID of the account.
The ID of the user.
User found
Full personally identifiable information for a user, including rewards, referrals, and share links. Only use in connection with data protection and privacy compliance.
The unique identifier for the user.
abc123The unique identifier of the account the user belongs to.
abc123The user's first name.
BobThe user's last name.
TestersonThe first initial of the user's last name.
TThe user's email address.
bob.testerson@example.comAn MD5 hash of the user's email address.
714ed06b2d5c95b93d499a3be731c19fURL of the user's profile image.
The cookie ID associated with this user.
abc123cookieThe ID of the user in the payment provider system.
pay_abc123The user's locale (e.g. en_US).
en_USThe user's ISO 3166-1 Alpha-2 country code (e.g. US).
USWhether this user can be referred by another user.
trueThe source of the user's referral.
UNKNOWNThe IP address the user was first seen from.
203.0.113.42The IP address the user was last seen from.
203.0.113.42The geographic location derived from firstSeenIP.
San Francisco, CA, USThe geographic location derived from lastSeenIP.
San Francisco, CA, USThe browser user agent string from the user's first session.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36The browser user agent string from the user's most recent session.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36Unix timestamp (milliseconds) when the user was created.
1774386824964Referral codes used to refer this user.
["NCC8IQ4ADTVDQAOA"]The segments this user belongs to.
User NOT found
curl -L \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/account/{accountId}/user/{userId}/pii' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'{
"id": "abc123",
"accountId": "abc123",
"firstName": "Bob",
"lastName": "Testerson",
"lastInitial": "T",
"email": "bob.testerson@example.com",
"emailHash": "714ed06b2d5c95b93d499a3be731c19f",
"imageUrl": "",
"cookieId": "abc123cookie",
"paymentProviderId": "pay_abc123",
"locale": "en_US",
"countryCode": "US",
"referable": true,
"referralSource": "UNKNOWN",
"referralCodes": {
"47255": "BOBTESTERSON"
},
"firstSeenIP": "203.0.113.42",
"lastSeenIP": "203.0.113.42",
"firstSeenIPLocation": "San Francisco, CA, US",
"lastSeenIPLocation": "San Francisco, CA, US",
"firstSeenUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"lastSeenUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"dateCreated": 1774386824964,
"customFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"programShareLinks": {
"ANY_ADDITIONAL_PROPERTY": {
"cleanShareLink": "https://share.impact.squatchtesting.com/mzbnEyE",
"UNKNOWN": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMAIL": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"MOBILE": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMBED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"POPUP": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"HOSTED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
}
}
},
"referredByCodes": [
"NCC8IQ4ADTVDQAOA"
],
"referredByReferrals": [
{
"id": "ref_abc123",
"moderationStatus": "ACTIONED",
"dateReferralStarted": 1774386824964,
"dateReferralPaid": 1,
"dateReferralEnded": 1,
"dateModerated": 1,
"referredModerationStatus": "APPROVED",
"referrerModerationStatus": "APPROVED",
"programId": "47255",
"referredReward": {},
"referrerReward": {},
"publicMeta": {},
"privateMeta": {},
"fraudSignals": {}
}
],
"rewards": {
"totalCount": 1,
"data": [
{}
]
},
"rewardBalances": [
{
"type": "CREDIT",
"unit": "CENTS",
"count": 1,
"totalAssignedCredit": 100,
"totalRedeemedCredit": 0,
"totalPendingCredit": 0,
"totalExpiredCredit": 0,
"totalCancelledCredit": 0,
"prettyAssignedCredit": "$1.00",
"prettyRedeemedCredit": "$0.00",
"prettyPendingCredit": "$0.00",
"value": 100,
"prettyValue": "$1.00"
}
],
"referrals": {
"totalCount": 0,
"data": [
{}
]
},
"segments": [
"text"
]
}Block a user from making successful referrals based upon their user and account id.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
The ID of the account.
The ID of the user.
User blocked successfully
User account NOT found
curl -L \
--request POST \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/account/{accountId}/user/{userId}/block' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'{}Unblock a user based upon their user and account id.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
The ID of the account.
The ID of the user.
User unblocked successfully
User account NOT found
curl -L \
--request POST \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/account/{accountId}/user/{userId}/unblock' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'{}List all of the users in your Advocate referral programs. This method supports pagination and search queries.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
A search query that can be used to filter users by email, name or ID.
A limit on the number of results returned.
10When included, offsets the first result returned in the list.
0Users found
curl -L \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/users' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'Users found
{
"count": 1,
"totalCount": 1,
"users": [
{
"id": "abc123",
"accountId": "abc123",
"firstName": "Bob",
"lastName": "Testerson",
"lastInitial": "T",
"email": "bob.testerson@example.com",
"emailHash": "714ed06b2d5c95b93d499a3be731c19f",
"imageUrl": "",
"referralCode": "CFMVQHNUEU2AWWDO",
"cookieId": "abc123cookie",
"paymentProviderId": "pay_abc123",
"locale": "en_US",
"countryCode": "US",
"referralSource": "DIRECT",
"firstSeenIP": "203.0.113.42",
"lastSeenIP": "203.0.113.42",
"dateCreated": 1774386824964,
"dateBlocked": 1779871222634,
"shareLinks": {
"shareLink": "https://share.impact.squatchtesting.com/mvbnEye",
"facebookShareLink": "https://share.impact.squatchtesting.com/mmbnEye",
"twitterShareLink": "https://share.impact.squatchtesting.com/mRbnEye",
"emailShareLink": "https://share.impact.squatchtesting.com/mLbnEye",
"linkedinShareLink": "https://share.impact.squatchtesting.com/m6bnEye",
"mobileShareLink": "https://share.impact.squatchtesting.com/mebnEye",
"mobileFacebookShareLink": "https://share.impact.squatchtesting.com/mnbnEye",
"mobileTwitterShareLink": "https://share.impact.squatchtesting.com/mCbnEye",
"mobileEmailShareLink": "https://share.impact.squatchtesting.com/mEbnEye",
"EMBED": {
"shareLink": "https://share.impact.squatchtesting.com/mvbnEye",
"facebookShareLink": "https://share.impact.squatchtesting.com/mmbnEye",
"twitterShareLink": "https://share.impact.squatchtesting.com/mRbnEye",
"emailShareLink": "https://share.impact.squatchtesting.com/mLbnEye",
"linkedinShareLink": "https://share.impact.squatchtesting.com/m6bnEye"
},
"POPUP": {
"shareLink": "https://share.impact.squatchtesting.com/mvbnEye",
"facebookShareLink": "https://share.impact.squatchtesting.com/mmbnEye",
"twitterShareLink": "https://share.impact.squatchtesting.com/mRbnEye",
"emailShareLink": "https://share.impact.squatchtesting.com/mLbnEye",
"linkedinShareLink": "https://share.impact.squatchtesting.com/m6bnEye"
},
"HOSTED": {
"shareLink": "https://share.impact.squatchtesting.com/mvbnEye",
"facebookShareLink": "https://share.impact.squatchtesting.com/mmbnEye",
"twitterShareLink": "https://share.impact.squatchtesting.com/mRbnEye",
"emailShareLink": "https://share.impact.squatchtesting.com/mLbnEye",
"linkedinShareLink": "https://share.impact.squatchtesting.com/m6bnEye"
},
"MOBILE": {
"shareLink": "https://share.impact.squatchtesting.com/mvbnEye",
"facebookShareLink": "https://share.impact.squatchtesting.com/mmbnEye",
"twitterShareLink": "https://share.impact.squatchtesting.com/mRbnEye",
"emailShareLink": "https://share.impact.squatchtesting.com/mLbnEye",
"linkedinShareLink": "https://share.impact.squatchtesting.com/m6bnEye"
},
"EMAIL": {
"shareLink": "https://share.impact.squatchtesting.com/mvbnEye",
"facebookShareLink": "https://share.impact.squatchtesting.com/mmbnEye",
"twitterShareLink": "https://share.impact.squatchtesting.com/mRbnEye",
"emailShareLink": "https://share.impact.squatchtesting.com/mLbnEye",
"linkedinShareLink": "https://share.impact.squatchtesting.com/m6bnEye"
}
}
}
]
}This method looks up a user based on their id and returns their personal information including sharelinks. This endpoint requires authentication via a write token or API credentials.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
The ID of the account.
The ID of the user.
The fields to be included in the response. Cannot coexist with extraFields.
The fields to be included in the response in addition to all the default fields. Cannot coexist with fields.
User found
A user object returned by open endpoints. Includes program share links and custom fields.
The unique identifier for the user.
abc123The unique identifier of the account the user belongs to.
abc123The user's first name.
BobThe user's last name.
TestersonThe user's email address.
bob.testerson@example.comURL of the user's profile image.
The cookie ID associated with this user.
abc123cookieThe user's locale (e.g. en_US).
en_USThe user's ISO 3166-1 Alpha-2 country code (e.g. US).
USWhether this user can be referred by another user.
trueThe IP address the user was first seen from.
203.0.113.42The IP address the user was last seen from.
203.0.113.42Unix timestamp (milliseconds) when the user was created.
1774386824964The segments this user belongs to.
Referral codes used to refer this user.
["NCC8IQ4ADTVDQAOA"]Unauthorized
Forbidden/Endpoint Disabled
Not Found
curl -L \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/open/account/{accountId}/user/{userId}' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'{
"id": "abc123",
"accountId": "abc123",
"firstName": "Bob",
"lastName": "Testerson",
"email": "bob.testerson@example.com",
"imageUrl": "",
"cookieId": "abc123cookie",
"locale": "en_US",
"countryCode": "US",
"referable": true,
"firstSeenIP": "203.0.113.42",
"lastSeenIP": "203.0.113.42",
"dateCreated": 1774386824964,
"referralCodes": {
"47255": "BOBTESTERSON"
},
"programShareLinks": {
"ANY_ADDITIONAL_PROPERTY": {
"cleanShareLink": "https://share.impact.squatchtesting.com/mzbnEyE",
"UNKNOWN": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMAIL": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"MOBILE": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMBED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"POPUP": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"HOSTED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
}
}
},
"customFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"segments": [
"text"
],
"referredByCodes": [
"NCC8IQ4ADTVDQAOA"
]
}This method creates a user and an account and returns the user object representing that newly created user/account. Because this call creates a user, it requires either a write token or an API key.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
The ID of the account.
The ID of the user.
The fields to be included in the response. Cannot coexist with extraFields.
The fields to be included in the response in addition to all the default fields. Cannot coexist with fields.
An object describing an individual user submitted to an open endpoint when you want to create or update a user.
The unique identifier provided for this user. Use the user's email as their user Id.
bob.testerson@example.comThe unique identifier of the account. Value must match id. Use the user's email as their account Id.
bob.testerson@example.comThe user's first name.
BobThe user's last name.
TestersonThe email address provided for the user.
bob.testerson@example.comFlag to determine whether a user is able to be referred.
The user's locale, used for Internationalization (e.g., en_US).
en_USThe user's ISO 3166-1 Alpha-2 country code (e.g., US).
USThe timestamp of when a user's W-9 tax form was submitted.
An array of referral codes used to refer this account.
The Base64URL encoded attribution cookie values.
eyJjb29raWVJZCI6ImFiYzEyMyJ9A list of operations for adding and removing a user from segments (e.g., ["segment1", "~segment2"]).
Information about the newly created user
A user object returned by open endpoints. Includes program share links and custom fields.
The unique identifier for the user.
abc123The unique identifier of the account the user belongs to.
abc123The user's first name.
BobThe user's last name.
TestersonThe user's email address.
bob.testerson@example.comURL of the user's profile image.
The cookie ID associated with this user.
abc123cookieThe user's locale (e.g. en_US).
en_USThe user's ISO 3166-1 Alpha-2 country code (e.g. US).
USWhether this user can be referred by another user.
trueThe IP address the user was first seen from.
203.0.113.42The IP address the user was last seen from.
203.0.113.42Unix timestamp (milliseconds) when the user was created.
1774386824964The segments this user belongs to.
Referral codes used to refer this user.
["NCC8IQ4ADTVDQAOA"]Forbidden/Endpoint Disabled
curl -L \
--request POST \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/open/account/{accountId}/user/{userId}' \
--user '{AccountSID}:{AuthToken}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*'{
"id": "abc123",
"accountId": "abc123",
"firstName": "Bob",
"lastName": "Testerson",
"email": "bob.testerson@example.com",
"imageUrl": "",
"cookieId": "abc123cookie",
"locale": "en_US",
"countryCode": "US",
"referable": true,
"firstSeenIP": "203.0.113.42",
"lastSeenIP": "203.0.113.42",
"dateCreated": 1774386824964,
"referralCodes": {
"47255": "BOBTESTERSON"
},
"programShareLinks": {
"ANY_ADDITIONAL_PROPERTY": {
"cleanShareLink": "https://share.impact.squatchtesting.com/mzbnEyE",
"UNKNOWN": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMAIL": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"MOBILE": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMBED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"POPUP": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"HOSTED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
}
}
},
"customFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"segments": [
"text"
],
"referredByCodes": [
"NCC8IQ4ADTVDQAOA"
]
}This method updates/creates a user and an account and returns the user object representing that newly created user/account. Because this call creates a user, it requires either a write token or an API key.
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
The ID of the account.
The ID of the user.
The fields to be included in the response. Cannot coexist with extraFields.
The fields to be included in the response in addition to all the default fields. Cannot coexist with fields.
An object describing an individual user submitted to an open endpoint when you want to create or update a user.
The unique identifier provided for this user. Use the user's email as their user Id.
bob.testerson@example.comThe unique identifier of the account. Value must match id. Use the user's email as their account Id.
bob.testerson@example.comThe user's first name.
BobThe user's last name.
TestersonThe email address provided for the user.
bob.testerson@example.comFlag to determine whether a user is able to be referred.
The user's locale, used for Internationalization (e.g., en_US).
en_USThe user's ISO 3166-1 Alpha-2 country code (e.g., US).
USThe timestamp of when a user's W-9 tax form was submitted.
An array of referral codes used to refer this account.
The Base64URL encoded attribution cookie values.
eyJjb29raWVJZCI6ImFiYzEyMyJ9A list of operations for adding and removing a user from segments (e.g., ["segment1", "~segment2"]).
Information about the upserted user
A user object returned by open endpoints. Includes program share links and custom fields.
The unique identifier for the user.
abc123The unique identifier of the account the user belongs to.
abc123The user's first name.
BobThe user's last name.
TestersonThe user's email address.
bob.testerson@example.comURL of the user's profile image.
The cookie ID associated with this user.
abc123cookieThe user's locale (e.g. en_US).
en_USThe user's ISO 3166-1 Alpha-2 country code (e.g. US).
USWhether this user can be referred by another user.
trueThe IP address the user was first seen from.
203.0.113.42The IP address the user was last seen from.
203.0.113.42Unix timestamp (milliseconds) when the user was created.
1774386824964The segments this user belongs to.
Referral codes used to refer this user.
["NCC8IQ4ADTVDQAOA"]Forbidden/Endpoint Disabled
curl -L \
--request PUT \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/open/account/{accountId}/user/{userId}' \
--user '{AccountSID}:{AuthToken}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*'{
"id": "abc123",
"accountId": "abc123",
"firstName": "Bob",
"lastName": "Testerson",
"email": "bob.testerson@example.com",
"imageUrl": "",
"cookieId": "abc123cookie",
"locale": "en_US",
"countryCode": "US",
"referable": true,
"firstSeenIP": "203.0.113.42",
"lastSeenIP": "203.0.113.42",
"dateCreated": 1774386824964,
"referralCodes": {
"47255": "BOBTESTERSON"
},
"programShareLinks": {
"ANY_ADDITIONAL_PROPERTY": {
"cleanShareLink": "https://share.impact.squatchtesting.com/mzbnEyE",
"UNKNOWN": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMAIL": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"MOBILE": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"EMBED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"POPUP": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
},
"HOSTED": {
"ANY_ADDITIONAL_PROPERTY": "https://example.com"
}
}
},
"customFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"segments": [
"text"
],
"referredByCodes": [
"NCC8IQ4ADTVDQAOA"
]
}Delete a user in your impact.com project. By default this endpoint only deletes a User on an Account (and not the Account itself).
Authorize your requests using a tenant's API Key. Use this method only in server-to-server interactions.
Tenant being referenced. E.g. "aboih12h16t"
The ID of the account.
The ID of the user.
Do not track this user (this user cannot be re-registered on the same account).
Do not delete accounts when all the users in the account are deleted.
User successfully deleted
No content
Not Found
curl -L \
--request DELETE \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/open/account/{accountId}/user/{userId}' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'No content
Looks up a user based upon their ReferralCode and returns their personal information. This is an Open Endpoint and disabled by default.
Tenant being referenced. E.g. "aboih12h16t"
The code with which to lookup the user.
Found user
Minimal user information returned when looking up a user by referral code from the open endpoint.
The unique identifier for the user.
abc123The unique identifier of the account the user belongs to.
abc123The user's first name.
BobThe first initial of the user's last name.
TThe user's primary referral code.
CFMVQHNUEU2AWWDOURL of the user's profile image.
Forbidden/Endpoint Disabled
Not Found
curl -L \
--url 'https://app.referralsaasquatch.com/api/v1/{tenant_alias}/open/user' \
--user '{AccountSID}:{AuthToken}' \
--header 'Accept: */*'{
"id": "abc123",
"accountId": "abc123",
"firstName": "Bob",
"lastInitial": "T",
"referralCode": "CFMVQHNUEU2AWWDO",
"imageUrl": ""
}Last updated
