Preparation

Create App

To add an application in System Settings -> Application Settings, select module permissions and generate client_id and client_secret.

Get Token

POST /open/auth/token

Query Params

Field Name Field Type Default Value
client_id string -
client_secret string -

Header Params

{}

Body Params

{}

Response Body Params

{
  "code": 200,
  "data": {
    "token": "xxxxxx",
    "token_type": "Bearer",
    "expiration": 1237889999
  }
}

Making API Requests

Use the token obtained above to make API requests. The base path for all module interfaces is /open

Request Example

curl 'http://[host]:[port]/open/env?t=1730550435755' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {token}'