Skip to content

Disable Turnstile

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

Disables Cloudflare Turnstile verification for the specified institution. After disabling, portal login flows will no longer require Turnstile challenge completion.

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

No request body required.

Success Response

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

Response Fields

FieldTypeDescription
idnumberInternal record ID
institutionBizIdstringInstitution business ID
turnstileSiteKeystringCloudflare Turnstile site key
turnstileSecretKeystringMasked secret key (only last 4 characters visible)
enabledbooleanAlways false after this operation
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 Turnstile configuration and keys are preserved. Only the enabled flag is set to false.
  • If Turnstile is already disabled, this operation is idempotent and returns the current state.
  • The turnstileSecretKey is masked in the response (format: ****xxxx).
  • To re-enable, use Enable Turnstile.

SlaunchX Internal Documentation