跳转到主要内容
POST
/
v1
/
invitations
/
generate
生成邀请码
curl --request POST \
  --url https://api.runly.pro/v1/invitations/generate \
  --header 'Authorization: Bearer <token>'
{
  "status": {
    "code": 200,
    "message": "OK",
    "trace_id": "tr_inv_gen"
  },
  "data": {
    "invitation_code": "K8A9B2CJ",
    "note": "Share this code to onboard new members."
  },
  "usage": {
    "latency_ms": 12
  }
}

授权

Authorization
string
header
必填

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

响应

200 - application/json

生成结果

status
object
必填
data
object
output
object
usage
object