确认电子邮件地址

OpenAPI 契约

方法
POST
路径
/api/v1/auth/email-verification/confirm
认证
None
响应状态
200 400 429 500
请求与响应 Schema
JSON
{
  "requestBody": {
    "application/json": {
      "$ref": "#/components/schemas/ConfirmEmailRequest"
    }
  },
  "responses": {
    "200": {
      "description": "Email verified",
      "content": {
        "application/json": {}
      }
    },
    "400": {
      "description": "Invalid request",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/RequestError"
        }
      }
    },
    "429": {
      "description": "Rate limit exceeded",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/SecurityError"
        }
      }
    },
    "500": {
      "description": "Unexpected server error",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

POST /api/v1/auth/email-verification/confirm 为公开接口,接收 JSON 请求体,其中包含验证链接中的一次性 token。成功时返回 HTTP 200 和确认消息。过期、无效或已使用的令牌会被拒绝。

令牌属于敏感信息,不得写入日志或诊断记录。确认后,账户可按已验证身份政策获得免费 NCU 资格;曾经领取过额度的邮箱不一定会再次获得额度。