API reference
The ledger API
The ledger API: accounts, transactions, balances and reversals over plain HTTPS and JSON.
Every workspace has its own API at https://<workspace-key>.aquorum.ai, pinned to its own schema, so a key for one workspace is inert at every other.
Authentication
HTTP Basic: the service-account key id as the username, the secret as the password (keyId and secret in the Postman environment).
Your ids, not ours
Wherever an account or a transaction is expected, pass its id or ext:<yourId>. Every workspace starts with ext:main, ext:disbursement and ext:reversal.
Minor units only
Amounts are whole numbers of the account's smallest unit: 10000 is $100.00. A decimal is refused; send a digit string for amounts beyond 2^53.
Timestamps
Every timestamp you send needs a UTC offset (2026-10-31T00:00:00Z, never 2026-10-31T00:00:00), and may carry up to six fractional digits; any past the sixth are dropped. Every timestamp you get back is UTC to the microsecond, always six digits: 2026-11-05T16:00:00.123456Z. Older rows end in 000, because they were stamped to the millisecond. A createdAt you were given can go straight back as since or until and means exactly that instant.
Pagination
A list returns data and nextCursor. Pass nextCursor back as cursor, unchanged and with the same filters, until it is null. It is opaque: don't parse or build one, because its format can change. Transactions and an account's entries come newest first, and accounts oldest first. Rows with the same createdAt are ordered by id in the same direction, so a page boundary between them never drops or repeats a row; transaction and account ids are random, so within a tie that order means nothing more. All the entries of one transaction share its createdAt, and when one touches an account twice, the line written last comes first. Take the order from the list rather than sorting on createdAt. A cursor that is corrupt, from another list, or from an older format is a 400 with detail Invalid cursor, never a silent restart from page one.
Safe to retry
A transaction's externalId is its idempotency key. The same body again returns the original with 200; the same id with a different body is a 409.
Errors
application/problem+json (RFC 9457), naming the rule that refused the request, so a client can tell the balance from the hold from the account's flags.
POST/v1/transactions
Post a transaction
Requires transaction.write
A transaction is a set of postings, each a source, a destination and one amount, applied atomically. An unbalanced transaction cannot be expressed. Entries are append-only: a mistake is undone by a reversal, or corrected by a clawback.
Up to 50 postings per transaction.
externalIdrequired | Your id for the movement, and its idempotency key. |
postingsrequired | 1–50 of { source, destination, amount }. Accounts by id or ext:. |
effectiveAt | When it counts toward available. Defaults to now; past dates are refused. |
overdraft | This movement may take an account across zero, if the account allows it. |
backupFundingSource | An account that absorbs a shortfall. Mutually exclusive with overdraft. |
metadata | Free-form JSON object. |
tags | Up to 32 free-form strings, e.g. payout, withdrawal. Stored sorted and deduplicated, returned on every read, set once. Nothing filters on them. |
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "payout-8812", "tags": [ "payout" ], "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 10000 } ] }'
{
"id": "1691c56d-4237-4778-abe8-05a459b3e66d",
"externalId": "payout-8812",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [
"payout"
],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -10000,
"accountSequence": 1,
"postedSequence": 1
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 10000,
"accountSequence": 1,
"postedSequence": 1
}
]
}The same externalId and body again returns the original transaction with 200 instead of posting twice, so any request can be retried safely.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "payout-8812", "tags": [ "payout" ], "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 10000 } ] }'
{
"id": "1691c56d-4237-4778-abe8-05a459b3e66d",
"externalId": "payout-8812",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [
"payout"
],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -10000,
"accountSequence": 1,
"postedSequence": 1
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 10000,
"accountSequence": 1,
"postedSequence": 1
}
]
}The same externalId with a different body is refused: reusing an idempotency key for another movement is almost always a bug.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "payout-8812", "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 25000 } ] }'
{
"type": "https://errors.atomic-ledger.dev/conflict",
"title": "Conflict",
"status": 409,
"detail": "This externalId was already used for a different movement. Reusing an idempotency key with a changed body is almost always a bug.",
"transactionId": "1691c56d-4237-4778-abe8-05a459b3e66d"
}A future effectiveAt puts the movement on the books at once (posted) but keeps it out of available until the date. A hold without a pending state: since debits check available, it enforces itself.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "earnings-1043", "effectiveAt": "2026-11-08T16:00:00.000Z", "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 5000 } ] }'
{
"id": "ecea03d5-b6bf-4e98-a67a-7a5af48aa3f6",
"externalId": "earnings-1043",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -5000,
"accountSequence": 2,
"postedSequence": 2
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 5000,
"accountSequence": 2,
"postedSequence": 2
}
]
}Refused against available, under a per-account lock. The error names the account, the shortfall and how much of the balance is held.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "withdrawal-207", "postings": [ { "source": "ext:seller_42", "destination": "ext:disbursement", "amount": 12000 } ] }'
{
"type": "https://errors.atomic-ledger.dev/insufficient-funds",
"title": "Cannot process this movement",
"status": 422,
"detail": "seller_42 is short by 2000 minor units, and allow_overdraft is off on that account. 5000 minor units are on the books but not yet in force — check their value date.",
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"account": "seller_42",
"shortfall": 2000,
"held": 5000
}Amounts are whole minor units. 100.5 is refused rather than guessed at: cents or dollars is how a 100× error happens.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "payout-8814", "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 100.5 } ] }'
{
"type": "https://errors.atomic-ledger.dev/bad-request",
"title": "Invalid request",
"status": 400,
"detail": "postings[0].amount must be a whole number of minor units within the exact integer range — send a string for larger amounts",
"amount": 100.5
}effectiveAt needs an explicit UTC offset. Without one the instant would depend on the server's timezone, so it is refused.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "payout-8815", "effectiveAt": "2030-01-01T00:00:00", "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 1000 } ] }'
{
"type": "https://errors.atomic-ledger.dev/bad-request",
"title": "Invalid request",
"status": 400,
"detail": "effectiveAt must be an ISO-8601 timestamp including a UTC offset — \"2026-10-31T00:00:00Z\" or \"2026-10-31T00:00:00-04:00\". Without one the instant depends on the server's timezone.",
"effectiveAt": "2030-01-01T00:00:00"
}A key without transaction.write is refused with 403, naming the permission it lacks. Set readOnlyKeyId and readOnlySecret to a key with read permissions only.
curl https://acme.aquorum.ai/v1/transactions \ -u "$READ_ONLY_KEY_ID:$READ_ONLY_SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "payout-8816", "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 1000 } ] }'
{
"type": "https://errors.atomic-ledger.dev/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Requires transaction.write"
}Money leaving to the outside world lands on disbursement, which allows no outflow: nothing can walk it back out.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "withdrawal-208", "tags": [ "withdrawal" ], "postings": [ { "source": "ext:seller_42", "destination": "ext:disbursement", "amount": 6000 } ] }'
{
"id": "6127c1bd-8fec-47b0-a9c4-15afd41daadc",
"externalId": "withdrawal-208",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [
"withdrawal"
],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": -6000,
"accountSequence": 3,
"postedSequence": 3
},
{
"accountId": "d5205c90-6fe2-44b7-a850-2b96332f2178",
"accountExternalId": "disbursement",
"amount": 6000,
"accountSequence": 1,
"postedSequence": 1
}
]
}Sent twice under two ids, say. The next request reverses it.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "payout-8813", "postings": [ { "source": "ext:main", "destination": "ext:seller_42", "amount": 3000 } ] }'
{
"id": "e79cbad6-2295-49c9-aee3-c1330892906d",
"externalId": "payout-8813",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -3000,
"accountSequence": 3,
"postedSequence": 3
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 3000,
"accountSequence": 4,
"postedSequence": 4
}
]
}An ordinary transaction in the opposite direction: no window, any number of times. If the customer is short, say where the shortfall lands: overdraft: true leaves them owing you, backupFundingSource absorbs it on an account you name.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "clawback-8812", "postings": [ { "source": "ext:seller_42", "destination": "ext:main", "amount": 2000 } ] }'
{
"id": "e6f6dc75-eb69-47c9-a678-4aba77b852ce",
"externalId": "clawback-8812",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": -2000,
"accountSequence": 6,
"postedSequence": 6
},
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 2000,
"accountSequence": 5,
"postedSequence": 5
}
]
}seller_42 has 2000 available; the other 3000 is drawn from reversal, so seller_42 ends at zero available instead of owing you.
curl https://acme.aquorum.ai/v1/transactions \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "clawback-8813", "backupFundingSource": "ext:reversal", "postings": [ { "source": "ext:seller_42", "destination": "ext:main", "amount": 5000 } ] }'
{
"id": "38a2fde0-82f3-4df7-aa01-16f7709cecb5",
"externalId": "clawback-8813",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": -2000,
"accountSequence": 7,
"postedSequence": 7
},
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 2000,
"accountSequence": 6,
"postedSequence": 6
},
{
"accountId": "ddf56d63-2eb4-4f0b-acbe-a627723c8121",
"accountExternalId": "reversal",
"amount": -3000,
"accountSequence": 1,
"postedSequence": 1
},
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 3000,
"accountSequence": 6,
"postedSequence": 6
}
]
}GET/v1/transactions/:id
Get a transaction
Requires transaction.read
Address it by our id or by yours, as ext:<externalId>: the lookup for support and reconciliation when all you have is your own reference.
reversible says whether a reversal would be accepted right now: a hint for a UI, not a promise, since the account can move before you act on it.
Path
idrequired | Transaction id, or ext:<yourId>. |
curl https://acme.aquorum.ai/v1/transactions/$TRANSACTION_ID \
-u "$KEY_ID:$SECRET"{
"id": "1691c56d-4237-4778-abe8-05a459b3e66d",
"externalId": "payout-8812",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [
"payout"
],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": false,
"reversibleReason": "account_moved",
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -10000,
"accountSequence": 1,
"postedSequence": 1
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 10000,
"accountSequence": 1,
"postedSequence": 1
}
]
}The same transaction, by the externalId it was posted with.
curl https://acme.aquorum.ai/v1/transactions/ext:payout-8812 \
-u "$KEY_ID:$SECRET"{
"id": "1691c56d-4237-4778-abe8-05a459b3e66d",
"externalId": "payout-8812",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [
"payout"
],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": false,
"reversibleReason": "account_moved",
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -10000,
"accountSequence": 1,
"postedSequence": 1
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 10000,
"accountSequence": 1,
"postedSequence": 1
}
]
}Your own id needs the ext: prefix. Without it, it is neither our id nor yours, and is refused rather than guessed at.
curl https://acme.aquorum.ai/v1/transactions/payout-8812 \
-u "$KEY_ID:$SECRET"{
"type": "https://errors.atomic-ledger.dev/bad-request",
"title": "Invalid request",
"status": 400,
"detail": "Not a transaction id — use ext:<externalId> to address by your own id",
"ref": "payout-8812"
}GET/v1/transactions
List transactions
Requires transaction.read
Newest first, paged by cursor (see Pagination above). Also filters on since and until (timestamps with an offset), which the (created_at, id) index serves. Nothing else filters: ?status= or any other parameter is a 400.
Query
limit | Page size, up to 200. Default 50. |
curl "https://acme.aquorum.ai/v1/transactions?limit=50" \ -u "$KEY_ID:$SECRET"
{
"data": [
{
"id": "ecea03d5-b6bf-4e98-a67a-7a5af48aa3f6",
"externalId": "earnings-1043",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": true,
"reversibleReason": null,
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -5000,
"accountSequence": 2,
"postedSequence": 2
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 5000,
"accountSequence": 2,
"postedSequence": 2
}
]
},
{
"id": "1691c56d-4237-4778-abe8-05a459b3e66d",
"externalId": "payout-8812",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {},
"tags": [
"payout"
],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": null,
"reversible": false,
"reversibleReason": "account_moved",
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -10000,
"accountSequence": 1,
"postedSequence": 1
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": 10000,
"accountSequence": 1,
"postedSequence": 1
}
]
}
],
"nextCursor": null
}POST/v1/transactions/:id/reverse
Reverse a transaction
Requires transaction.write
No body.
Undoes a transaction posted by mistake by mirroring it, only while every account the original credited has not moved since: the same money, not just enough money. At most once per transaction; a retry returns the same reversal with 200.
Once the window has closed, claw back instead: an ordinary transaction in the opposite direction.
Path
idrequired | The transaction to reverse: its id, or ext:<yourId>. |
curl -X POST https://acme.aquorum.ai/v1/transactions/$MISTAKE_ID/reverse \
-u "$KEY_ID:$SECRET"{
"id": "b5b8c898-ac85-4858-adfc-452e1a67b48a",
"externalId": "reversal:e79cbad6-2295-49c9-aee3-c1330892906d",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {
"reverses": "e79cbad6-2295-49c9-aee3-c1330892906d"
},
"tags": [],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": "e79cbad6-2295-49c9-aee3-c1330892906d",
"reversible": false,
"reversibleReason": "is_reversal",
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 3000,
"accountSequence": 4,
"postedSequence": 4
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": -3000,
"accountSequence": 5,
"postedSequence": 5
}
]
}The same reversal again, addressed by the original's externalId. Either id names the same transaction, so this replays the reversal above with 200 rather than reversing twice.
curl -X POST https://acme.aquorum.ai/v1/transactions/ext:payout-8813/reverse \
-u "$KEY_ID:$SECRET"{
"id": "b5b8c898-ac85-4858-adfc-452e1a67b48a",
"externalId": "reversal:e79cbad6-2295-49c9-aee3-c1330892906d",
"status": "posted",
"overdraft": false,
"actor": "key:ak_live_8Kq2xN4vTz",
"metadata": {
"reverses": "e79cbad6-2295-49c9-aee3-c1330892906d"
},
"tags": [],
"createdAt": "2026-11-05T16:00:00.000000Z",
"reversesTransactionId": "e79cbad6-2295-49c9-aee3-c1330892906d",
"reversible": false,
"reversibleReason": "is_reversal",
"entries": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 3000,
"accountSequence": 4,
"postedSequence": 4
},
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountExternalId": "seller_42",
"amount": -3000,
"accountSequence": 5,
"postedSequence": 5
}
]
}seller_42 has moved since payout-8812 landed, so it can no longer be reversed. Claw it back instead.
curl -X POST https://acme.aquorum.ai/v1/transactions/$TRANSACTION_ID/reverse \
-u "$KEY_ID:$SECRET"{
"type": "https://errors.atomic-ledger.dev/conflict",
"title": "Conflict",
"status": 409,
"detail": "Account seller_42 has moved since this transaction, so it can no longer be reversed. Post a clawback instead.",
"reversible": false,
"reversibleReason": "account_moved",
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"accountSequenceAtTransaction": 1,
"accountSequenceNow": 5
}A reversal cannot itself be reversed. To undo it, post a new transaction.
curl -X POST https://acme.aquorum.ai/v1/transactions/$REVERSAL_ID/reverse \
-u "$KEY_ID:$SECRET"{
"type": "https://errors.atomic-ledger.dev/conflict",
"title": "Conflict",
"status": 409,
"detail": "A reversal cannot itself be reversed. Post a new transaction instead.",
"reversible": false,
"reversibleReason": "is_reversal"
}POST/v1/accounts
Create an account
Requires account.write
An account holds a balance. Its type is its normal side: a credit account holds funds and stays at or above zero; a debit account is a source of funds and stays at or below zero, presented negated. currency and scale are copied at creation and never change.
externalIdrequired | Your id for the account; address it as ext:<externalId>. |
name | Defaults to externalId. |
type | credit (default) or debit. |
currency | Defaults to the workspace's currency. |
allowOutflow | May money ever leave this account? Default true. |
allowOverdraft | May its balance cross to the side it does not belong on? Default false. |
metadata | Free-form JSON object. |
tags | Array of strings, returned on every read. Nothing filters on them. |
curl https://acme.aquorum.ai/v1/accounts \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "seller_42", "name": "Seller 42", "type": "credit", "metadata": { "country": "US" }, "tags": [ "sellers" ] }'
{
"id": "0295de4c-87d2-440d-ac3b-90743b07d195",
"externalId": "seller_42",
"name": "Seller 42",
"currency": "USD",
"scale": 2,
"type": "credit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {
"country": "US"
},
"tags": [
"sellers"
],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z"
}externalId and name are unique among live accounts.
curl https://acme.aquorum.ai/v1/accounts \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "seller_42" }'
{
"type": "https://errors.atomic-ledger.dev/conflict",
"title": "Conflict",
"status": 409,
"detail": "A live account already uses that externalId or name",
"externalId": "seller_42",
"name": "seller_42"
}Used by the delete example below.
curl https://acme.aquorum.ai/v1/accounts \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "externalId": "seller_43", "name": "Seller 43" }'
{
"id": "7b0863f3-1c41-427c-a23a-75604e1bf1e6",
"externalId": "seller_43",
"name": "Seller 43",
"currency": "USD",
"scale": 2,
"type": "credit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {},
"tags": [],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z"
}GET/v1/accounts
List accounts
Requires account.read
Oldest first, paged by cursor: pass the previous page's nextCursor, which is null on the last page (see Pagination above). balances=true adds each account's balance. Nothing filters: no index serves a filter here, so ?tag= or any other parameter is a 400.
Query
balances | Include each account's balance. Off by default, since a balance is a sum. |
limit | Page size, up to 200. Default 50. |
curl "https://acme.aquorum.ai/v1/accounts?balances=true&limit=50" \ -u "$KEY_ID:$SECRET"
{
"data": [
{
"id": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"externalId": "main",
"name": "main",
"currency": "USD",
"scale": 2,
"type": "debit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {},
"tags": [],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z",
"balance": {
"posted": 0,
"available": 0,
"presented": {
"posted": 0,
"available": 0
}
}
},
{
"id": "d5205c90-6fe2-44b7-a850-2b96332f2178",
"externalId": "disbursement",
"name": "disbursement",
"currency": "USD",
"scale": 2,
"type": "credit",
"allowOutflow": false,
"allowOverdraft": false,
"sequence": 0,
"metadata": {},
"tags": [],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z",
"balance": {
"posted": 0,
"available": 0,
"presented": {
"posted": 0,
"available": 0
}
}
},
{
"id": "ddf56d63-2eb4-4f0b-acbe-a627723c8121",
"externalId": "reversal",
"name": "reversal",
"currency": "USD",
"scale": 2,
"type": "debit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {},
"tags": [],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z",
"balance": {
"posted": 0,
"available": 0,
"presented": {
"posted": 0,
"available": 0
}
}
},
{
"id": "0295de4c-87d2-440d-ac3b-90743b07d195",
"externalId": "seller_42",
"name": "Seller 42",
"currency": "USD",
"scale": 2,
"type": "credit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {
"country": "US"
},
"tags": [
"sellers"
],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z",
"balance": {
"posted": 0,
"available": 0,
"presented": {
"posted": 0,
"available": 0
}
}
},
{
"id": "7b0863f3-1c41-427c-a23a-75604e1bf1e6",
"externalId": "seller_43",
"name": "Seller 43",
"currency": "USD",
"scale": 2,
"type": "credit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {},
"tags": [],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z",
"balance": {
"posted": 0,
"available": 0,
"presented": {
"posted": 0,
"available": 0
}
}
}
],
"nextCursor": null
}GET/v1/accounts/:ref
Get an account
Requires account.read
Path
refrequired | Account id, or ext:<yourId>. |
curl https://acme.aquorum.ai/v1/accounts/ext:seller_42 \
-u "$KEY_ID:$SECRET"{
"id": "0295de4c-87d2-440d-ac3b-90743b07d195",
"externalId": "seller_42",
"name": "Seller 42",
"currency": "USD",
"scale": 2,
"type": "credit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {
"country": "US"
},
"tags": [
"sellers"
],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z"
}An unknown id or ext: answers 404, and so does a deleted account.
curl https://acme.aquorum.ai/v1/accounts/ext:seller_99 \
-u "$KEY_ID:$SECRET"{
"type": "https://errors.atomic-ledger.dev/not-found",
"title": "Resource not found",
"status": 404,
"detail": "No such account: ext:seller_99"
}A key id with the wrong secret, an unknown key id or no credentials at all are one 401 with one message: it never says which part was wrong.
curl https://acme.aquorum.ai/v1/accounts/ext:seller_42 \
-u "$KEY_ID:not-the-secret"{
"type": "https://errors.atomic-ledger.dev/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Missing or invalid API key"
}PATCH/v1/accounts/:ref
Update an account
Requires account.write
Only name, metadata and tags can change; never the currency, the type or the flags.
Path
refrequired | Account id, or ext:<yourId>. |
curl -X PATCH https://acme.aquorum.ai/v1/accounts/ext:seller_42 \ -u "$KEY_ID:$SECRET" \ -H 'Content-Type: application/json' \ -d '{ "name": "Seller 42 (Acme)", "tags": [ "sellers", "acme" ] }'
{
"id": "0295de4c-87d2-440d-ac3b-90743b07d195",
"externalId": "seller_42",
"name": "Seller 42 (Acme)",
"currency": "USD",
"scale": 2,
"type": "credit",
"allowOutflow": true,
"allowOverdraft": false,
"sequence": 0,
"metadata": {
"country": "US"
},
"tags": [
"sellers",
"acme"
],
"lastActivityAt": null,
"createdAt": "2026-11-05T16:00:00.000000Z",
"updatedAt": "2026-11-05T16:00:00.000000Z"
}DELETE/v1/accounts/:ref
Delete an account
Requires account.write
Only an account with a zero posted balance can be deleted; otherwise 409. Move the money first. The handle is not freed for reuse.
Path
refrequired | Account id, or ext:<yourId>. |
curl -X DELETE https://acme.aquorum.ai/v1/accounts/ext:seller_43 \
-u "$KEY_ID:$SECRET"{
"deleted": true,
"accountId": "7b0863f3-1c41-427c-a23a-75604e1bf1e6"
}GET/v1/accounts/:ref/balance
Get an account's balance
Requires balance.read
posted is everything on the books; available is only what is in force, which is what a debit may draw on. Both are in stored signs, which sum to zero across the workspace; presented is the same numbers as a person reads them.
Path
refrequired | Account id, or ext:<yourId>. |
curl https://acme.aquorum.ai/v1/accounts/ext:seller_42/balance \
-u "$KEY_ID:$SECRET"{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"externalId": "seller_42",
"currency": "USD",
"scale": 2,
"type": "credit",
"asOf": "2026-11-05T16:00:00.000000Z",
"posted": 15000,
"available": 10000,
"presented": {
"posted": 15000,
"available": 10000
},
"sequence": 2
}as_of answers for any instant. Backdating is refused, so the answer for a day already gone never changes.
curl "https://acme.aquorum.ai/v1/accounts/ext:seller_42/balance?as_of=2026-11-08T16:00:00.000Z" \ -u "$KEY_ID:$SECRET"
{
"accountId": "0295de4c-87d2-440d-ac3b-90743b07d195",
"externalId": "seller_42",
"currency": "USD",
"scale": 2,
"type": "credit",
"asOf": "2026-11-08T16:00:00.000000Z",
"posted": 15000,
"available": 15000,
"presented": {
"posted": 15000,
"available": 15000
},
"sequence": 2
}GET/v1/accounts/:ref/entries
List an account's entries
Requires transaction.read
One account's history, newest first: one row per entry, with amount signed for this account (credit positive, debit negative), the transaction's externalId, status, tags and metadata, and the counterparties on the other side.
since | Inclusive start, on createdAt. |
until | Exclusive end, on createdAt. |
limit | 1–200, default 50. |
cursor | nextCursor from the previous page, unchanged. Opaque; see Pagination above. |
Timestamps need an explicit offset. With neither bound it is the full history. Paged by cursor, never by offset, so a page cannot shift under new writes. To split by kind, read tags on each row: the API does not filter on them, and ?tag= or any other parameter is a 400 rather than silently ignored.
Path
refrequired | Account id, or ext:<yourId>. |
Query
since | Inclusive start, on createdAt. An ISO-8601 timestamp with an explicit offset. |
limit | 1–200, default 50. |
curl "https://acme.aquorum.ai/v1/accounts/ext:seller_42/entries?since=$NINETY_DAYS_AGO&limit=50" \ -u "$KEY_ID:$SECRET"
{
"data": [
{
"transactionId": "38a2fde0-82f3-4df7-aa01-16f7709cecb5",
"externalId": "clawback-8813",
"status": "posted",
"tags": [],
"metadata": {},
"amount": -2000,
"accountSequence": 7,
"effectiveAt": "2026-11-05T16:00:00.000000Z",
"createdAt": "2026-11-05T16:00:00.000000Z",
"counterparties": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 5000
},
{
"accountId": "ddf56d63-2eb4-4f0b-acbe-a627723c8121",
"accountExternalId": "reversal",
"amount": -3000
}
]
},
{
"transactionId": "e6f6dc75-eb69-47c9-a678-4aba77b852ce",
"externalId": "clawback-8812",
"status": "posted",
"tags": [],
"metadata": {},
"amount": -2000,
"accountSequence": 6,
"effectiveAt": "2026-11-05T16:00:00.000000Z",
"createdAt": "2026-11-05T16:00:00.000000Z",
"counterparties": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 2000
}
]
},
{
"transactionId": "b5b8c898-ac85-4858-adfc-452e1a67b48a",
"externalId": "reversal:e79cbad6-2295-49c9-aee3-c1330892906d",
"status": "posted",
"tags": [],
"metadata": {
"reverses": "e79cbad6-2295-49c9-aee3-c1330892906d"
},
"amount": -3000,
"accountSequence": 5,
"effectiveAt": "2026-11-05T16:00:00.000000Z",
"createdAt": "2026-11-05T16:00:00.000000Z",
"counterparties": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": 3000
}
]
},
{
"transactionId": "e79cbad6-2295-49c9-aee3-c1330892906d",
"externalId": "payout-8813",
"status": "reversed",
"tags": [],
"metadata": {},
"amount": 3000,
"accountSequence": 4,
"effectiveAt": "2026-11-05T16:00:00.000000Z",
"createdAt": "2026-11-05T16:00:00.000000Z",
"counterparties": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -3000
}
]
},
{
"transactionId": "6127c1bd-8fec-47b0-a9c4-15afd41daadc",
"externalId": "withdrawal-208",
"status": "posted",
"tags": [
"withdrawal"
],
"metadata": {},
"amount": -6000,
"accountSequence": 3,
"effectiveAt": "2026-11-05T16:00:00.000000Z",
"createdAt": "2026-11-05T16:00:00.000000Z",
"counterparties": [
{
"accountId": "d5205c90-6fe2-44b7-a850-2b96332f2178",
"accountExternalId": "disbursement",
"amount": 6000
}
]
},
{
"transactionId": "ecea03d5-b6bf-4e98-a67a-7a5af48aa3f6",
"externalId": "earnings-1043",
"status": "posted",
"tags": [],
"metadata": {},
"amount": 5000,
"accountSequence": 2,
"effectiveAt": "2026-11-08T16:00:00.000000Z",
"createdAt": "2026-11-05T16:00:00.000000Z",
"counterparties": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -5000
}
]
},
{
"transactionId": "1691c56d-4237-4778-abe8-05a459b3e66d",
"externalId": "payout-8812",
"status": "posted",
"tags": [
"payout"
],
"metadata": {},
"amount": 10000,
"accountSequence": 1,
"effectiveAt": "2026-11-05T16:00:00.000000Z",
"createdAt": "2026-11-05T16:00:00.000000Z",
"counterparties": [
{
"accountId": "fc468d05-e226-45a0-a34e-32cadd7dc2c8",
"accountExternalId": "main",
"amount": -10000
}
]
}
],
"nextCursor": null
}An account that does not exist, or was deleted, is a 404 — not an empty history.
curl "https://acme.aquorum.ai/v1/accounts/ext:seller_404/entries?since=$NINETY_DAYS_AGO&limit=50" \ -u "$KEY_ID:$SECRET"
{
"type": "https://errors.atomic-ledger.dev/not-found",
"title": "Resource not found",
"status": 404,
"detail": "No such account: ext:seller_404"
}A cursor that is corrupt, from another list, or from an older format is a 400. It never silently restarts from the first page, which would hand a client every row again.
curl "https://acme.aquorum.ai/v1/accounts/ext:seller_42/entries?cursor=not-a-cursor" \ -u "$KEY_ID:$SECRET"
{
"type": "https://errors.atomic-ledger.dev/bad-request",
"title": "Invalid request",
"status": 400,
"detail": "Invalid cursor"
}GET/health
Check health
No credentials needed
Liveness. The only route that takes no credentials, and it says nothing about the workspace behind it.
curl https://acme.aquorum.ai/health
{
"status": "ok"
}