API keys and webhooks
API keys let your own tools read and update FIYR: a script that sends your open invoices every night, an internal dashboard, a no-code automation or an AI agent. Webhooks let FIYR tell those tools when something changes. Both are in Settings, Developer.
Use a connector instead if you only want to ask Claude or ChatGPT about your money. See connect Claude or ChatGPT. API keys are for tools you or your team run.
Create an API key
- Open Settings, then Developer (under Account).
- Under API keys, type a name that says where the key will live, such as "QuickBooks sync".
- Tick what it can do. Every key can read. Add Transactions, Budgets and plans, Expected income, Net worth or Webhooks only if the tool needs them.
- Choose when it expires, or Never.
- Click Create key, then Copy the key and store it where your tool keeps its secrets.
Your tool sends the key as Authorization: Bearer fiyr_sk_... to https://fivebags-server.nn.r.appspot.com/v1. Every endpoint is described at https://fivebags-server.nn.r.appspot.com/v1/openapi.json, which most automation tools and AI agents can import.
What a key can and cannot do
- It can do the same things a connected app with changes allowed can do, limited to what you ticked, plus add webhooks if you ticked Webhooks.
- A tool can send the same invoice or asset again with its own id (for example source "quickbooks" and externalId "1042"). FIYR updates the one it already has instead of adding a second.
- Add ?dryRun=true to any change to see exactly what it would do without doing it.
- It cannot move money, see your bank login, delete transactions, unlink a bank or change your subscription.
- It stops working if your subscription ends, if it expires, or when you click Revoke.
See and undo what a key changed
Every change made with a key is saved under the key's name with what it replaced. The tool can list them at GET /v1/changes and put one back with POST /v1/changes/{changeId}/undo. As with connected apps, undo skips anything you or a bank sync have changed since.
Webhooks
A webhook is a web address of yours that FIYR sends a short message to when something happens: Changes (a change made through the API or a connected app), Undos, or New transactions (your banks sent new ones). The message says what happened, not your transactions; your tool then reads what it needs with its key.
- Under Webhooks, paste an https:// address.
- Leave Everything ticked, or untick it and choose the events.
- Click Add webhook, then copy the signing secret. It is shown once.
- Click Test to send a test message now.
Each message has a FIYR-Signature header made with the signing secret, so your tool can check it came from FIYR. If an address keeps failing, FIYR tries twice more each time and switches the webhook off after 20 failures in a row. Its status line says so.
Still stuck?
Email us. A real person who builds FIYR reads every message.