跳转到主要内容
POST
/
v1
/
security
/
2fa
/
prepare
准备绑定 2FA
curl --request POST \
  --url https://api.runly.pro/v1/security/2fa/prepare \
  --header 'Authorization: Bearer <token>'
{
  "status": {
    "code": 200,
    "message": "OK",
    "trace_id": "tr_2fa_prep"
  },
  "data": {
    "secret": "JBSWY3DPEHPK3PXP",
    "qr_code_url": "otpauth://totp/..."
  },
  "usage": {
    "latency_ms": 25
  }
}

授权

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