Skip to content

Issue a token for an Open API app.​

GET
/erupt-api/open-api/create-token

The token carries the permissions of the user bound to the app and is sent like a login token. Only one token per appid is valid at a time: issuing a new one revokes the previous.

Parameters​

Query Parameters

appid*

Application id

Type
string
Required
Format
"string"
secret*

Application secret

Type
string
Required
Format
"string"

Responses​

OK

*/*
JSON
{
  
"data": {
  
  
"token": "string",
  
  
"expireTime": "yyyy-MM-dd HH:mm:ss"
  
},
  
"message": "string",
  
"success": true,
  
"status": "SUCCESS",
  
"promptWay": "DIALOG"
}

Playground​

Server
Variables
Key
Value

Samples​

Released under the Apache-2.0 License.