# Integrating with Sapling

[Prerequisites](#prerequisites)

[Sapling Setup](#sapling-setup)\
&#x20;  [Locating and Generating New API Keys](#locating-and-generating-new-api-keys)

## Prerequisites

To connect Sapling to Drivetrain, you need:

* An active Sapling account
* Super-Admin privileges on Sapling
* Admin privileges in Drivetrain

## Sapling Setup <a href="#sapling-setup" id="sapling-setup"></a>

Drivetrain supports in-built integration with Sapling. You would need to generate and enter API Keys from an account with administrator access to get started.

### Locating and Generating New API Keys <a href="#locating-and-generating-new-api-keys" id="locating-and-generating-new-api-keys"></a>

Users with Super Admin permissions can generate and view their own API keys.

1. Go to the **Integrations** page of your Sapling account
2. Navigate to the **API Keys** tab
3. Copy an existing API key, or click on the **Create New Key** button
4. Be sure to name your key descriptively, so you know how each application uses that key

{% hint style="danger" %}
API Key expires in 90 days.

The keys don’t get automatically renewed for security reasons, however, an email is sent to the owner of the API key 7 days before its expiration.
{% endhint %}

{% hint style="info" %}
That’s it! Inform your Drivetrain customer success manager so that they can get started!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://integrations.drivetrain.ai/integration-guide/integrate-with-drivetrain/hris-and-ats/integrating-with-sapling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
