For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Auth

Authenticate

post

Exchange API Key credentials for JWT tokens

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
workspacestring · min: 1 · max: 20Required

Target workspace

Pattern: ^[a-z0-9]+$
apiKeyIdstringRequired

API Key id

apiKeySecretstringRequired

API Key secret

Responses
200

Successful response

application/json
accessTokenstringRequired

JSON Web Token used to authenticate requests

expiresInSecondsnumberRequired

JWT validity period (in seconds)

refreshTokenstringRequired

Refresh token used to obtain new JWT

refreshExpiresInSecondsnumberRequired

Refresh token validity period (in seconds)

post/auth/token
POST /rest/auth/token HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "workspace": "text",
  "apiKeyId": "text",
  "apiKeySecret": "text"
}
{
  "accessToken": "text",
  "expiresInSeconds": 1,
  "refreshToken": "text",
  "refreshExpiresInSeconds": 1
}

Refresh token

post

Exchange refreshToken for JWT tokens

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
workspacestring · min: 1 · max: 20Required

Target workspace

Pattern: ^[a-z0-9]+$
refreshTokenstringRequired

Refresh token

Responses
200

Successful response

application/json
accessTokenstringRequired

JSON Web Token used to authenticate requests

expiresInSecondsnumberRequired

JWT validity period (in seconds)

refreshTokenstringRequired

Refresh token used to obtain new JWT

refreshExpiresInSecondsnumberRequired

Refresh token validity period (in seconds)

post/auth/token/refresh
POST /rest/auth/token/refresh HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42

{
  "workspace": "text",
  "refreshToken": "text"
}
{
  "accessToken": "text",
  "expiresInSeconds": 1,
  "refreshToken": "text",
  "refreshExpiresInSeconds": 1
}

Last updated