跳转到主要内容
POST
/
v1
/
security
/
2fa
/
confirm
确认并激活 2FA
curl --request POST \
  --url https://api.runly.pro/v1/security/2fa/confirm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "secret": "<string>",
  "code": "123456"
}
'
{
  "status": {
    "code": 200,
    "message": "OK",
    "trace_id": "tr_2fa_conf"
  },
  "data": {
    "message": "Two-factor authentication activated successfully"
  },
  "usage": {
    "latency_ms": 20
  }
}

授权

Authorization
string
header
必填

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

请求体

application/json
secret
string
必填
code
string
必填
示例:

"123456"

响应

200 - application/json

激活结果

status
object
必填
data
object
output
object
usage
object