{
  "tags": [
    "公共接口"
  ],
  "description": "获取登录/注册页面所需的验证码类型配置。接口读取系统 captcha_type 配置，并补充腾讯云验证码 appid、带有效期的加密 appid 令牌以及极验 captcha_id；未配置第三方验证码时对应字段为空字符串。该公共接口不要求登录。",
  "operationId": "public_get_v1_common_captcha_type",
  "security": [],
  "responses": {
    "200": {
      "description": "业务结果通过 HTTP 200 返回。成功时返回配置对象；系统维护或认证状态不影响该公共 GET 接口，数据库配置读取异常则不会生成业务错误响应。",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "code",
              "msg",
              "data"
            ],
            "properties": {
              "code": {
                "type": "integer",
                "enum": [
                  0
                ],
                "description": "成功状态码，验证码配置读取成功时固定为 0。"
              },
              "msg": {
                "type": "string",
                "enum": [
                  ""
                ],
                "description": "配置读取成功时固定为空字符串。"
              },
              "data": {
                "type": "object",
                "required": [
                  "email",
                  "phone",
                  "appid",
                  "appid_encrypt",
                  "geetest_captcha_id"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "邮箱验证码方式配置值，例如空字符串表示未启用。"
                  },
                  "phone": {
                    "type": "string",
                    "description": "手机验证码方式配置值，例如 native 表示内置方式。"
                  },
                  "appid": {
                    "type": "string",
                    "description": "腾讯云验证码 AppID；未配置时为空字符串。"
                  },
                  "appid_encrypt": {
                    "type": "string",
                    "description": "使用腾讯云密钥加密的短期 AppID 参数；未配置时为空字符串，示例使用占位值。"
                  },
                  "geetest_captcha_id": {
                    "type": "string",
                    "description": "极验验证码 captcha_id；未配置时为空字符串。"
                  }
                },
                "additionalProperties": true,
                "description": "系统验证码类型配置及服务端补充的第三方验证码参数。"
              }
            },
            "additionalProperties": false
          },
          "example": {
            "code": 0,
            "msg": "",
            "data": {
              "email": "",
              "phone": "native",
              "appid": "",
              "appid_encrypt": "",
              "geetest_captcha_id": ""
            }
          }
        }
      }
    }
  },
  "x-python-handler": "common.GetCaptchaType",
  "x-python-route-line": 1062,
  "x-audience": "user",
  "x-auth": "public",
  "x-reviewed": true,
  "parameters": [],
  "x-itecdn-source-reviewed": true,
  "extensions": [
    {
      "key": "x-python-handler",
      "value": "common.GetCaptchaType"
    },
    {
      "key": "x-python-route-line",
      "value": 1062
    },
    {
      "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-type",
  "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": "获取登录/注册页面所需的验证码类型配置。接口读取系统 captcha_type 配置，并补充腾讯云验证码 appid、带有效期的加密 appid 令牌以及极验 captcha_id；未配置第三方验证码时对应字段为空字符串。该公共接口不要求登录。",
      "type": "text/plain"
    },
    "url": {
      "path": [
        "v1",
        "common",
        "captcha-type"
      ],
      "host": [
        "{{baseUrl}}"
      ],
      "query": [],
      "variable": []
    },
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "method": "GET"
  }
}