[Login-Free Token] Generate Token¶
POST /api/v1/offline_token/temporary_token/create
Overview¶
Generate an access token.
Usage:
1. Add the parameter to the page url
: gc_route_token=xxxx
; Note that if it involves cross-origin iframe embedding, there might be third-party cookie interception issues for cross-origin requests.
2. If it does not involve page redirection, add the parameter to the page url
: ftAuthToken=xxx
.
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
roles | array | No | List of roles Example: ['readOnly'] Can be empty: False |
roles[*] | string | Yes | Role identifier Can be empty: False Optional values: ['readOnly'] |
expires | integer | Yes | Token expiration time (in seconds) Example: 3600 Can be empty: False $maxValue: 604800 $minValue: 1 |
Additional Parameter Notes¶
Parameter Description
- Supported list of roles
Role Identifier | Role Name |
---|---|
readOnly | Read-only role |