NATSattempt.ticket.inspect查看尝试状态
Try it 面板需要启用 JavaScript。
以工单换取当前分数与可选因素;查看不消费。
Request Payload
消息格式:JSON
| Name | Data Type | Required | Description |
|---|---|---|---|
| attemptTicketId | string | Yes | 尝试工单 |
type RequestBody = {
/** 尝试工单 */
attemptTicketId: string
}{
"attemptTicketId": "atk_9f2c7be14d0a53e8"
}Response Payload
回复使用统一信封 {id, code, messages, result},其 result:
| Name | Data Type | Required | Description |
|---|---|---|---|
| status | string | Yes | pending / satisfied |
| score | number | Yes | 当前累加分数 |
| threshold | number | Yes | 阈值 |
| verifiedFactors | array | Yes | 已通过的因素 |
| nextFactors | array | Yes | 仍可选的下一因素 |
| expiresAt | string | Yes | 工单过期时间 |
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"
}
}