POST
Create Workspace API Token

Autorizzazioni

Authorization
string
header
obbligatorio

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

Parametri del percorso

workspaceId
string
obbligatorio

Corpo

application/json
name
string
obbligatorio
Required string length: 1 - 255
scopes
enum<string>[]
obbligatorio
Required array length: 1 - 20 elements
Opzioni disponibili:
workspace:read,
bots:read,
bots:write,
sessions:read,
sessions:write,
results:read,
results:write,
webhooks:read,
webhooks:write,
billing:read,
integrations:read,
integrations:write
expiresInDays
integer
predefinito:90
Intervallo richiesto: 1 <= x <= 365

Risposta

201 - application/json

Default Response

apiToken
object
obbligatorio