{
  "tags": [
    "公共接口"
  ],
  "description": "生成一次性图形验证码图片。响应为 image/gif 二进制内容，并通过 code Cookie 返回加密验证码数据；Cookie 中的验证码有效期为 60 秒。该公共接口不要求登录，客户端应保存 Cookie 并在后续需要验证码的请求中携带。",
  "operationId": "public_get_v1_common_captcha",
  "security": [],
  "responses": {
    "200": {
      "description": "成功返回 GIF 图像，同时通过 Set-Cookie 写入加密验证码 Cookie。",
      "headers": {
        "Set-Cookie": {
          "description": "名为 code 的加密验证码 Cookie，服务端设置约 60 秒有效期。",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "image/gif": {
          "schema": {
            "type": "string",
            "format": "binary",
            "description": "验证码 GIF 图片二进制内容。"
          },
          "example": "<binary gif payload>"
        }
      }
    }
  },
  "x-python-handler": "common.GetCode",
  "x-python-route-line": 1056,
  "x-audience": "user",
  "x-auth": "public",
  "x-reviewed": true,
  "parameters": [],
  "x-itecdn-source-reviewed": true,
  "extensions": [
    {
      "key": "x-python-handler",
      "value": "common.GetCode"
    },
    {
      "key": "x-python-route-line",
      "value": 1056
    },
    {
      "key": "x-audience",
      "value": "user"
    },
    {
      "key": "x-auth",
      "value": "public"
    },
    {
      "key": "x-reviewed",
      "value": true
    },
    {
      "key": "x-itecdn-source-reviewed",
      "value": true
    }
  ],
  "method": "get",
  "path": "/v1/common/captcha",
  "servers": [
    {
      "url": "https://master.example.invalid",
      "description": "不可调用的示例地址；复制示例后替换为自己的主控域名。"
    }
  ],
  "securitySchemes": {
    "AccessToken": {
      "type": "apiKey",
      "in": "header",
      "name": "access-token",
      "description": "通过登录接口获得的短期访问令牌。"
    },
    "ApiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "api-key",
      "description": "API Key；必须和 api-secret 同时发送。"
    },
    "ApiSecret": {
      "type": "apiKey",
      "in": "header",
      "name": "api-secret",
      "description": "API Secret；必须和 api-key 同时发送。"
    }
  },
  "info": {
    "title": "itecdn v5 用户 API",
    "version": "5.x",
    "description": "itecdn v5.x Python 主控用户 API。本文档不适用于 v6 或其它实现。"
  },
  "postman": {
    "name": "获取图形验证码",
    "description": {
      "content": "生成一次性图形验证码图片。响应为 image/gif 二进制内容，并通过 code Cookie 返回加密验证码数据；Cookie 中的验证码有效期为 60 秒。该公共接口不要求登录，客户端应保存 Cookie 并在后续需要验证码的请求中携带。",
      "type": "text/plain"
    },
    "url": {
      "path": [
        "v1",
        "common",
        "captcha"
      ],
      "host": [
        "{{baseUrl}}"
      ],
      "query": [],
      "variable": []
    },
    "header": [
      {
        "key": "Accept",
        "value": "image/gif"
      }
    ],
    "method": "GET"
  }
}