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