In the instances where you wish to connect 7shifts to an external application or integration, an Access Token will be required. To generate one, please follow these steps.
⚠️ Only Admins can create Access Tokens within the 7shifts account. Once created, only the Admin will be able to view it.
- Login as an Admin.
- Click on the 7shifts logo > select Company Settings > click Developer Tools.
- Once on the Developer Tools page, click on + Create Access Token:
- Create your access token name, and pick a technical contact from the dropdown menu:
- Click Create Access Token:
- Your access token has been added and is now ready for you to use!
Use the Copyicon to use your token with the bearer authentication scheme. Send the token in the Authorization header when making requests as per the example below.
curl --request GET --url 'https://api.7shifts.com/v2/whoami' \ --header 'Authorization: Bearer {ACCESS_TOKEN}'
More details on Access Tokens can be found in the Authentication section of our Reference guide.
-
Use the More Options
icon to edit or delete the access token.
Note:
In some instances, you may also need the 7shifts Company or Locations IDs for integration. This can be in the Resource IDs tab: