- 20 Feb 2024
- 1 Minute to read
- DarkLight
Personal settings
- Updated on 20 Feb 2024
- 1 Minute to read
- DarkLight
The personal settings pop-out menu displays your name, email address, and Torq role. This is where you control the Torq theme and access the API keys page.
API keys
Torq steps and the Torq API use bearer tokens to authenticate requests. To generate a bearer token, send a request to the Torq authentication server. In the request to the authentication server provide your Torq API key, which consists of a client ID and a client secret. If the request is successful, you'll receive a bearer token to pass in the Authorization header for all Torq API requests.
Create an API key
The API key consists of a client ID and a client secret. These credentials are used to authenticate when you request a bearer token. API keys are workspace-specific. This means requests are made on the workspace where the API key used to create the bearer token was created. Ensure the API key you're using to generate the bearer token was created in the workspace on which you want to run the requests.
- In Torq, click your workspace icon/avatar.
- Click API Keys > Create API Key.
- Give the API key a meaningful name and click Create.
- Copy the Client Id and Client Secret to a safe place. You won't be able to access the Client Secret later.