API keys and the OmniBooks API
Connect your own systems (an online shop, a CRM, a warehouse system, a script) to OmniBooks. Make an API key with the scopes a system needs, give it to that system, see when it was last used, and revoke it at once if it leaks.
The OmniBooks API lets other systems work with your books. An online shop can send its orders as invoices, a CRM can keep customers in step, a warehouse system can read stock, and a script can record bank receipts. The API is in every plan, with a monthly number of calls that depends on the plan.
Developers find the full documentation, with every endpoint, its fields and examples, at omnibooks.online/developers.
Making a key
- Open Settings → API keys. You need the
settings.editpermission (owners and administrators have it). - Choose New key. Name it after the system that will use it, for example Online shop, so you know which key to revoke later.
- Tick only the scopes that system needs. A shop that sends orders needs Create and change contacts and Create, post and void sales documents, and maybe Record receipts. It doesn't need bills.
- Optionally set an end date. The key stops working after it.
- Choose Make key and copy the key straight away. It is shown once: OmniBooks keeps only a fingerprint of it.
Give the key to the system or the developer through a safe channel, never by plain email or chat.
What a key can do
- A key acts as you, the member who made it, in the company that was active when you made it. It can do only what you can do, narrowed to the scopes you ticked. If your access is limited to some branches, so is the key's.
- Every change made through the API is in the audit log under your name.
- The API follows the same rules as the screens. Approval policies, closed periods, credit limits, e-invoicing and stock rules all apply. A document that needs approval waits for it.
- If you leave the workspace or your membership is suspended, your keys stop working. A system that must keep running should use a key made by a member who will stay.
Watching and revoking
The list shows each key's scopes, the member it acts as, when it was last used, from which address, and how many calls it has made. It also shows this month's calls against your plan's limit.
Revoke stops a key at once. Do it as soon as a key may have leaked, or when a system is retired. A revoked key can't be turned back on; make a new one instead.
Live and Test keys both work on your real workspace. The label only helps you tell them apart. Try things in a separate test company or a trial workspace.
Limits
- Each key may make 120 calls a minute, and the whole workspace 600.
- Each plan includes a number of calls a month (Settings → Subscription shows your plan's limits). When they are used, the API refuses calls until next month, unless you choose a larger plan.
Not built yet
To have OmniBooks tell your system when something happens, use webhooks. A key with the Subscribe and unsubscribe webhooks scope lets Zapier, Make or n8n subscribe on their own. The OmniBooks app for Zapier uses the API and webhooks (it is not in Zapier's directory yet). The API doesn't yet cover purchase orders, journals, reports, HRMS or the till; of the CRM it has leads and deals. There is no sign-in for partner apps yet (OAuth): a partner uses a key you make for them.