External API Tokens
Create API keys so your own systems, or a partner's, can read data from AllWage or send clock records to it.
The AllWage External API lets another system connect to AllWage directly. For example, your internal reporting tool can read employees and daily attendance, or a partner's clocking system can send clock records in.
Every system that connects needs its own API key. You create and manage these keys on the External API tokens page.
What this page covers:
Who can create API tokens
Creating a token and copying its key
Choosing scopes: what each token can access
Changing, disabling and re-enabling a token
What to do if a key is lost
Who this is for:
Owners, and the developers or partners they work with to connect systems to AllWage.
Who Can Manage API Tokens
Only Owners can open the External API tokens page. No other preset can give this access, including custom presets. See Designing and Troubleshooting Access for how someone becomes an Owner.
If you aren't an Owner, ask one of your Owners to create the token for you.
Create a Token
Go to Settings > External API tokens.
Click Create token.
Under Token details, give the token a Name that says which system or partner will use it, for example "Internal reporting".
Click Scopes and select what the token can access. Choose only what the system needs. Click Use scopes.
Optionally, open Advanced:
Partner code — a reference for the partner using the token, for example
PAYROLL-PARTNER. It's for your records and doesn't give extra access.Expiry date — the token stops working at the end of this day. Leave it empty for a token that doesn't expire.
Click Create token.
Copy the API Key
When the token is created, AllWage shows its API key once.
Click Copy API key.
Store it somewhere secure, such as your password manager, or pass it straight to the developer who's setting up the connection.
Click Close.
If the copy button doesn't work, select the key and copy it by hand before you close the panel.
Choosing Scopes
Scopes decide what a token can do. A token can only read or change the things you select.
View daily attendance (attendance:read)
View daily attendance status, scheduled shifts, clock times, leave and worked hours for employees in this profile.
View employee clock records (clock:read)
View raw clock records, timestamps and activities for employees in this profile.
Import employee clock records (clock:write)
Create employee clock records in this profile.
View employees (employee:read)
View employees and the details needed to match them in another system.
The scope names in brackets are what developers see in the API documentation.
Give the Key to Your Developer
Developers can find the full technical reference at developers.allwage.com. It lists every available endpoint, explains how to send the key with each request, and shows what data each request returns. You can also open it from the API documentation button at the top of the External API tokens page.
Each token can make up to 60 requests per minute. If a system goes over this, AllWage asks it to wait and try again.
Manage Your Tokens
The External API tokens page lists every token in your profile. For each token you can see its name, the start of its key (so you can tell tokens apart), its scopes, its status, when it expires and when it was last used.
A token has one of three statuses:
Active — the token works.
Disabled — an Owner switched it off. Systems using it can't connect.
Expired — the expiry date has passed. Systems using it can't connect.
Last used is a quick way to check whether a connection is working, or whether an old token is still in use before you disable it.
Change a Token
Click a token's row, or click ⋯ and choose Edit. You can change its name, scopes, partner code and expiry date, then click Save. Changes apply to the existing key, so the connected system doesn't need a new one.
Disable a Token
Click ⋯ on the token's row and choose Disable, then Disable token to confirm.
The system using the token stops working immediately. Disable a token when a connection is no longer needed, when you stop working with a partner, or if you think the key has been shared with someone who shouldn't have it.
Enable a Token Again
Click ⋯ on a disabled token's row and choose Enable, then Enable token. The same key works again, so nothing needs to change on the connected system.
To bring back an expired token, edit it and choose a later expiry date first.
Lost a Key?
A key can't be shown again. If it's lost:
Create a new token with the same scopes and give the new key to your developer.
Once the connection works with the new key, disable the old token.
If you think a key has been seen by someone who shouldn't have it, disable that token straight away, then create a new one.
Frequently Asked Questions
Can I limit a token to one team? No. A token can see the whole profile it was created in. Choose scopes carefully, and only share the key with systems that need it.
Can I delete a token? No. Disable it instead. A disabled token can't be used, and the record of it stays in your list.
Can the API change or delete employee data? No. Apart from importing clock records, the API only reads data.
Last updated
Was this helpful?
