Skip to main content

Why Custom Patterns?

Standard entities cover names, emails, etc. Custom patterns let you detect org-specific data like employee IDs (EMP-123456), project codes, internal account numbers, or any custom identifier.

Request Body

Example Request

Response

Example Response

Response with Conflict

If the new pattern overlaps with existing entity detections, the response includes a conflict block:
When a conflict is detected, an insight is automatically created. Use the Insights API to resolve it.

Using Custom Patterns

Once created, custom patterns are automatically included in sanitization when config.custom_patterns is set to true in the request body:
Response:

List Patterns

GET /v1/patterns returns all patterns for your organization.

Delete Patterns

DELETE /v1/patterns/{pattern_id} removes a pattern.