> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/integration-guide/integrate-with-drivetrain/billing-and-invoicing/integrating-with-subscript.md).

# Integrating with Subscript

[Prerequisites](#prerequisites)

[Subscript setup](#subscript-setup)\
&#x20;  [Get API key](#get-api-key)

## Prerequisites

To connect Subscript with Drivetrain, you need:

1. An active Subscript account
2. Admin privileges on Subscript
3. Admin privileges in Drivetrain

## Subscript setup

Drivetrain can connect to Subscript using an **API key**. To get an API key, please follow the steps:

## Get API key <a href="#get-api-key" id="get-api-key"></a>

Step 1: Log in to your [Subscript account](https://app.subscript.com/).

Step 2: Navigate to **Configuration** and Hover on **External Sources.**

Step 3: Scroll down and select **Managing Subscript API key**.

<figure><img src="/files/zH9dFFlfwDf96ryyGKvj" alt=""><figcaption></figcaption></figure>

Step 4: Share the API key to your Customer Success Manager.

Step 5 (Optional): Share a new key by clicking **Rotate API key** if there is no existing key used by any external source.

{% hint style="info" %}
That’s it! Inform your Customer Success Manager so that they can get started.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://integrations.drivetrain.ai/integration-guide/integrate-with-drivetrain/billing-and-invoicing/integrating-with-subscript.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
