Skip to content
Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Prerequisites

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:

Value
What it is

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

  1. Log in to your Darwinbox account with the super admin role, and go to the Modules page.

  2. Click Darwinbox Studio.

  1. Under the Studio Users tab, click Add Studio User.

  2. Add the following user details on the next screen:

    1. Enter the username Drivetrain Integration.

    2. Select External as the type.

    3. Enter the email address shared by your Drivetrain customer success manager.

    4. Enter a unique user ID.

    5. Enter a strong password.

Note the username and password: they are the Username and Password you enter in Drivetrain.

Step 2: Create an API key

  1. Under the Darwinbox API Keys tab, click Configure Darwinbox API.

  2. Add the following API details on the next screen:

    1. Enter static key as the key type.

    2. Enter an API configuration name, e.g. Drivetrain Integration Employee Data.

    3. Select the user created in the previous step.

    4. Select the module: Core for the Employee Data API, and Compensation for the Employee CTC Data API.

    5. Select the endpoint /masterapi/employee for employee data and /payrollapi/ctcbreakup for employee CTC data.

    6. Click Create.

  3. Copy the API key, and for the Employee Data API also its dataset key.

Create a separate API key for each API. If you need more Darwinbox data (for example employee history, leave or attendance), ask your customer success manager which extra keys to create.

Case two: When you don't have access to the Darwinbox Studio module

Step 1: Contact your Darwinbox account manager

  1. Ask your Darwinbox account manager to set up an integration with Drivetrain.

  2. Ask them to create an API user named Drivetrain Integration and share its username and password.

  3. 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

  1. On the Data page, click the + icon at the top of the Data panel (or Add data source if nothing is connected yet).

  2. In the Connect a data source window, click the DarwinBox tile.

  3. 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.

  4. 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.

  5. 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?