This workflow requires a
super-admin
key.For a refresher on the difference between the key types, you can visit Authentication.You do not need to switch workspaces using the API or the UI for this workflow.
api-user
keys can be generated for workspaces using the API.Creating a Key
Send aPOST
request to the following endpoint.The ID of the workspace you want to generate a key for.
Workspace IDs can be aquired by sending a
GET
request to api/v1.1/workspaces
.name
field in a JSON body, this field is the name of the API key you are creating.An example of a request creating an API key named “New token” for the workspace with ID 54: