Skip to main content
POST
/
v2
/
workspaces
/
{workspaceId}
/
api-keys
Generate API Key
curl --request POST \
  --url http://localhost:3000/api/v2/workspaces/{workspaceId}/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "studioId": "<string>",
  "permissions": "read"
}'
{
  "apiKey": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Body

application/json
studioId
string
required
permissions
enum<string>
required
Available options:
read,
admin

Response

API key generated successfully

apiKey
string
required
I