Skip to main content
Gainsight Inc.

Generate API Access Key

IMPORTANT NOTE: Gainsight is upgrading Connectors 2.0 with Horizon Experience. This article applies to tenants which have been upgraded to the Horizon Experience for Connectors 2.0. If you are using Connectors 2.0 with the previous version, you can find the documentation here.

This article explains how Admins can generate the Gainsight API access key.

Admins can create only 1 Access key per org and it does not expire. Gainsight authenticates the REST API requests by verifying this access key and if the authentication succeeds, access to the Gainsight platform is granted to developers through REST APIs. 

You can reset the existing access key anytime, but the new access key should be replaced in the headers of all future API requests.

Overview

Gainsight API Access key is a unique access key used for authentication of the Gainsight REST API requests. Gainsight Admins can generate the API key and is consumed by the developers to pass the key in the request header “Access Key” for all the API requests to Gainsight.

Generate Access Key

To generate the Access key:

  1. Navigate to the Administration > Connectors 2.0 > Connections page.
  2. Click Create Connection. The Create Connection dialog appears.
  3. From the Connector dropdown list, select Gainsight API.
  4. Click Generate Access Key.

A new access key is generated that you can copy and use as authentication for all of the REST API requests to Gainsight

Create connection - GSAPI-SFDC.png

Edit Gainsight API Connection

Once the connection is established, Admins can edit the Gainsight API Connection to reset the existing API access key.

To reset the existing API access key:

  1. Click the Context Menu of the created Connection and select Edit Connection. The Edit Connection dialog appears.

    Edit Connection _SFDC.png
     
  2. Click Reset Access Key to generate a new access key.
  3. Click Yes on the confirmation message.

A new access key is generated that you can copy and use as authentication for all of the future REST API requests to Gainsight.

Edit Connection.png

Note: New access key should be replaced in the headers of all the future API requests. If it is not replaced, all of the future API requests to the specific Gainsight org will fail.

  • Was this article helpful?