# Drivetrain API

We provide two public APIs to enable our customers to interact programmatically with their Drivetrain account data.

Using the APIs, developers can retrieve information on:

1. [**Get metrics list API**](/extending-drivetrain/drivetrain-api/get-metric-list-api.md): List of metrics available inside their Drivetrain tenant \[GET method]
2. [**Get metrics bulk data API**:](/extending-drivetrain/drivetrain-api/get-metrics-bulk-data-api.md) Use this API to retrieve data for multiple metrics in a single request, across versions, scenarios, time ranges, granularities, and dimensions \[POST Method]

### API Key (token)

You will need an API key to authenticate and retrieve data from Drivetrain using our Public APIs. To get your API key, follow these steps:

* Navigate to **Settings** > **API Key**
* Click on **Copy**

<figure><img src="https://4266000388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvykIMC7zdFnfNOwd8QAe%2Fuploads%2FQut3IRt4pTztrYynzHE8%2FAPI.jpg?alt=media&#x26;token=e53755b6-3d61-4fe9-b2b9-adc32323eb0e" alt=""><figcaption><p>API key accessible within Settings</p></figcaption></figure>

<figure><img src="https://4266000388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvykIMC7zdFnfNOwd8QAe%2Fuploads%2FCZrKYbolUju2k9PZwxCR%2FAPI%20(1).jpg?alt=media&#x26;token=70e6faee-335a-4886-bfc0-095a985c4cb4" alt=""><figcaption><p>Click on Copy to copy your API key</p></figcaption></figure>

{% hint style="info" %}
You must be added as a **user** in the workspace to view your **API key.**
{% endhint %}

### **Postman Collection Link**

This [Postman collection](https://elements.getpostman.com/redirect?entityId=14817076-fd70b52f-8407-4868-ac39-94a10403162d\&entityType=collection) contains saved examples of request and response for the APIs.


---

# 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/extending-drivetrain/drivetrain-api.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.
