Auth
Exchange API Key credentials for JWT tokens
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
workspacestring · min: 1 · max: 20RequiredPattern:
Target workspace
^[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)
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
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
}Exchange refreshToken for JWT tokens
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
workspacestring · min: 1 · max: 20RequiredPattern:
Target workspace
^[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)
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
500
Internal server error
application/json
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