Base URL and authentication
All requests go to:Authorization header. Which one depends on how you connect:
The API user’s role decides which objects it can read and change. Give each integration its own API user, with the narrowest role that covers what it does. Only a Super Admin key can manage webhooks and API keys; a key with any other role gets a
403.
Your first request
List two vendors:401 means the header is missing or the key is wrong. A 403 means the API user’s role doesn’t allow that call.
Pagination
List endpoints return one page at a time. Most support two ways to page: offset and cursor.Page size
A
limit above 10,000 is treated as 10,000. A few endpoints use a different page size; their reference page says so.
Every page includes:
Stop paging when
next is null.
Offset paging
Passlimit and offset, or follow next:
Cursor paging
Cursor paging keeps your place by the last record you received rather than by a row number, so pages stay stable while data changes.1
Start with an empty cursor
Add
cursor= with no value to the first request:2
Check the mode
The response includes
"pagination_mode": "cursor". If it’s "offset" or missing, the endpoint served the page with offset paging instead (see below).3
Follow next until it is null
Request the
next URL exactly as returned. It carries the cursor and your limit. Stop when next is null.sort partway through a walk. A cursor that is malformed, edited, or from a different sort returns 404 with {"detail": "Invalid cursor."} (or "Cursor fields do not match current ordering."). If you get one, start again with cursor=.
Cursor paging works with the endpoint’s other filters, including last_modified_at__gte for incremental sync.
Endpoints that support cursor paging
These endpoints are tested with cursor paging. Other list endpoints may acceptcursor too; check for "pagination_mode": "cursor" in the response.
Lighter transaction rows
GET /coa/api/transaction accepts fields, a comma-separated list of the fields you want back. id and consolidation_currency are always included, and unknown names are ignored. Asking for only the fields you need makes each page much smaller:
Incremental sync
To keep a copy of Campfire data up to date, fetch only what changed since your last run instead of re-pulling everything.1
Filter by last modified time
Pass
last_modified_at__gte set to the high-water mark from your last run, minus an overlap (see the format rules below). The bound is inclusive.2
Page with the cursor
Start with
cursor= and follow next until it is null, as described in Cursor paging. Add skip_count=1 if you don’t need the total.3
Save a new high-water mark
Store the largest
last_modified_at you received in this run. Next time, start from that value minus a few minutes, so records saved while your previous run was in progress aren’t missed.4
De-duplicate by id
The overlap means you’ll see some records twice. Upsert by
id, so a record you already have is simply updated.5
Pick up deletes
Deleted records don’t appear in normal results. Fetch them with
include_deleted=true and last_modified_at__gte, which then filters by when the record was deleted. The response contains only deleted records; rely on each record’s id, is_deleted: true and deleted_at, not on its other fields. Keep a separate high-water mark for deletes based on deleted_at, because a deleted record’s last_modified_at is its last edit before the delete. For near-real-time changes, including deletes, subscribe to webhooks.With
include_deleted=true, cursor and skip_count are ignored: the response uses offset paging with an exact count. Keep following next until it is null. deleted_at includes fractional seconds (2026-11-20T16:42:09.446280+00:00).Supported endpoints and formats
last_modified_at__gte and last_modified_at__lte accept a date (2026-11-20) or a timestamp in whole seconds with a timezone (2026-11-20T16:42:09Z or 2026-11-20T16:42:09+00:00). A date means midnight UTC on that day. A timestamp is compared in its own timezone, so it must include one. Fractional seconds and timestamps without a timezone are not accepted. Both bounds are inclusive.
A date in
__lte includes the whole day, except on GET /rr/api/v1/customers and with include_deleted=true, where it means the start of that day. To be safe, pass the next day’s date or a full timestamp as the upper bound.
Rate limits
The limit is shared across endpoints. Treat 10 per second as a ceiling to stay under, not a guaranteed rate: a burst of parallel requests can briefly get more through, and the same limit then applies to the requests that follow. The unauthenticated limit applies only to endpoints that don’t need a key; on other endpoints a request without credentials gets
401 first.
A request over the limit returns 429 Too Many Requests with a Retry-After header giving the number of seconds to wait:
429, wait the Retry-After seconds, then retry. If you run requests in parallel, cap the number in flight, and back off exponentially if you keep getting 429s. Responses don’t include X-RateLimit-* headers.
The custom report endpoints (/ca/api/custom-reports) and invoice report endpoints (/coa/api/v1/invoice/report/...) also reject identical GET requests repeated within one second. From the fifth identical request in a second they return 429 with {"error": "Duplicate request", "detail": "Too many identical requests"} and no Retry-After. If the repeats continue, they return {"error": "Too many requests", "detail": "Too many repeated requests"} with a Retry-After of up to 10 minutes. Cache report results instead of re-requesting them.
Errors
Errors return a JSON body with a message undererror or detail, depending on where the request failed. Read whichever is present, and branch on the status code rather than on the message text, which can change.
Retry
429, 500 and 504 with backoff. Don’t retry 400, 401, 403 or 404 without changing the request.
Formats
Idempotency
POST /coa/api/journal_entry accepts an Idempotency-Key header, so a retried request doesn’t create a second journal entry. Send a unique value (up to 255 letters, digits, _, -, : or .) per journal entry:
- Repeating the same key and body within 24 hours returns the original response, with an
Idempotent-Replayed: trueheader. - Reusing a key with a different body returns
400. - Reusing a key while the first request is still running returns
409; retry shortly.
Idempotency-Key for other create endpoints. Before retrying one of those after a timeout or a 504, check whether the record was already created.
Sandbox
There’s no separate sandbox host. The Campfire team can set up a sandbox workspace for you; it uses the same base URL, with its own API key. Otherwise, build and test against your own workspace: start withGET requests, and use an API user whose role allows only what your integration needs.
Versioning
There is no global API version. Some paths include a version (/coa/api/v1/invoice, /coa/api/v2/reconciliation) and some don’t (/coa/api/transaction); the version is part of that endpoint’s path, so call each endpoint at the path in the API reference.
We change endpoints in a backward-compatible way: we add fields, parameters and endpoints, but don’t remove or rename them or change their types without notice. When we retire something, we mark it deprecated in the API reference and announce it in the changelog before it’s removed. Build your integration to ignore response fields it doesn’t recognize.
Next steps
Webhooks
Get notified when records are created, updated or deleted.
OAuth apps
Let other Campfire customers connect your software.
API reference
Every endpoint, with its parameters and fields.
Changelog
New features, changes and deprecations.