Skip to content

Get Turnstile Config

GET/web/v1/system/workspaces/{workspaceId}/institutions/{institutionBizId}/portals/turnstile WEB

Retrieves the Cloudflare Turnstile configuration for the specified institution.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token

Request Parameters

Path Parameters

NameTypeRequiredInDescription
workspaceIdstringRequiredpathWorkspace business ID
institutionBizIdstringRequiredpathInstitution business ID

Success Response

Success 200
{
  "success": true,
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "id": 1,
    "institutionBizId": "INST_ACME_001",
    "turnstileSiteKey": "0x4AAAAAAABkMYinukE8nMDQ",
    "turnstileSecretKey": "****nMDQ",
    "enabled": true,
    "remark": "Production turnstile",
    "createdAt": "2026-03-21T00:00:00Z",
    "updatedAt": "2026-03-21T00:00:00Z"
  }
}

Response Fields

FieldTypeDescription
idnumberInternal record ID
institutionBizIdstringInstitution business ID
turnstileSiteKeystringCloudflare Turnstile site key (full value)
turnstileSecretKeystringMasked secret key (only last 4 characters visible, e.g. ****nMDQ)
enabledbooleanWhether Turnstile verification is currently enabled
remarkstring|nullConfiguration remark
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last update timestamp

Error Responses

CodeDescription
4010Unauthorized (invalid or missing JWT token)
4040Institution or turnstile configuration not found

Notes

  • The turnstileSecretKey is masked in the response for security purposes. Only the last 4 characters are visible (format: ****xxxx).
  • The enabled field indicates whether Turnstile is actively enforced. Use the Enable Turnstile / Disable Turnstile endpoints to toggle.

SlaunchX Internal Documentation