Integrating with Darwinbox
You create a Darwinbox API user and API keys, then enter them in Drivetrain. Darwinbox is usually set up as a premium integration: you submit the values from the Darwinbox tile and your customer success manager completes the connection.
Case one: When you have access to the Darwinbox Studio module Step 1: Create a Studio user Step 2: Create an API key Case two: When you don't have access to the Darwinbox Studio module Connect Darwinbox in Drivetrain
Prerequisites
Drivetrain: you must be a Drivetrain admin.
Darwinbox: a super admin account. If you have the Darwinbox Studio module, you can create the API keys yourself (case one); otherwise your Darwinbox account manager creates them (case two).
You'll collect these values:
Subdomain
Your Darwinbox address, e.g. company.darwinbox.in
Username and Password
The API user created below; Drivetrain signs in with them on every call
Employee Data API key and its dataset key
For the Employee Data API (/masterapi/employee)
Employee CTC Data API key
For the Employee CTC Data API (/payrollapi/ctcbreakup)
To also bring in former employees, create a second Employee Data key (with its dataset key) that returns inactive employees.
Case one: When you have access to the Darwinbox Studio module
Step 1: Create a Studio user
Log in to your Darwinbox account with the super admin role, and go to the Modules page.
Click Darwinbox Studio.

Under the Studio Users tab, click Add Studio User.
Add the following user details on the next screen:
Enter the username Drivetrain Integration.
Select External as the type.
Enter the email address shared by your Drivetrain customer success manager.
Enter a unique user ID.
Enter a strong password.

Step 2: Create an API key
Under the Darwinbox API Keys tab, click Configure Darwinbox API.
Add the following API details on the next screen:
Enter static key as the key type.
Enter an API configuration name, e.g. Drivetrain Integration Employee Data.
Select the user created in the previous step.
Select the module: Core for the Employee Data API, and Compensation for the Employee CTC Data API.
Select the endpoint
/masterapi/employeefor employee data and/payrollapi/ctcbreakupfor employee CTC data.Click Create.
Copy the API key, and for the Employee Data API also its dataset key.

Case two: When you don't have access to the Darwinbox Studio module
Step 1: Contact your Darwinbox account manager
Ask your Darwinbox account manager to set up an integration with Drivetrain.
Ask them to create an API user named Drivetrain Integration and share its username and password.
Ask them to create API keys for the Employee Data API (with its dataset key) and the Employee CTC Data API.
Connect Darwinbox in Drivetrain
On the Data page, click the + icon at the top of the Data panel (or Add data source if nothing is connected yet).
In the Connect a data source window, click the DarwinBox tile.
If you see DarwinBox is a premium integration (the usual case), click Request access. In the form, enter Subdomain, Username, Password, Employee API Key and CTC API Key (if no fields are shown, click Add field and enter each one with its name). Then click Add field and add each dataset key with a name (e.g.
Employee dataset key), plus any second key for inactive employees. Click Submit credentials. Your customer success manager completes the connection and lets you know.If a Set up a new DarwinBox connection form opens instead, don't submit it yet: send the dataset key(s) to your customer success manager first and click Submit only after they confirm which value goes in each field.
Once connected, DarwinBox appears in the Data panel and starts syncing.
What data comes in
The Darwinbox data your keys allow, such as active (and, if you created the second key, inactive) employees and CTC breakup, as tables on the Data page. Data refreshes on your tenant's daily sync (or on a custom schedule, if Sync schedule appears in the connector's menu).
Update credentials or disconnect
If the API user's password or a key changes, contact your customer success manager to update the connection. To disconnect, open the connector's menu in the Data panel and click Remove.
Last updated
Was this helpful?
