Skip to content

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 is a cross-domain iframe embedding, there may be third-party cookie blocking cross-domain issues. 2. If there is no page redirection involved. Add parameter to the page url: ftAuthToken=xxx.

Body Request Parameters

Parameter Name Type Required Description
roles array List of role UUIDs
Example: ['readOnly']
Allow empty: False
roles[*] string Y Role identifier
Allow empty: False
expires integer Y Token expiration time (in seconds)
Example: 3600
Allow empty: False
$maxValue: 604800
$minValue: 1

Parameter Additional Notes

Parameter Notes


  1. Supported Role List
Role Description
wsAdmin Administrator role
general Standard member role
readOnly Read-only role
role_xxx Custom role UUID

Response


Feedback

Is this page helpful? ×