Skip to content

获取 Turnstile

GET/web/v1/workspaces/{workspaceId}/institutions/{institutionBizId}/turnstileWEB

获取指定机构的 Cloudflare Turnstile 配置。

鉴权

需要有效的 JWT token。网关验证:enableJwtToken=trueenableTurnstile=false

请求参数

路径参数

NameTypeRequiredInDescription
workspaceIdstringYespath工作空间业务 ID
institutionBizIdstringYespath机构业务 ID

成功响应

成功200
{
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "id": 1,
    "institutionBizId": "inst_abc123",
    "turnstileSiteKey": "0x4AAAAAAAB...",
    "turnstileSecretKey": "****abcd",
    "remark": null,
    "createdAt": "2026-03-21T00:00:00Z",
    "updatedAt": "2026-03-21T00:00:00Z"
  }
}

错误响应

错误码描述
4010未授权(无效或缺少 JWT token)
4040机构或 Turnstile 配置未找到

说明

  • 出于安全考虑,turnstileSecretKey 在响应中已脱敏。仅显示最后 4 位字符。

内部文档