跳转到主要内容
POST
/
v1
/
security
/
apikey
/
generate
生成 API Key (Root Key)
curl --request POST \
  --url https://api.runly.pro/v1/security/apikey/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "My Laptop"
}
'
{
  "status": {
    "code": 200,
    "message": "OK",
    "trace_id": "tr_key_gen"
  },
  "data": {
    "api_key": "rk_...",
    "note": "This is a Root Key..."
  },
  "usage": {
    "latency_ms": 30
  }
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
description
string
必填
示例:

"My Laptop"

响应

200 - application/json

生成结果

status
object
必填
data
object
output
object
usage
object