API keys
Connect your own systems, and tools like Zapier or Make, to your workspace. You make a key, choose which areas it may read or write, and paste it into the other system. Every call made with the key is kept in its call log, and a key you revoke stops at once.
| At a glance | |
|---|---|
| Type | Add-on |
| Group | Office |
| Price | Free |
| Provides | Call the workspace API with keys |
| Needs | Nothing else |
| Offered to | Every industry pack |
| Permission | Manage API keys (given to every role that manages integrations; Admin and Manager hold it) |
What it does
-
Keys for your own systems. A key is a long secret that starts with
gpk_. It is shown once, when you make it; only a fingerprint of it is kept, so nobody can read it back later, not even an owner. -
Areas and levels. For each area you choose No access, Read or Read and write:
Area Read Write Contacts list and open contacts add and change contacts Products list and open products add and change products Orders list and open orders place an order, change its status Invoices and payments list and open invoices, download the PDF record a payment on an invoice CRM leads list and open leads add and change leads (needs CRM) Appointments bookings, free slots, types and resources book and change appointments (needs Appointments) Stock levels stock on hand (needs Inventory) - To-dos your to-dos add, change and complete to-dos -
Never more than you. A key acts as the person who made it, but only with the areas it was given. You cannot give a key an area you may not use yourself, and a key is never treated as the owner. If the person who made it can no longer sign in, the key stops.
-
Modules still decide. An area whose module is switched off answers switched off, as it would on the screen.
-
An end date and addresses. A key may end on a day you choose, and may be limited to the addresses (or ranges) your system calls from. A call from anywhere else is refused.
-
The call log. Every call made with a key, refused ones included, is kept for 90 days: when, the method and path, the answer and the caller's address.
-
Limits. Each key may make 120 calls a minute. A workspace holds up to 25 keys at a time.
Switching it on
- Go to Workspace → Add-ons, find API keys under Office, choose Enable.
- Workspace → API keys appears in the menu for everyone who may manage API keys.
Using it
- Open Workspace → API keys and press New key.
- Give it a name you will recognise (Zapier - new orders), choose a level for each area, and, if you like, an end date and the addresses it may call from.
- Press Make key and copy the key straight away: it is not shown again.
- In your other system, call the address shown (
https://<your address>/api/v1/...) with the headerAuthorization: Bearer <the key>. - To see what a key has done, open its ⋮ menu → Call log. Filter by Answered or Refused.
- To stop a key, open its ⋮ menu → Revoke and confirm. Its next call is refused.
You can rename a key or change its addresses later; its areas and end date never change. Make a new key for other areas.
The API documentation
Every door a key may call is listed on the docs site at /docs/api, with a downloadable OpenAPI file (/docs/api/openapi.json) that tools like Postman import. The list is made from the same scopes the keys use, so it is always up to date.
Answers and refusals
| Answer | Means |
|---|---|
| 401 | No key, or a key that is unknown, revoked or past its end date |
| 403 | The key may not call this door, the caller's address is not allowed, the add-on or the area's module is off |
| 422 | Refused in words: the message says why |
| 429 | Too many calls a minute with this key |
Good to know
- Switching the add-on off stops every key at once; switching it back on lets them work again.
- If your workspace requires two-factor sign-in, the person who made a key must have it set up for the key to work.
- If your workspace limits staff to the office network, calls made with a key are held to it too.