API keys
How to create an API key for Zapier, Make, n8n or your own system, which permissions to give it, and how to revoke it once you no longer need it.
An API key lets another tool work in Retiva on your business’s behalf. That tool can be Zapier, Make, n8n or a system your developer built. Each tool gets its own key with only the permissions it needs.
Keys are managed by business owners and admins. Other team members see a note that one of them has to create the key.
A key for Zapier, Make or n8n
You create the key for these tools from the Integrations screen in the Retiva dashboard.
- On the Zapier, Make or n8n card, click Create an API key.
- The API keys screen opens with the form filled in. The name is the tool’s name, and the ticked permissions are the ones the tool uses. You can still change them.
- Click Create key and copy the key with the Copy button.
The full key is shown only once, right after you create it. Paste it straight into the tool that needs it. If you lose it, create a new key and revoke the old one.
A key for your own system
- In the Retiva dashboard, open Settings and choose API keys.
- In Key name, say what the key is for, for example “Restaurant till”.
- Under Permissions, tick only what the system needs.
- Click Create key and copy the key.
The key starts with rk_live_ and works for one business. A system using it only sees that
business’s stores, orders and vouchers.
Permissions
| Group | Permission | What it allows |
|---|---|---|
| Stores & catalogue | Read stores, Read products | Reading the list of stores and products, for example to pick a product in Zapier |
| Orders | Read orders | Reading orders and their lines |
| Vouchers & tickets | Read vouchers & tickets | Looking a voucher up by code and reading its redemption history |
| Redeem vouchers & tickets | Redeeming a voucher, checking in a ticket, reversing a redemption | |
| Issue vouchers & tickets | Issuing new vouchers and tickets | |
| Coupons | Read coupon offers, Claim coupons for customers | Issuing a coupon from an offer, for example for a newsletter sign-up |
| Customers & loyalty | Read customers & marketing consents, Read loyalty members & cards | Reading customer details, their consents and stamp cards |
| Integrations | Manage webhooks | Receiving event notifications, which the triggers in Zapier, Make and n8n use |
A trigger in Zapier, Make or n8n needs Manage webhooks. It also needs the read permission for what the event is about. For example, the “Order Paid” trigger also needs Read orders.
The key list and revoking a key
Under Your keys you see every key. Each key shows its name, the start of the key, its permissions, when it was last used and its status. The status is Active, Revoked or Expired.
To switch a key off, click Revoke. Any integration using it stops working at once. A revoked key cannot be restored.
Replace a key when someone who knew it leaves the business. It takes three steps.
- Create a new key with the same permissions.
- Paste it into the tool in place of the old one.
- Check that the integration works, then revoke the old key.
Good practice
- Treat a key like a password. Do not send it by email or chat, and do not paste it into spreadsheets or documents.
- Give each tool its own key. You can then revoke one key and the other integrations keep working.
- Give only the permissions the tool needs. A key for a sales spreadsheet does not need to redeem vouchers.
- Look through the key list now and then, and revoke keys nobody uses. The Last used column shows when each key was last used.