Quickstart
A working tour of the Acreum API in about ten minutes, from your first authenticated read to a safe write.
By the end of this page you will have made authenticated read and write calls and will know where to look for everything else.
What you need
-
An Acreum organization and a user who is an owner or admin in it. Only those roles can issue API keys.
-
A terminal with
curlandjq. -
The base URL for your environment:
export API_BASE=https://api.acreum.ioA
200from$API_BASE/healthconfirms you have the right host.
1. Issue an API key
In the Acreum app go to Organization → API Keys and select New API key. Give it a
name, pick the scopes it needs (for this tour, documents:read and parties:write),
and leave the legal entity binding empty. Scopes and bindings are explained in
Authentication.
The key is shown exactly once. Save it immediately; there is no recovery flow.
export ACREUM_API_KEY="live_…" # the full token shown at creationA customer key looks like live_<32 base62 characters>. Keys issued to Acreum staff start
with live_si_; you will not see those.
2. Make your first call
Confirm the credential resolves and see the response envelope. GET /v1/ping/scoped
answers only an authenticated caller holding documents:read:
curl -sS "$API_BASE/v1/ping/scoped" \
-H "Authorization: Bearer $ACREUM_API_KEY" | jq{
"data": { "ok": true },
"meta": {
"request_id": "018f0b3d-7c2e-7a3a-9f52-2a14d86e08ad",
"api_version": "2026-04-23"
}
}The request_id is also returned in the X-Request-Id response header. Keep it for any
support request.
3. List a resource
Lists are cursor-paginated. The first page omits the cursor:
curl -sS "$API_BASE/v1/documents?document_type=invoice&limit=10" \
-H "Authorization: Bearer $ACREUM_API_KEY" | jq{
"data": [
{ "id": "…", "document_type": "invoice", "document_number": "INV-000120", "status": "posted", "…": "…" }
],
"meta": {
"request_id": "…",
"api_version": "2026-04-23",
"next_cursor": "eyJ2IjoxLCJ2YWxzIjpbI…",
"limit": 10
}
}Pass next_cursor back to get the next page. It becomes null on the last page. Never
parse a cursor; its encoding is an implementation detail. See
Pagination.
4. Create a resource, safely
Many writes accept an Idempotency-Key header, and some require it; each operation in
the API Reference says which. POST /v1/parties requires one. Generate a
UUID per logical request and reuse it on retries of that same request:
IDEM_KEY=$(uuidgen)
curl -sS -X POST "$API_BASE/v1/parties" \
-H "Authorization: Bearer $ACREUM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEM_KEY" \
-d '{
"name": "Acme Holdings LLC",
"roles": ["vendor"]
}' | jqroles takes your organization's party role codes; an unknown or inactive code is
refused.
Re-run the exact request with the exact key within 24 hours and the server returns the
original response without creating a second party. Reuse the key with a different body
and you get 409 IDEMPOTENCY_CONFLICT. See Idempotency.
5. Handle errors properly
Errors follow RFC 7807 and always include a stable code:
curl -sS "$API_BASE/v1/documents/00000000-0000-0000-0000-000000000000" \
-H "Authorization: Bearer $ACREUM_API_KEY" | jq{
"type": "https://docs.acreum.io/errors/DOCUMENT_NOT_FOUND",
"title": "Document not found",
"status": 404,
"detail": "The requested document does not exist or belongs to another tenant.",
"code": "DOCUMENT_NOT_FOUND",
"request_id": "…",
"instance": "/v1/documents/00000000-0000-0000-0000-000000000000"
}Branch on code, never on the status alone or on the human-readable detail. See
Errors.
6. Where to go next
| You want to… | Go to |
|---|---|
| Understand scopes, key lifecycle and entity binding | Authentication |
| Let an AI agent build safely | Plan mode for agents |
| Write robust error handling | Errors |
| Make writes safe to retry | Idempotency |
| Iterate large lists | Pagination |
| Plan for production traffic | Rate limits |
| Post an invoice, record a payment, pull a P&L | Common workflows |
| Browse every endpoint | API Reference |
Quick reference
Base URL: https://api.acreum.io
Public prefix: /v1/
Auth header: Authorization: Bearer <token>
Token formats: live_… (API key, server-side / agent)
eyJ… (session token, Acreum app)
Trace header: X-Request-Id (response; a UUID sent on the request is kept)
Idempotency: Idempotency-Key (per operation; see the API Reference)
Success shape: { "data": …, "meta": { "request_id": …, "api_version": … } }
Error shape: application/problem+json with a stable `code` field
List shape: meta.next_cursor (null when there is no more data)Developer guides
One REST API serves the Acreum app, your integrations and your agents. Learn the conventions, then build.
Plan mode for agents
Let an AI agent describe a multi-step build, see exactly what it would do without keeping anything, fix it, then commit it all-or-nothing and undo it if it was wrong.