Gainsight PX
App · 25 actions
Keep your product's users and accounts in Gainsight PX, track custom events, read page views, feature use, survey responses and engagements, start or pause engagements, and follow new users, accounts, events and survey responses.
Actions
| Action | What it does |
|---|---|
| Create account | Add a company to Gainsight PX, with its details and custom attributes. |
| Create user | Add a user to Gainsight PX, with their profile and custom attributes. |
| Delete account | Delete an account and every user in it. |
| Delete user | Delete a user. |
| Get account | Get an account's details: plan, industry, users, health score, NPS and custom attributes. |
| Get engagement | Get an engagement's name, kind, state and environments. |
| Get feature adoption | Count how many times a feature was used, and by how many users and accounts, over up to 7 days. |
| Get subscription | Get your Gainsight PX subscription's name, time zone and products, with each product's tag key. |
| Get user | Get a user's profile: name, email, account, visits, location and custom attributes. |
| Get user preferences | Get which guides, bots, product updates, surveys and tracking a user has turned on. |
| List accounts | List the companies using your product, filtered by name, plan or when they were added. |
| List custom attributes | List the user or account attributes you've set up, with their API names and types. |
| List custom events | List the custom events your product recorded, newest first, by name, user or time. |
| List engagements | List your in-app dialogs, guides, sliders, surveys and emails, with their state. |
| List features | List the features and modules you track in your product. |
| List segments | List the segments your users and accounts are grouped into. |
| List survey responses | List users' answers to your in-app surveys, newest first, with scores and comments. |
| List tracked events | List what users did in your product, newest first: page views, sessions, feature uses, segment matches, form submissions, engagement views, leads or email events. |
| List users | List the people using your product, newest first or in the order you choose, filtered by email, account, type or when they signed up or were last seen. |
| Start or pause engagement | Start an engagement so users see it, or pause it. |
| Stop or resume tracking a user | Have Gainsight PX ignore everything a user does, or track them again. |
| Track custom event | Record something a user did, such as Report exported, with details of your own, for use in Gainsight PX's analytics and engagements. |
| Update account | Change an account's details or custom attributes. |
| Update user | Change a user's profile or custom attributes. |
| Update user preferences | Turn a user's guided tours, onboarding bot, product updates, surveys or tracking on or off. |
Create account
Add a company to Gainsight PX, with its details and custom attributes.
Inputs
- Account ID
account_idtextRequired - The account's ID, the one your product sends Gainsight PX.
- Name
nametextRequired - The account's name.
- Products
property_keyslistRequired - The products the record belongs to.
- Plan
plantext - The account's plan.
- Industry
industrytext - The account's industry.
- Website
websitetext - The account's website.
- Employees
number_of_employeesnumber - How many people the company employs.At least 0.
- Renewal date
renewal_datedate and time - When the account renews.
- Salesforce account ID
sfdc_idtext - The account's Salesforce account ID.
- Parent group ID
parent_group_idtext - An ID of your own that groups accounts together, such as a parent company's.
- SIC code
sic_codetext - The SIC code.
- NAICS code
naics_codetext - The NAICS code.
- D-U-N-S number
duns_numbertext - The D-U-N-S number.
- City
citytext - The city.
- State
statetext - The state or region.
- Country
countrytext - The country's name.
- Postal code
postal_codetext - The postal code.
- Custom attributes
custom_attributesobject - Values for your custom account attributes, by their API names. List them with List custom attributes.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"createDate": 1,
"csm": "example",
"customAttributes": {},
"dunsNumber": "example",
"gsId": "example",
"healthScore": 1,
"id": "example",
"industry": "example",
"lastModifiedDate": 1,
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"naicsCode": "example",
"name": "example",
"nps": 1,
"numberOfEmployees": 1,
"numberOfUsers": 1,
"parentGroupId": "example",
"plan": "example",
"propertyKeys": [
"example"
],
"renewalDate": 1,
"sfdcId": "example",
"sicCode": "example",
"trackedSubscriptionId": "example",
"website": "example"
}
}Create user
Add a user to Gainsight PX, with their profile and custom attributes.
Inputs
- User ID
identify_idtextRequired - The user's ID, the one your product sends Gainsight PX when the user signs in.
- Products
property_keyslistRequired - The products the record belongs to.
- Email
emailtext - The user's email address.
- First name
first_nametext - The user's first name.
- Last name
last_nametext - The user's last name.
- Type
user_typetext - What kind of person this is. Leave empty for a user.One of:
USER,LEAD,VISITOR. - Account
account_idtext - The account the user belongs to.
- Job title
titletext - The user's job title.
- Role
roletext - The user's role in your product.
- Phone
phonetext - The user's phone number.
- Gender
gendertext - The user's gender.One of:
MALE,FEMALE,OTHER. - Score
scorenumber - A score of your own for the user.
- Signed up
sign_up_datedate and time - When the user signed up for your product.
- Salesforce contact ID
sfdc_contact_idtext - The user's Salesforce contact ID.
- Unsubscribed from all email
global_unsubscribetrue/false - Unsubscribe the user from every Gainsight PX email.
- City
citytext - The city.
- State
statetext - The state or region.
- Country
countrytext - The country's name.
- Postal code
postal_codetext - The postal code.
- Custom attributes
custom_attributesobject - Values for your custom user attributes, by their API names. List them with List custom attributes.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"accountId": "example",
"aptrinsicId": "example",
"createDate": 1,
"customAttributes": {},
"email": "example",
"firstName": "example",
"firstVisitDate": 1,
"gender": "MALE",
"globalId": "example",
"globalUnsubscribe": true,
"id": "example",
"identifyId": "example",
"lastInferredLocation": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"lastModifiedDate": 1,
"lastName": "example",
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"numberOfVisits": 1,
"phone": "example",
"propertyKeys": [
"example"
],
"role": "example",
"score": 1,
"sfdcContactId": "example",
"signUpDate": 1,
"subscriptionId": "example",
"title": "example",
"type": "USER"
}
}Delete account
Delete an account and every user in it.
Inputs
- Account
account_idtextRequired - The account's ID.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"deleted": true,
"id": "example"
}
}Delete user
Delete a user. Gainsight PX brings them back, with their history, if they're added again within 7 days, unless you delete them for good.
Inputs
- User ID
identify_idtextRequired - The user's ID, the one your product sends Gainsight PX when the user signs in.
- Delete for good
hard_deletetrue/false - Delete the user and their history for good, so they aren't brought back if added again.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"deleted": true,
"hardDelete": true,
"identifyId": "example"
}
}Get account
Get an account's details: plan, industry, users, health score, NPS and custom attributes.
Inputs
- Account
account_idtextRequired - The account's ID.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"createDate": 1,
"csm": "example",
"customAttributes": {},
"dunsNumber": "example",
"gsId": "example",
"healthScore": 1,
"id": "example",
"industry": "example",
"lastModifiedDate": 1,
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"naicsCode": "example",
"name": "example",
"nps": 1,
"numberOfEmployees": 1,
"numberOfUsers": 1,
"parentGroupId": "example",
"plan": "example",
"propertyKeys": [
"example"
],
"renewalDate": 1,
"sfdcId": "example",
"sicCode": "example",
"trackedSubscriptionId": "example",
"website": "example"
}
}Get engagement
Get an engagement's name, kind, state and environments.
Inputs
- Engagement
engagement_idtextRequired - The engagement.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"defaultLanguage": "example",
"description": "example",
"envs": [
"example"
],
"id": "example",
"name": "example",
"propertyKeys": [
"example"
],
"state": "example",
"translationState": "example",
"type": "example"
}
}Get feature adoption
Count how many times a feature was used, and by how many users and accounts, over up to 7 days.
Inputs
- Feature
feature_idtextRequired - The feature.
- From
sincedate and timeRequired - The start of the period, at most 7 days before To.
- To
untildate and time - The end of the period. Leave empty for now.
- Product
property_keytext - Only use in this product.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"dateRangeEnd": 1,
"dateRangeStart": 1,
"featureId": "example",
"featureName": "example",
"propertyKey": "example",
"totalEventCount": 1,
"uniqueAccountCount": 1,
"uniqueUserCount": 1
}
}Get subscription
Get your Gainsight PX subscription's name, time zone and products, with each product's tag key.
Inputs
None.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"description": "example",
"id": "example",
"name": "example",
"products": [
{
"description": "example",
"name": "example",
"productKeys": [
{
"channel": "example",
"productKey": "example",
"url": "example"
}
]
}
],
"timeZone": "example",
"website": "example"
}
}Get user
Get a user's profile: name, email, account, visits, location and custom attributes.
Inputs
- User ID
identify_idtextRequired - The user's ID, the one your product sends Gainsight PX when the user signs in.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"accountId": "example",
"aptrinsicId": "example",
"createDate": 1,
"customAttributes": {},
"email": "example",
"firstName": "example",
"firstVisitDate": 1,
"gender": "MALE",
"globalId": "example",
"globalUnsubscribe": true,
"id": "example",
"identifyId": "example",
"lastInferredLocation": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"lastModifiedDate": 1,
"lastName": "example",
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"numberOfVisits": 1,
"phone": "example",
"propertyKeys": [
"example"
],
"role": "example",
"score": 1,
"sfdcContactId": "example",
"signUpDate": 1,
"subscriptionId": "example",
"title": "example",
"type": "USER"
}
}Get user preferences
Get which guides, bots, product updates, surveys and tracking a user has turned on.
Inputs
- User ID
identify_idtextRequired - The user's ID, the one your product sends Gainsight PX when the user signs in.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"guidedTours": true,
"onboardingBot": true,
"productUpdates": true,
"surveys": true,
"trackEmailAnalytics": true,
"trackUsage": true
}
}List accounts
List the companies using your product, filtered by name, plan or when they were added.
Inputs
- Name contains
nametext - Only accounts whose name contains this.
- Plan
plantext - Only accounts on this plan.
- Added since
created_afterdate and time - Only accounts added from this time on.
- Other conditions
filtertext - More conditions in Gainsight PX's filter form, separated by semicolons, such as plan==Gold;numberOfUsers>10.
- Order
sorttext - The order.One of:
-createDate(Newest first),createDate(Oldest first),-lastSeenDate(Most recently seen),-lastModifiedDate(Most recently changed),name(Name, A to Z). - How many
page_sizenumber - How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
- Next page
scroll_idtext - The scroll ID the last page returned, to read the next page.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"accounts": [
{
"createDate": 1,
"csm": "example",
"customAttributes": {},
"dunsNumber": "example",
"gsId": "example",
"healthScore": 1,
"id": "example",
"industry": "example",
"lastModifiedDate": 1,
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"naicsCode": "example",
"name": "example",
"nps": 1,
"numberOfEmployees": 1,
"numberOfUsers": 1,
"parentGroupId": "example",
"plan": "example",
"propertyKeys": [
"example"
],
"renewalDate": 1,
"sfdcId": "example",
"sicCode": "example",
"trackedSubscriptionId": "example",
"website": "example"
}
],
"scrollId": "example",
"totalHits": 1
}
}List custom attributes
List the user or account attributes you've set up, with their API names and types.
Inputs
- For
record_typetextRequired - Users' attributes or accounts'.One of:
user(Users),account(Accounts).
Outputs
datalist- The response from Gainsight PX.
Example output
{
"data": [
{
"apiName": "example",
"createdDate": 1,
"defaultValue": "example",
"description": "example",
"id": "example",
"modifiedDate": 1,
"name": "example",
"origin": "example",
"state": "example",
"type": "example"
}
]
}List custom events
List the custom events your product recorded, newest first, by name, user or time.
Inputs
- Event name
event_nametext - Only events with this name.
- User ID
identify_idtext - Only this user's, by the ID your product sends Gainsight PX.
- From
sincedate and time - Only from this time on.
- To
untildate and time - Only up to this time.
- Order
sorttext - The order. Leave empty for newest first.One of:
-date(Newest first),date(Oldest first). - How many
page_sizenumber - How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
- Next page
scroll_idtext - The scroll ID the last page returned, to read the next page.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"customEvents": [
{
"accountId": "example",
"attributes": {},
"date": 1,
"eventId": "example",
"eventName": "example",
"eventType": "example",
"globalContext": {},
"identifyId": "example",
"propertyKey": "example",
"referrer": "example",
"remoteHost": "example",
"sessionId": "example",
"url": "example",
"userType": "example"
}
],
"scrollId": "example",
"totalHits": 1
}
}List engagements
List your in-app dialogs, guides, sliders, surveys and emails, with their state.
Inputs
- Kinds
content_typeslist - Only engagements of these kinds. Leave empty for all.One or more of:
IN_APP_DIALOG(Dialog),IN_APP_GUIDE(Guide),IN_APP_CAROUSEL(Slider),IN_APP_NOTIFICATION(Notification),OUT_BOUND_EMAIL(Email),IN_APP_NPS_SURVEY(NPS survey),IN_APP_CES_SURVEY(Customer effort (CES) survey),IN_APP_RATING_SURVEY(Rating survey),IN_APP_BOOLEAN_SURVEY(Yes or no survey),IN_APP_MULTIPLE_QUESTION_SURVEY(Multi-question survey). - How many
page_sizenumber - How many to return, up to 500. Leave empty for 200.From 1 to 500.
- Page
page_numbernumber - Which page to read, starting at 0.At least 0.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"engagements": [
{
"defaultLanguage": "example",
"description": "example",
"envs": [
"example"
],
"id": "example",
"name": "example",
"propertyKeys": [
"example"
],
"state": "example",
"translationState": "example",
"type": "example"
}
],
"isLastPage": true,
"pageNumber": 1
}
}List features
List the features and modules you track in your product.
Inputs
- Product
property_keytext - Only this product's features.
- How many
page_sizenumber - How many to return, up to 200. Leave empty for 25.From 1 to 200.
- Page
page_numbernumber - Which page to read, starting at 0.At least 0.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"features": [
{
"featureLabels": [
{
"color": "example",
"id": "example",
"name": "example"
}
],
"id": "example",
"name": "example",
"parentFeatureId": "example",
"propertyKey": "example",
"status": "example",
"type": "example"
}
],
"isLastPage": true,
"pageNumber": 1
}
}List segments
List the segments your users and accounts are grouped into.
Inputs
- How many
page_sizenumber - How many to return, up to 200. Leave empty for 25.From 1 to 200.
- Page
page_numbernumber - Which page to read, starting at 0.At least 0.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"isLastPage": true,
"pageNumber": 1,
"segments": [
{
"id": "example",
"name": "example"
}
]
}
}List survey responses
List users' answers to your in-app surveys, newest first, with scores and comments.
Inputs
- Survey type
survey_typetext - Only answers to surveys of this kind.One of:
IN_APP_SURVEY_NPS(NPS survey),IN_APP_SURVEY_CES(Customer effort (CES) survey),IN_APP_SURVEY_RATING(Rating survey),IN_APP_SURVEY_BOOLEAN(Yes or no survey),IN_APP_MULTIPLE_QUESTION_SURVEY(Multi-question survey). - User ID
identify_idtext - Only this user's, by the ID your product sends Gainsight PX.
- Account
account_idtext - Only this account's.
- From
sincedate and time - Only from this time on.
- To
untildate and time - Only up to this time.
- Order
sorttext - The order. Leave empty for newest first.One of:
-date(Newest first),date(Oldest first). - How many
page_sizenumber - How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
- Next page
scroll_idtext - The scroll ID the last page returned, to read the next page.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"results": [
{
"accountId": "example",
"comment": "example",
"contactMeAllowed": true,
"contentId": "example",
"contentType": "example",
"date": 1,
"engagementId": "example",
"engagementTrackType": "example",
"eventId": "example",
"eventType": "example",
"executionDate": 1,
"executionId": "example",
"globalContext": {},
"identifyId": "example",
"path": "example",
"propertyKey": "example",
"questionType": "example",
"score": 1,
"selectionIds": [
"example"
],
"sessionId": "example",
"surveyState": "example",
"userType": "example"
}
],
"scrollId": "example",
"totalHits": 1
}
}List tracked events
List what users did in your product, newest first: page views, sessions, feature uses, segment matches, form submissions, engagement views, leads or email events.
Inputs
- Events
event_typetextRequired - Which events.One of:
page_view(Page views),session(Sessions),feature_match(Feature uses),segment_match(Segment matches),form_submit(Form submissions),engagement_view(Engagement views and clicks),identify(Identify calls),lead(Leads),email(Email, A to Z). - User ID
identify_idtext - Only this user's, by the ID your product sends Gainsight PX.
- Account
account_idtext - Only this account's. Not for identify calls, leads or email events.
- From
sincedate and time - Only from this time on.
- To
untildate and time - Only up to this time.
- Order
sorttext - The order. Leave empty for newest first.One of:
-date(Newest first),date(Oldest first). - How many
page_sizenumber - How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
- Next page
scroll_idtext - The scroll ID the last page returned, to read the next page.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"events": [
{
"accountId": "example",
"contentType": "example",
"date": 1,
"email": "example",
"emailTrackType": "example",
"engagementId": "example",
"engagementTrackType": "example",
"eventId": "example",
"eventType": "example",
"featureId": "example",
"formData": {},
"globalContext": {},
"host": "example",
"identifyId": "example",
"inferredLocation": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"linkUrl": "example",
"pageTitle": "example",
"path": "example",
"propertyKey": "example",
"queryString": "example",
"referrer": "example",
"remoteHost": "example",
"segmentId": "example",
"sessionId": "example",
"userType": "example"
}
],
"scrollId": "example",
"totalHits": 1
}
}List users
List the people using your product, newest first or in the order you choose, filtered by email, account, type or when they signed up or were last seen.
Inputs
- Email
emailtext - Only the user with this email address.
- Account
account_idtext - Only this account's.
- Type
user_typetext - Only users of this kind.One of:
USER,LEAD,VISITOR. - Added since
created_afterdate and time - Only users added from this time on.
- Seen since
seen_afterdate and time - Only users seen from this time on.
- Other conditions
filtertext - More conditions in Gainsight PX's filter form, separated by semicolons, such as plan==Gold;numberOfUsers>10.
- Order
sorttext - The order.One of:
-createDate(Newest first),createDate(Oldest first),-lastSeenDate(Most recently seen),-lastModifiedDate(Most recently changed),lastName(Last name, A to Z),email(Email, A to Z). - How many
page_sizenumber - How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
- Next page
scroll_idtext - The scroll ID the last page returned, to read the next page.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"scrollId": "example",
"totalHits": 1,
"users": [
{
"accountId": "example",
"aptrinsicId": "example",
"createDate": 1,
"customAttributes": {},
"email": "example",
"firstName": "example",
"firstVisitDate": 1,
"gender": "MALE",
"globalId": "example",
"globalUnsubscribe": true,
"id": "example",
"identifyId": "example",
"lastInferredLocation": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"lastModifiedDate": 1,
"lastName": "example",
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"numberOfVisits": 1,
"phone": "example",
"propertyKeys": [
"example"
],
"role": "example",
"score": 1,
"sfdcContactId": "example",
"signUpDate": 1,
"subscriptionId": "example",
"title": "example",
"type": "USER"
}
]
}
}Start or pause engagement
Start an engagement so users see it, or pause it.
Inputs
- Engagement
engagement_idtextRequired - The engagement.
- Action
statetextRequired - Start or pause it.One of:
START,PAUSE. - Environments
environmentslist - When starting, where to start it. Leave empty for production.One or more of:
PRODUCTION,STAGE,QA,INTEGRATION.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"defaultLanguage": "example",
"description": "example",
"envs": [
"example"
],
"id": "example",
"name": "example",
"propertyKeys": [
"example"
],
"state": "example",
"translationState": "example",
"type": "example"
}
}Stop or resume tracking a user
Have Gainsight PX ignore everything a user does, or track them again.
Inputs
- User ID
identify_idtextRequired - The user's ID, the one your product sends Gainsight PX when the user signs in.
- Track this user
tracktrue/falseRequired - On to track the user, off to ignore everything they do.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"denied": true,
"identifyId": "example"
}
}Track custom event
Record something a user did, such as Report exported, with details of your own, for use in Gainsight PX's analytics and engagements.
Inputs
- Event name
event_nametextRequired - The event's name, such as Report exported.
- User ID
identify_idtextRequired - The ID of the user who did it.
- Product
property_keytextRequired - The product it happened in.
- Type
user_typetext - What kind of person did it. Leave empty for a user.One of:
USER,LEAD,VISITOR. - Account
account_idtext - The user's account.
- When
datedate and time - When it happened. Leave empty for now.
- Details
attributesobject - Details of your own, by name, such as format: PDF.
- Page URL
urltext - The page it happened on.
- Referrer
referrertext - The page the user came from.
- Session ID
session_idtext - The user's session in your product.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"accountId": "example",
"attributes": {},
"date": 1,
"eventId": "example",
"eventName": "example",
"eventType": "example",
"globalContext": {},
"identifyId": "example",
"propertyKey": "example",
"referrer": "example",
"remoteHost": "example",
"sessionId": "example",
"url": "example",
"userType": "example"
}
}Update account
Change an account's details or custom attributes. Fields left empty stay as they are.
Inputs
- Account
account_idtextRequired - The account's ID.
- Name
nametext - The account's name.
- Products
property_keyslist - The products the record belongs to.
- Plan
plantext - The account's plan.
- Industry
industrytext - The account's industry.
- Website
websitetext - The account's website.
- Employees
number_of_employeesnumber - How many people the company employs.At least 0.
- Renewal date
renewal_datedate and time - When the account renews.
- Salesforce account ID
sfdc_idtext - The account's Salesforce account ID.
- Parent group ID
parent_group_idtext - An ID of your own that groups accounts together, such as a parent company's.
- SIC code
sic_codetext - The SIC code.
- NAICS code
naics_codetext - The NAICS code.
- D-U-N-S number
duns_numbertext - The D-U-N-S number.
- City
citytext - The city.
- State
statetext - The state or region.
- Country
countrytext - The country's name.
- Postal code
postal_codetext - The postal code.
- Custom attributes
custom_attributesobject - Values for your custom account attributes, by their API names. List them with List custom attributes.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"createDate": 1,
"csm": "example",
"customAttributes": {},
"dunsNumber": "example",
"gsId": "example",
"healthScore": 1,
"id": "example",
"industry": "example",
"lastModifiedDate": 1,
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"naicsCode": "example",
"name": "example",
"nps": 1,
"numberOfEmployees": 1,
"numberOfUsers": 1,
"parentGroupId": "example",
"plan": "example",
"propertyKeys": [
"example"
],
"renewalDate": 1,
"sfdcId": "example",
"sicCode": "example",
"trackedSubscriptionId": "example",
"website": "example"
}
}Update user
Change a user's profile or custom attributes. Fields left empty stay as they are.
Inputs
- User ID
identify_idtextRequired - The user's ID, the one your product sends Gainsight PX when the user signs in.
- Products
property_keyslist - The products the record belongs to.
- Email
emailtext - The user's email address.
- First name
first_nametext - The user's first name.
- Last name
last_nametext - The user's last name.
- Type
user_typetext - What kind of person this is. Leave empty for a user.One of:
USER,LEAD,VISITOR. - Account
account_idtext - The account the user belongs to.
- Job title
titletext - The user's job title.
- Role
roletext - The user's role in your product.
- Phone
phonetext - The user's phone number.
- Gender
gendertext - The user's gender.One of:
MALE,FEMALE,OTHER. - Score
scorenumber - A score of your own for the user.
- Signed up
sign_up_datedate and time - When the user signed up for your product.
- Salesforce contact ID
sfdc_contact_idtext - The user's Salesforce contact ID.
- Unsubscribed from all email
global_unsubscribetrue/false - Unsubscribe the user from every Gainsight PX email.
- City
citytext - The city.
- State
statetext - The state or region.
- Country
countrytext - The country's name.
- Postal code
postal_codetext - The postal code.
- Custom attributes
custom_attributesobject - Values for your custom user attributes, by their API names. List them with List custom attributes.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"accountId": "example",
"aptrinsicId": "example",
"createDate": 1,
"customAttributes": {},
"email": "example",
"firstName": "example",
"firstVisitDate": 1,
"gender": "MALE",
"globalId": "example",
"globalUnsubscribe": true,
"id": "example",
"identifyId": "example",
"lastInferredLocation": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"lastModifiedDate": 1,
"lastName": "example",
"lastSeenDate": 1,
"location": {
"city": "example",
"continent": "example",
"countryCode": "example",
"countryName": "example",
"postalCode": "example",
"regionName": "example",
"stateCode": "example",
"stateName": "example",
"street": "example",
"timeZone": "example"
},
"numberOfVisits": 1,
"phone": "example",
"propertyKeys": [
"example"
],
"role": "example",
"score": 1,
"sfdcContactId": "example",
"signUpDate": 1,
"subscriptionId": "example",
"title": "example",
"type": "USER"
}
}Update user preferences
Turn a user's guided tours, onboarding bot, product updates, surveys or tracking on or off. Preferences left empty stay as they are.
Inputs
- User ID
identify_idtextRequired - The user's ID, the one your product sends Gainsight PX when the user signs in.
- Guided tours
guided_tourstrue/false - Whether the user gets guided tours.
- Onboarding bot
onboarding_bottrue/false - Whether the user gets the onboarding bot.
- Product updates
product_updatestrue/false - Whether the user gets product updates.
- Surveys
surveystrue/false - Whether the user gets surveys.
- Track email opens and clicks
track_email_analyticstrue/false - Whether opens and clicks in the user's emails are tracked.
- Track usage
track_usagetrue/false - Whether the user's use of your product is tracked.
Outputs
dataobject- The response from Gainsight PX.
Example output
{
"data": {
"guidedTours": true,
"onboardingBot": true,
"productUpdates": true,
"surveys": true,
"trackEmailAnalytics": true,
"trackUsage": true
}
}