> 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/readme/accounting-and-erp/integrating-with-campfire.md). Agents can also search and read this documentation through its [MCP server](https://integrations.drivetrain.ai/~gitbook/mcp).

# Integrating with Campfire

Connect Campfire accounting to Drivetrain for streamlined financial planning. Covers API key setup, required permissions, and completing the integration.

You connect Campfire with an API key from a read-only Campfire API user.

## Before you start

* **In Drivetrain:** you need to be an admin.
* **In Campfire:** an active account that can create API users and keys (**Settings > API Keys**).

## Step 1: Create a read-only API user in Campfire

1. In Campfire, go to **Settings > API Keys**.
2. Click **Create User**.
3. Enter a **Name** and **Email**, and choose a **Role**:
   * `admin`: full access to the APIs
   * `clerk`: read access and the ability to post drafts
   * `view only`: read-only access (GET requests only)
4. Save the user.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2Fgit-blob-c7d691bb85c8b0e0c40a25478989588a41d71870%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Drivetrain only reads data, so **view only** is enough.
{% endhint %}

## Step 2: Create the API key

1. Click **Create API Key** for that user.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2Fgit-blob-a235d9feeb2c825328ff90916ae46b27dd14e7be%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Copy the key now and store it securely. Campfire shows it only once.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2Fgit-blob-f5358dfd216e473f0367c6dfe11caeb7a4195c5c%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 3: Connect Campfire 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. Select **Campfire**.
3. Paste the key into **API Key** and click **Submit**.

<figure><img src="https://4220329029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBZR0D9lq6jrI895OuOU%2Fuploads%2Fgit-blob-61ab4ec8d4320a47451fcebbd9bd81106fe1c7b8%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Campfire appears on the **Data** page and starts its first sync. Drivetrain doesn't test the key when you click **Submit**, so a wrong key shows up as a failed first sync.

## What data comes in

* Invoices, Revenue Transactions, Bills, Chart Accounts, Chart Transactions and Journal Entries.
* Each sync replaces these tables with Campfire's current data. Data syncs daily by default; use **Sync schedule** on the data source to change it.

## Troubleshooting

<details>

<summary>The first sync fails right after connecting</summary>

The key is usually wrong or was deleted in Campfire. Create a new key (Step 2) and enter it with **Edit credentials** on the data source. If that option isn't shown, send the key to your Drivetrain onboarding partner.

</details>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/integration-guide/readme/accounting-and-erp/integrating-with-campfire.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
