NATSattempt.ticket.inspect查看尝试状态

以工单换取当前分数与可选因素;查看不消费。

Request Payload

消息格式:JSON

NameData TypeRequiredDescription
attemptTicketIdstringYes尝试工单
type RequestBody = {
  /** 尝试工单 */
  attemptTicketId: string
}
{
  "attemptTicketId": "atk_9f2c7be14d0a53e8"
}

Response Payload

回复使用统一信封 {id, code, messages, result},其 result:

NameData TypeRequiredDescription
statusstringYespending / satisfied
scorenumberYes当前累加分数
thresholdnumberYes阈值
verifiedFactorsarrayYes已通过的因素
nextFactorsarrayYes仍可选的下一因素
expiresAtstringYes工单过期时间
type ResponseBody = {
  /** pending / satisfied */
  status: string
  /** 当前累加分数 */
  score: number
  /** 阈值 */
  threshold: number
  /** 已通过的因素 */
  verifiedFactors: string[]
  /** 仍可选的下一因素 */
  nextFactors: string[]
  /** 工单过期时间 */
  expiresAt: string
}
{
  "status": "pending",
  "score": 40,
  "threshold": 60,
  "verifiedFactors": [
    "password"
  ],
  "nextFactors": [
    "otp",
    "mfa",
    "captcha"
  ],
  "expiresAt": "2026-10-14T08:10:00Z"
}

Response Code

回复使用统一信封 {id, code, messages, result},其 code 字段:

code Meaning Notes
0 成功 查看尝试状态
2007 工单无效

Examples

{ "attemptTicketId": "atk_9f2c7be14d0a53e8" }
{
  "id": "01JD8SVOS0D6F3GC",
  "code": 0,
  "messages": [],
  "result": {
    "status": "pending",
    "score": 40,
    "threshold": 60,
    "verifiedFactors": ["password"],
    "nextFactors": ["otp", "mfa", "captcha"],
    "expiresAt": "2026-10-14T08:10:00Z"
  }
}