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

ActionWhat it does
Create accountAdd a company to Gainsight PX, with its details and custom attributes.
Create userAdd a user to Gainsight PX, with their profile and custom attributes.
Delete accountDelete an account and every user in it.
Delete userDelete a user.
Get accountGet an account's details: plan, industry, users, health score, NPS and custom attributes.
Get engagementGet an engagement's name, kind, state and environments.
Get feature adoptionCount how many times a feature was used, and by how many users and accounts, over up to 7 days.
Get subscriptionGet your Gainsight PX subscription's name, time zone and products, with each product's tag key.
Get userGet a user's profile: name, email, account, visits, location and custom attributes.
Get user preferencesGet which guides, bots, product updates, surveys and tracking a user has turned on.
List accountsList the companies using your product, filtered by name, plan or when they were added.
List custom attributesList the user or account attributes you've set up, with their API names and types.
List custom eventsList the custom events your product recorded, newest first, by name, user or time.
List engagementsList your in-app dialogs, guides, sliders, surveys and emails, with their state.
List featuresList the features and modules you track in your product.
List segmentsList the segments your users and accounts are grouped into.
List survey responsesList users' answers to your in-app surveys, newest first, with scores and comments.
List tracked eventsList what users did in your product, newest first: page views, sessions, feature uses, segment matches, form submissions, engagement views, leads or email events.
List usersList 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 engagementStart an engagement so users see it, or pause it.
Stop or resume tracking a userHave Gainsight PX ignore everything a user does, or track them again.
Track custom eventRecord something a user did, such as Report exported, with details of your own, for use in Gainsight PX's analytics and engagements.
Update accountChange an account's details or custom attributes.
Update userChange a user's profile or custom attributes.
Update user preferencesTurn 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 IDaccount_idtextRequired
The account's ID, the one your product sends Gainsight PX.
NamenametextRequired
The account's name.
Productsproperty_keyslistRequired
The products the record belongs to.
Planplantext
The account's plan.
Industryindustrytext
The account's industry.
Websitewebsitetext
The account's website.
Employeesnumber_of_employeesnumber
How many people the company employs.At least 0.
Renewal daterenewal_datedate and time
When the account renews.
Salesforce account IDsfdc_idtext
The account's Salesforce account ID.
Parent group IDparent_group_idtext
An ID of your own that groups accounts together, such as a parent company's.
SIC codesic_codetext
The SIC code.
NAICS codenaics_codetext
The NAICS code.
D-U-N-S numberduns_numbertext
The D-U-N-S number.
Citycitytext
The city.
Statestatetext
The state or region.
Countrycountrytext
The country's name.
Postal codepostal_codetext
The postal code.
Custom attributescustom_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 IDidentify_idtextRequired
The user's ID, the one your product sends Gainsight PX when the user signs in.
Productsproperty_keyslistRequired
The products the record belongs to.
Emailemailtext
The user's email address.
First namefirst_nametext
The user's first name.
Last namelast_nametext
The user's last name.
Typeuser_typetext
What kind of person this is. Leave empty for a user.One of: USER, LEAD, VISITOR.
Accountaccount_idtext
The account the user belongs to.
Job titletitletext
The user's job title.
Roleroletext
The user's role in your product.
Phonephonetext
The user's phone number.
Gendergendertext
The user's gender.One of: MALE, FEMALE, OTHER.
Scorescorenumber
A score of your own for the user.
Signed upsign_up_datedate and time
When the user signed up for your product.
Salesforce contact IDsfdc_contact_idtext
The user's Salesforce contact ID.
Unsubscribed from all emailglobal_unsubscribetrue/false
Unsubscribe the user from every Gainsight PX email.
Citycitytext
The city.
Statestatetext
The state or region.
Countrycountrytext
The country's name.
Postal codepostal_codetext
The postal code.
Custom attributescustom_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

Accountaccount_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 IDidentify_idtextRequired
The user's ID, the one your product sends Gainsight PX when the user signs in.
Delete for goodhard_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

Accountaccount_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

Engagementengagement_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

Featurefeature_idtextRequired
The feature.
Fromsincedate and timeRequired
The start of the period, at most 7 days before To.
Tountildate and time
The end of the period. Leave empty for now.
Productproperty_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 IDidentify_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 IDidentify_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 containsnametext
Only accounts whose name contains this.
Planplantext
Only accounts on this plan.
Added sincecreated_afterdate and time
Only accounts added from this time on.
Other conditionsfiltertext
More conditions in Gainsight PX's filter form, separated by semicolons, such as plan==Gold;numberOfUsers>10.
Ordersorttext
The order.One of: -createDate (Newest first), createDate (Oldest first), -lastSeenDate (Most recently seen), -lastModifiedDate (Most recently changed), name (Name, A to Z).
How manypage_sizenumber
How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
Next pagescroll_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

Forrecord_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 nameevent_nametext
Only events with this name.
User IDidentify_idtext
Only this user's, by the ID your product sends Gainsight PX.
Fromsincedate and time
Only from this time on.
Tountildate and time
Only up to this time.
Ordersorttext
The order. Leave empty for newest first.One of: -date (Newest first), date (Oldest first).
How manypage_sizenumber
How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
Next pagescroll_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

