Skip to main content
GET
Get one custom pattern.
Scope: guardrails:patterns:read. See API Tokens.

Authorizations

Authorization
string
header
required

CloudThinker token: a personal access token ct_pat_… (fine-grained scopes, created in Settings) or an OAuth access token ct_oat_… (1 hour, from the OAuth flow). Send Authorization: Bearer <token>. Scopes have the form module:resource:read|write; write includes read.

Path Parameters

workspace_id
string<uuid>
required

Workspace to act in. Every call names it.

pattern_id
string
required

Pattern id.

Response

OK

A custom pattern Guardrails masks before agents see the value.

id
string
required
label
string
required
kind
string
required

The category agents see in place of a matched value: lowercase words joined by single hyphens. Built-in kinds are refused.

regex
string
required
enabled
boolean
required

Whether detection uses this pattern.

created_by
string<uuid>
required
created_at
string<date-time>
required