--- title: "Gainsight Bulk API" slug: "gainsight-bulk-api" updated: 2026-11-23T12:30:49Z published: 2026-11-23T12:30:49Z canonical: "support.gainsight.com/gainsight-bulk-api" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Gainsight Bulk API Gainsight NXT This article explains Gainsight admins through the process of creating a connection in the Gainsight Bulk API and configure a data job to generate a cURL command. This command is used to load data into the target Gainsight object from the source CSV file, as configured in the data job. **Note:** Data cannot be loaded into the Gainsight User and Person object model using Gainsight Bulk API. A walkthrough of this article helps Admins to: - Create a Bulk API connection. - Create a Job. - Ingest data into the Gainsight objects from a CSV file. ## Overview Gainsight Bulk API is a channel that loads data into Gainsight using the cURL commands. Customers may want to load data from an external system into Gainsight through a CSV file downloaded from the external system into the local machine. Gainsight Admins can set up the required configurations in the Gainsight Bulk API and share the output cURL command with the developer, who can integrate the command with any application. As configured, the data is loaded directly into Gainsight from the local machine, with an action in the application to which the cURL command is integrated with. Following are the benefits of using the Gainsight Bulk API: - Job creation and maintenance is easy. - Data import into standard objects is available. - Field Mapping available in the UI. - Ability to set up Data import Lookup with multiple field mapping. - Update Keys functionality for Update/Upsert operations. - Notification emails for Success and Failure of data import. - Track in detail Execution and Update Activities. ## Create a Bulk API Connection To create a Connection: 1. Navigate to ***Administration >* Connectors 2.0 > Connections**. 2. Click **Create Connection**. The *Create Connection* dialog appears. 3. From the **Connector** dropdown list, select **GS Bulk API**. 4. **Name of Connection**: Enter the name of the connection. 5. From the **Access Key** dropdown, select **Yes**. 6. Select the **Enforce Trusted IP Ranges** checkbox. 7. *(Optional)* Select the **Additional IP** **Ranges** checkbox to add additional IPs. 8. Click **Generate Access Key**. A new access key is generated. If you want to reset the access key at any time, click the **Generate Access Key**. 9. Copy the access key and save it to use in the *cUrl API* section. **Note:** The cURL command can only be executed from an IP address included in the Allowed IP Ranges configured for the connection. If you share the cURL command with a developer, ensure their IP address or CIDR range is added 10. Click **Save**. **IMPORTANT**: The system allows users to create one connection per org. Under one connection, admins can create multiple Jobs to ingest data into objects. **Limitations:** The limits to the Bulk API jobs executions, as follows: - Bulk API limit per hour for a connection: 10 - Bulk API limit per day for a connection: 100 - The general max file size limit is 80 MB. ![Bulk API Connection with Trusted IP range](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Bulk_API_Connection.jpg?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=ft821LGbgYhU5F06%2Blx10as32%2FYOV75jTg2QEsgSxJs%3D) ## Create a Job Once the connection is established, you can create as many Jobs as you need. To create a Job: 1. Navigate to the **Jobs** page. 2. Click **Create Job**. the *Create Job* dialog appears. 3. In the **Name of the Job** textbox, enter the *Job* Name. 4. Click **Next**. The **Job Preparation** page appears. 5. From the **Data Source** dropdown list, select the required *GS Bulk API* connection. The following sections will be loaded on the *Preparation* page: - Jobs Details - Field Mappings - cURL API [Embedded content](https://player.vimeo.com/video/452470752) ### Job Details The Job Details section displays the following information: 1. **Connection**: Displays the name of the connection. 2. **Connector**: Displays the connector name. 3. **Job Name**: Enter a unique Job name. 4. **Notification recipients**: In the Notification recipients, populate following information: - **Success Recipients**: If a job has partial/full data import success, a success notification email is sent to the email address entered here. - **Failure Recipients**: When all records fail to import, a failure notification email is sent to the email address entered here. **Note:** Multiple emails can be added into the recipient list separated by commas. 5. Click **Save.** **Note:** System will validate for any job with the same name. If it finds a duplicate job name, it shows an error *Job name already exists*. Always assign a unique job name. [Embedded content](https://player.vimeo.com/video/452471102) ### Ingest Data into Gainsight Objects from a CSV file To complete the job creation process, mapping between the CSV columns and the Gainsight object fields is necessary. In this example, records are ingested from the CSV file *CompanyDetails.csv* into the Company object. Records in the CSV file with the headers *Name, Industry, Employees, Original Contract Date*, *Renewal Date, ARR, CSMFirstName and CSMLastName* are shown below as an example: **Note**: The names, records, and Access Key used in this document are just for reference only. ![CSV details.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/CSV_details.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=n%2FtZUdHWUAICIbqaU0d0yJ0jW770S0JAJvaMcPGircE%3D) **Notes**: - Ensure that the CSV file name does not contain any spaces. - CSM First Name and Last Name are added here to use them in Derived Mappings. Make sure that the formats of the Date and DateTime values in the CSV file are supported in Gainsight. For the list of supported formats in Gainsight, refer to the *Basic Operations in Data Management* in the **Additional Resource** section at the end of this article. Admins can create multiple jobs to ingest data into the objects. ### Field Mapping Click the **Field Mapping** to expand the section and enter the following details: 1. **Target Object:** From the dropdown list of *Target Object*, select the target object into which you want to ingest data. For example, select Company Object. Once a job is saved with a specific *Target Object*, it cannot be changed before ingesting data. 2. Click **BROWSE** to select a CSV file from the local machine. The CSV file in this section is uploaded to select mapping between CSV headers and Gainsight object fields. **Notes:** - Make sure that the CSV file has headers. - CSV files having a maximum size of 1MB can be loaded. 3. **Data Load Operation**: Select the required *Data Load Operation*. Either select Upsert, Update, or Insert for the respective operation. 4. For *Upsert and Update*, click the **+** icon to set key fields that can be used as identifiers. 5. **CSV Properties**: Select appropriate CSV Properties. Recommended CSV properties: 1. Character Encoding: *UTF-8.* 2. Separator: , (*Comma)* 3. Quote Char: “ (Double Quote) 4. Escape Char: Backslash 5. Header Line: 1 (Mandatory) 6. Multi-select separator: ; (Semicolon) **Notes**: - Gainsight Bulk API always supports the files which are encoding with *UTF-8* only. - A separator is used to separate the values of different fields in a CSV. User should use the same separator in the job configuration which is used in the CSV file to upload. By default, (*comma*) is selected as separator but users can change it as required. - Quote Character is used to import a value (along with special characters) specified in the Quotation while importing data. It is recommended to use the same Quote Character in the job configuration which is used in the CSV file to upload. By default, *Double Quote* is selected in the job configuration but users can change to *Single Quote* as required. - Escape character is used to include a special character in the value. By default, *Backslash* is used as Escape Character before a special character in the value. It is recommended to use *Backslash* in the CSV file to avoid any discrepancies in the data after loading. - A Multi-select separator is used to separate the multiple values of a field of data type multi-select dropdown list. Users should use the same Multi-select separator in the job configuration which is used in the CSV file to upload. By default ; (*Semicolon*) is selected as separator but users can change it as required. 6. Click **Fetch Mappings**. A success message showing *Fields Fetched Successfully* appears. **Mappings** and **Lookup Mappings** tabs are displayed. [Embedded content](https://player.vimeo.com/video/452471399) #### Mappings In the **Mappings** tab: 1. Map the **Target Fields** appropriately to the **Source Fields** (*Headers* from the CSV file*)*. 2. Select the *Data Types* for the **Source Field**. Correspondingly match the **Target Object** with the appropriate *Data Types*. The table below shows the source data types with the corresponding possible target data types: | **Source Data Type** | **Target Data Type** | | --- | --- | | String | String, Dropdown list, Email, GSID, Rich Text Area, Multiselect Dropdown List | | Number | Number, Percentage, Currency | | Boolean | Boolean | | Date | Date | | DateTime | Date Time | **Example**: If you select a Number type field in the source, it will show the fields in the target object with Number, Percentage, and Currency data types. You can select the field in the target object as required. Complex data types (Example: Multiselect dropdown list) in the target object can be mapped from their base data types (Ex: String) in the source CSV fields as shown in the table. ![Mappings.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Mappings.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=9iGcZhQgTydnnKFalJmgkhPug%2BHoyhRyWOrtKchVyLk%3D) 3. Click the **Clock** icon to set ***Timezone*** for the **Date** and **DateTime** fields. **Select a Timezone** window appears. 4. From the **Time Zone** dropdown list, select the appropriate *Timezone*. 5. Click **Ok**. ![Timezone.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Timezone.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=NoZo6XeMH5v1hd1HQC8Unfcm%2F9OoydPBte8s3oMyDx4%3D) **Note:** The Date and DateTime values are then converted into UTC from the selected timezone and are stored in the Gainsight object. If you do not select a timezone, the records are considered to be in the Gainsight Timezone. 6. (*Optional*) Click **ADD** to map additional target fields with the CSV source fields. 7. Click the **Trash** icon to delete the Fields, as required. 8. Click **Save Mappings**. A success message showing *Matching saved successfully* appears. ![Add & Save.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Add_&_Save.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=nmQCpuoe6Unka0H4%2BNHw783kjn8m4rvSMYKo9otxWGw%3D) #### Lookup Mappings In the **Lookup Mapping** section, click **ADD**. The **Data Import Lookup Configuration** dialog appears. This is to lookup to the same or another Gainsight standard object and match fields to fetch Gainsight IDs (GSIDs) from the looked up object and populate in the target field. Derived mappings can be performed only for target fields of GSID data type. There are 2 types of Lookups: - **Direct Lookup**: Direct lookup enables admins to lookup to another Gainsight standard object and fetches GSIDs of the records from the lookup object. - **Self Lookup**: Self lookup enables admins to lookup to the same standard object and fetches GSID of another record to the target field. For more information, refer to the *Data Import Lookup* in the **Additional Resource** section at the end of this article. Perform the following actions in the Data import lookup configuration dialog: 1. **Lookup Type**: From the dropdown list, select **Direct** or **Self** lookup, as required. 2. **From**: From the dropdown list, select the **Source** object. 3. **To Target Field**: From the dropdown list, select corresponding **Fields**. 4. **Match By**: Match multiple fields between the source CSV file and looked up object to import correct GSID from the standard object into the target object. 5. When you have multiple matches or when no match is found, you can select one from the given options, as needed. 6. Click **Apply**. 7. Click **Save Mappings**. [Embedded content](https://player.vimeo.com/video/452471789) ## cURL API To generate the cURL command: 1. Navigate to the **cURL API** section. The cURL Command textbox is displayed. 2. Click **Generate.** cURL Command is generated. **Note:** Sub-domain generated in the cURL command is different from the sub-domain of the current org. You can run the command as generated without changing the sub-domain. Tenant is identified uniquely with the entered access key. ![cURL API.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/cURL_API.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=%2F3DzC%2BFMJqlQP8L1%2BUoULXhGRgykNeEPRddknxzgn8A%3D) 3. Click **Copy** to copy the cURL Command. Paste the cURL command into any text editor. 4. In the text editor, enter the *Access Key* generated in the *Create a Bulk API Connection.* 5. Enter the File Path of the CSV File as shown in the image below. ![Pathname.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Pathname.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=LqO0hrIH4S4JFVghVgwQb3zju6pTn1VvdSwmrof8Xp0%3D) 6. Enter the cURL command in the **Terminal** or **Command Prompt** and submit. The data is ingested into the target object successfully. 7. An email is sent to the recipient to inform the success or failure of the job as shown in image below. ![Email Notification.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Email_Notification.png?sv=2026-02-06&spr=https&st=2026-11-24T16%3A04%3A36Z&se=2026-11-24T17%3A04%3A36Z&sr=b&sp=r&sig=NXRo1ZWuHpgWiemFTW5qNUFXagp14bxFg9aZdG6aeGY%3D) ## Bulk Status API The Bulk Status API can be used to check the progress of the Bulk API job. When you successfully run the cURL command, it returns *true* with the *Request ID* and *Status ID.* This Status ID is used to retrieve the data from the Bulk Status API to track the progress of the upload. For more information on the Bulk Status API, refer to the [*Bulk Status API*](/v1/docs/bulk-status-api) article. ## Job Activities You can view the **Execution** and **Update** **Activities** of all the data jobs in the **Activity** page. You can also download the error logs of the jobs from this page to help troubleshoot configuration issues. For more information, refer to the *Activity Page* in the **Additional Resource** section at the end of this article. ## Additional Resources For more information about Connectors, refer to: - [*Data Platform and Connectors*](/v1/docs/data-platform-and-connectors-overview) - [*Connectors List Page*](/v1/docs/connections-list-page) - [*Jobs List Page*](/v1/docs/preparation-of-connector-jobs) - [*Job Chain Page*](/v1/docs/job-chain-page) - [*Configuration of Job or Job Chain Schedule*](/v1/docs/configuration-of-job-or-job-chain-schedule) - [*Activity Page*](/v1/docs/activity-page) - [*Bulk Status API*](/v1/docs/bulk-status-api) - [*Basic Operations in Data Management*](/v1/docs/basic-operations-in-gainsight-data-management#supported-data-types) - [*Data Import Lookup*](/v1/docs/data-import-lookup)