NATScaptcha.challenge.create签发图形验证码挑战
Try it 面板需要启用 JavaScript。
生成挑战并返回图片与挑战工单;答案不随响应下发。
Request Payload
消息格式:JSON
该 jsonschema:parameters 围栏未声明任何属性
Response Payload
回复使用统一信封 {id, code, messages, result},其 result:
| Name | Data Type | Required | Description |
|---|---|---|---|
| captchaId | string | Yes | 挑战 ID |
| image | string | Yes | 挑战图片(base64 PNG) |
| ticketId | string | Yes | 挑战工单(校验时携带) |
| expiresAt | string | Yes | 挑战过期时间 |
type ResponseBody = {
/** 挑战 ID */
captchaId: string
/** 挑战图片(base64 PNG) */
image: string
/** 挑战工单(校验时携带) */
ticketId: string
/** 挑战过期时间 */
expiresAt: string
}{
"captchaId": "01JD8SJE0M4P8W3XN7R2VDH5T8A",
"image": "iVBORw0KGgoAAAANSUhEUgAA...",
"ticketId": "cpt_6f13bc82e0497a51",
"expiresAt": "2026-10-14T08:10:00Z"
}Response Code
回复使用统一信封 {id, code, messages, result},其 code 字段:
| code | Meaning | Notes |
|---|---|---|
| 0 | 成功 | 签发图形验证码挑战 |
Examples
{}
{
"id": "01JD8SVKO6Z2B9CY",
"code": 0,
"messages": [],
"result": {
"captchaId": "01JD8SJE0M4P8W3XN7R2VDH5T8A",
"image": "iVBORw0KGgoAAAANSUhEUgAA...",
"ticketId": "cpt_6f13bc82e0497a51",
"expiresAt": "2026-10-14T08:10:00Z"
}
}