Kindscontent_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 manypage_sizenumber
How many to return, up to 500. Leave empty for 200.From 1 to 500.
Pagepage_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

Productproperty_keytext
Only this product's features.
How manypage_sizenumber
How many to return, up to 200. Leave empty for 25.From 1 to 200.
Pagepage_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 manypage_sizenumber
How many to return, up to 200. Leave empty for 25.From 1 to 200.
Pagepage_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 typesurvey_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 IDidentify_idtext
Only this user's, by the ID your product sends Gainsight PX.
Accountaccount_idtext
Only this account's.
Fromsincedate and time
Only from this time on.
Tountildate and time
Only up to this time.
Ordersorttext
The order. Leave empty for newest first.One of: -date (Newest first), date (Oldest first).
How manypage_sizenumber
How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
Next pagescroll_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

Eventsevent_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 IDidentify_idtext
Only this user's, by the ID your product sends Gainsight PX.
Accountaccount_idtext
Only this account's. Not for identify calls, leads or email events.
Fromsincedate and time
Only from this time on.
Tountildate and time
Only up to this time.
Ordersorttext
The order. Leave empty for newest first.One of: -date (Newest first), date (Oldest first).
How manypage_sizenumber
How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
Next pagescroll_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

Emailemailtext
Only the user with this email address.
Accountaccount_idtext
Only this account's.
Typeuser_typetext
Only users of this kind.One of: USER, LEAD, VISITOR.
Added sincecreated_afterdate and time
Only users added from this time on.
Seen sinceseen_afterdate and time
Only users seen from this time on.
Other conditionsfiltertext
More conditions in Gainsight PX's filter form, separated by semicolons, such as plan==Gold;numberOfUsers>10.
Ordersorttext
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 manypage_sizenumber
How many to return, up to 1,000. Leave empty for 25.From 1 to 1000.
Next pagescroll_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

Engagementengagement_idtextRequired
The engagement.
ActionstatetextRequired
Start or pause it.One of: START, PAUSE.
Environmentsenvironmentslist
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 IDidentify_idtextRequired
The user's ID, the one your product sends Gainsight PX when the user signs in.
Track this usertracktrue/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 nameevent_nametextRequired
The event's name, such as Report exported.
User IDidentify_idtextRequired
The ID of the user who did it.
Productproperty_keytextRequired
The product it happened in.
Typeuser_typetext
What kind of person did it. Leave empty for a user.One of: USER, LEAD, VISITOR.
Accountaccount_idtext
The user's account.
Whendatedate and time
When it happened. Leave empty for now.
Detailsattributesobject
Details of your own, by name, such as format: PDF.
Page URLurltext
The page it happened on.
Referrerreferrertext
The page the user came from.
Session IDsession_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

Accountaccount_idtextRequired
The account's ID.
Namenametext
The account's name.
Productsproperty_keyslist
The products the record belongs to.
Planplantext
The account's plan.
Industryindustrytext
The account's industry.
Websitewebsitetext
The account's website.
Employeesnumber_of_employeesnumber
How many people the company employs.At least 0.
Renewal daterenewal_datedate and time
When the account renews.
Salesforce account IDsfdc_idtext
The account's Salesforce account ID.
Parent group IDparent_group_idtext
An ID of your own that groups accounts together, such as a parent company's.
SIC codesic_codetext
The SIC code.
NAICS codenaics_codetext
The NAICS code.
D-U-N-S numberduns_numbertext
The D-U-N-S number.
Citycitytext
The city.
Statestatetext
The state or region.
Countrycountrytext
The country's name.
Postal codepostal_codetext
The postal code.
Custom attributescustom_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 IDidentify_idtextRequired
The user's ID, the one your product sends Gainsight PX when the user signs in.
Productsproperty_keyslist
The products the record belongs to.
Emailemailtext
The user's email address.
First namefirst_nametext
The user's first name.
Last namelast_nametext
The user's last name.
Typeuser_typetext
What kind of person this is. Leave empty for a user.One of: USER, LEAD, VISITOR.
Accountaccount_idtext
The account the user belongs to.
Job titletitletext
The user's job title.
Roleroletext
The user's role in your product.
Phonephonetext
The user's phone number.
Gendergendertext
The user's gender.One of: MALE, FEMALE, OTHER.
Scorescorenumber
A score of your own for the user.
Signed upsign_up_datedate and time
When the user signed up for your product.
Salesforce contact IDsfdc_contact_idtext
The user's Salesforce contact ID.
Unsubscribed from all emailglobal_unsubscribetrue/false
Unsubscribe the user from every Gainsight PX email.
Citycitytext
The city.
Statestatetext
The state or region.
Countrycountrytext
The country's name.
Postal codepostal_codetext
The postal code.
Custom attributescustom_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 IDidentify_idtextRequired
The user's ID, the one your product sends Gainsight PX when the user signs in.
Guided toursguided_tourstrue/false
Whether the user gets guided tours.
Onboarding botonboarding_bottrue/false
Whether the user gets the onboarding bot.
Product updatesproduct_updatestrue/false
Whether the user gets product updates.
Surveyssurveystrue/false
Whether the user gets surveys.
Track email opens and clickstrack_email_analyticstrue/false
Whether opens and clicks in the user's emails are tracked.
Track usagetrack_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
  }
}

On this page