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.
Important
7shifts is deprecating API key authentication to access API resources on August 31, 2022 and will be End of Life (EOL) on March 31, 2023. Please read our Developer Docs to understand the impact of the changes and how to migrate to a supported authentication method.
Note:
Only Admins can create Acess Tokens within the 7shifts account. Once created, only the Admin will be able to view it.
- As an Admin, sign in to your 7shifts account and 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 API Reference.
Use the More Optionsicon 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: