Bridge is Accountflow's public API: general ledger, close status, VAT, documents, bank reconciliation, settings and webhooks, plus imports for books kept in your own system. One OAuth 2.0 client-credentials flow, scoped to what your integration needs.
The accountflow-api skill teaches a coding agent this API: auth, idempotency and retries, pagination, the import order, refused deletions. It bundles the OpenAPI spec and these guides for prod.
mkdir -p ~/.claude/skills && curl -fsSL https://developer.prod.accountflow.com/skills/accountflow-api.zip -o /tmp/accountflow-api.zip && unzip -oq /tmp/accountflow-api.zip -d ~/.claude/skills && rm /tmp/accountflow-api.zip
Run it in a terminal, then start Claude Code. The skill loads when you work
against the API, or with /accountflow-api. For Claude on the web
or desktop, or another agent that reads skills,
download the .zip
and upload it under Settings → Capabilities → Skills.
You can read the skill first.
Re-run the command to update.
// Create an API client under organization settings → integrations,
// then exchange its credentials for a token:
let http = reqwest::Client::new();
let token: serde_json::Value = http
.post("https://auth.prod.accountflow.com/realms/accountflow/protocol/openid-connect/token")
.form(&[
("grant_type", "client_credentials"),
("client_id", "com.accountflow.api.prod.4be9a1c803f2"),
("client_secret", "your-client-secret"),
])
.send().await?.json().await?;
let whoami = http
.get("https://api.prod.accountflow.com/v1/whoami")
.bearer_auth(token["access_token"].as_str().unwrap())
.send().await?.text().await?;
println!("{whoami}"); // {"clientId":"...","mode":"SYSTEM","organizationId":"..."}
// Create an API client under organization settings → integrations,
// then exchange its credentials for a token:
var http = HttpClient.newHttpClient();
var form = "grant_type=client_credentials"
+ "&client_id=com.accountflow.api.prod.4be9a1c803f2"
+ "&client_secret=your-client-secret";
var tokenJson = http.send(HttpRequest.newBuilder()
.uri(URI.create("https://auth.prod.accountflow.com/realms/accountflow/protocol/openid-connect/token"))
.header("Content-Type", "application/x-www-form-urlencoded")
.POST(BodyPublishers.ofString(form)).build(), BodyHandlers.ofString()).body();
var token = new ObjectMapper().readTree(tokenJson).get("access_token").asText();
var whoami = http.send(HttpRequest.newBuilder()
.uri(URI.create("https://api.prod.accountflow.com/v1/whoami"))
.header("Authorization", "Bearer " + token).build(), BodyHandlers.ofString());
System.out.println(whoami.body()); // {"clientId":"...","mode":"SYSTEM",...}
# Create an API client under organization settings → integrations,
# then exchange its credentials for a token:
import requests
token = requests.post(
"https://auth.prod.accountflow.com/realms/accountflow/protocol/openid-connect/token",
data={
"grant_type": "client_credentials",
"client_id": "com.accountflow.api.prod.4be9a1c803f2",
"client_secret": "your-client-secret",
},
).json()["access_token"]
whoami = requests.get(
"https://api.prod.accountflow.com/v1/whoami",
headers={"Authorization": f"Bearer {token}"},
)
print(whoami.json()) # {'clientId': '...', 'mode': 'SYSTEM', 'organizationId': '...'}
// Create an API client under organization settings → integrations,
// then exchange its credentials for a token:
const tokenResponse = await fetch(
"https://auth.prod.accountflow.com/realms/accountflow/protocol/openid-connect/token",
{
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
grant_type: "client_credentials",
client_id: "com.accountflow.api.prod.4be9a1c803f2",
client_secret: "your-client-secret",
}),
},
);
const { access_token } = await tokenResponse.json();
const whoami = await fetch("https://api.prod.accountflow.com/v1/whoami", {
headers: { Authorization: `Bearer ${access_token}` },
});
console.log(await whoami.json()); // { clientId: "...", mode: "SYSTEM", ... }
Every endpoint, parameter and schema, with examples, rendered from the OpenAPI spec.
Browse the reference →Create a client, get a token, list your companies and page through a general ledger.
Start building →Push a chart of accounts, master data, opening balances, ledger lines and open items, and correct them with full history.
Load a company →Ids, pagination, idempotency, reach and 404s, rate limits, versioning: the rules every endpoint follows.
Read the rules →Every error code and reason, what it means and what to do.
See the catalog →Signed thin events, the delivery contract and signature verification.
Receive events →