Skip to Content

API keys

An API key lets software that you or your developer runs read your business data from the Selflane API. For example, you can pull your data into your own reporting dashboard. One key can cover several of your locations.

Keys are covered by the Selflane API Terms . Read them before you create a key.

Who can use API keys

  • Only owners can open API Keys. Owners create keys, edit their locations, and revoke them. Managers and custom users can’t see the page.
  • To put a location on a key, you must be an owner of that location.
  • Each location on a key needs the POS plan or above. If a location doesn’t qualify, Back Office won’t create the key and names the location.

What a key can read

When you create a key, you choose its scopes: the kinds of data it can read. You can’t change a key’s scopes after you create it. To change them, create a new key and revoke the old one.

Today a key can read Business: business and location details such as name, address, timezone, and currency. The other scopes are marked Coming soon:

ScopeWhat it reads
MenuMenus, items, modifiers, and prices
OrdersOrders and their items, without customer contact details
Customer contact detailsNames, phone numbers, and email addresses of customers on orders
PaymentsCard and cash payments, refunds, and tips
ReportsSales and other summary reports
PayoutsDeposits to your bank account
StaffEmployee names, roles, and contact details
Staff payEmployee pay rates
Time cardsClock-ins, clock-outs, and breaks
CashCash drawer activity

Choose only the scopes your software needs.

Scopes with personal information

Customer contact details, Staff, and Staff pay return personal information. When you choose one, the screen asks you to confirm it separately, under This key returns personal information. Confirm each one:. You can’t create the key until you tick each confirmation.

Create a key

  1. In the Back Office , open Owner's Portal → API Keys.
  2. Click Create key.
  3. Enter a Name that says what the key is for, such as Reporting dashboard.
  4. Under Locations, choose the locations the key covers. The location you’re signed in to is always included. If you own more than one location, Select all adds every one of them.
  5. Under Scopes, choose what the key can read. Business is chosen for you.
  6. If you chose a scope with personal information, tick its confirmation.
  7. Optional: set Expires on (optional). The key stops working at the end of that day. Leave it blank for a key that doesn’t expire.
  8. Tick the checkbox to accept the Selflane API Terms  for every location on the key.
  9. Click Create key.

If something is missing, the screen lists what to fix below the form.

Copy your key

The next screen shows your new key once. Selflane doesn’t keep a copy, so you can’t see it again.

  1. Copy the key and store it in a secure place, such as a password manager.
  2. Click I've saved my key.

Never put a key in a website or mobile app. Selflane never asks for your API key. If a key is lost or someone else may have seen it, revoke it and create a new one.

The key list

Owner's Portal → API Keys lists every key that names this business:

ColumnWhat it shows
NameThe key’s name and the first few characters of the key, so you can tell keys apart
ScopesWhat the key can read
LocationsHow many locations the key covers, and their names
CreatedWhen the key was created, and by whom
Last usedThe last time software used the key, or Never
ExpiresThe expiry date, or Never
StatusActive, Expired, or Revoked

No longer has access

No longer has access under Created means the person who created the key no longer owns every location on it. For example, they sold a location or left the business. The key still works until an owner revokes it. Check whether the key is still needed, and revoke it if not.

Change a key’s locations

  1. Next to the key, click Edit locations.
  2. Add or remove locations. You can’t remove the location you’re signed in to, or locations you don’t own.
  3. If you’re adding a location and the key has a scope with personal information, tick its confirmation again.
  4. Tick the checkbox to accept the API Terms.
  5. Click Save.

To take this location off a key, sign in to another location on the key and edit it from there, or revoke the key.

Revoke a key

Revoke a key when you no longer use it, or when it may have been exposed.

  1. Next to the key, click Revoke.
  2. Confirm.

Any software using the key stops working right away. You can’t undo this. Revoked keys stay in the list, dimmed, with the Revoked status.

What if…

ProblemWhat to do
You don’t see API KeysOnly owners can open it. Ask an owner of the business.
A location is missing from LocationsYou can only add locations you own. Ask an owner of that location to create the key.
The key wasn’t created and a location is namedThat location isn’t on the POS plan or above. Remove it, or change its plan.
You lost the keyYou can’t see it again. Revoke it and create a new one.
Your software needs data that’s Coming soonIt isn’t available yet. Keep using Business for now.
You need different scopesCreate a new key with the scopes you need, update your software, then revoke the old key.
Last updated on