Classifier Templates
Classifier templates let you group classifiers into reusable configurations for different compliance frameworks, use cases, or scan profiles. Instead of manually enabling and disabling classifiers before each scan, you select a template that defines exactly which classifiers should run.
What Templates Are
A template is a named collection of classifier IDs with an optional description and default flag. When you start a scan with a template selected, only the classifiers in that template are active for that scan. This does not change the global enable/disable state of classifiers — templates override the active set for the duration of the scan only.
Common template examples:
| Template Name | Classifiers Included | Use Case |
|---|---|---|
| PCI-DSS Compliance | Credit card, bank account, routing number | Payment card industry audits |
| HIPAA | SSN, health records, insurance IDs, medical terms | Healthcare compliance |
| GDPR Personal Data | Email, phone, address, passport, national ID | EU data protection |
| Financial Full | All financial classifiers + SSN + tax IDs | Financial services audits |
| Minimal (Fast Scan) | Email, phone, SSN only | Quick baseline scans |
Creating a Template
- In the Customer Dashboard, navigate to Classifiers in the sidebar.
- Switch to the Templates tab.
- Click Create Template.
- Fill in the template details:
- Name (required) — A descriptive name for the template (e.g., “PCI-DSS Compliance”)
- Description (optional) — Additional context about when to use this template
- Select classifiers to include:
- The dialog shows all available classifiers with checkboxes
- Use the search field to filter classifiers by name or category
- Selected classifiers show a green checkmark
- The header displays the count of selected classifiers
- Optionally toggle Set as Default to make this template the pre-selected option for new scans.
- Click Save.
Only one template can be the default at a time. Setting a new template as default automatically removes the default flag from the previous one.
Setting a Default Template
The default template is automatically pre-selected when creating a new scan. To set a default:
- Navigate to Classifiers > Templates.
- Click Edit on the template you want as default.
- Toggle Set as Default to on.
- Click Save.
Alternatively, when creating a new template, enable the Set as Default toggle during creation.
When a default template exists, the New Scan dialog will pre-select it. You can still change or remove the template selection before starting the scan.
Using Templates in Scans
When you open the New Scan dialog (from the Scans page):
- Select a connector.
- Choose a scan type (Full Discovery, Incremental, or Targeted).
- Under Classifier Template, select the template to use.
- If a default template exists, it is pre-selected automatically.
- Select “None” to use all enabled classifiers (no template filtering).
- Click Start Scan.
The scan will only execute the classifiers included in the selected template. All other classifiers are skipped for that scan, regardless of their global enable/disable state.
If you start a scan with no template selected and “None” chosen, the scan uses all globally enabled classifiers. This is the default behavior when no templates exist.
Editing a Template
- Navigate to Classifiers > Templates.
- Click the template card to open the edit dialog.
- Modify the name, description, default flag, or classifier selection.
- Click Save.
Changes take effect on the next scan that uses this template. Running scans are not affected.
Deleting a Template
- Navigate to Classifiers > Templates.
- Click the Delete button (trash icon) on the template card.
- Confirm the deletion.
Deleting a template does not affect past scan results or currently running scans. If the deleted template was the default, no template will be pre-selected for new scans until you set a new default.
Template vs. Global Classifier State
It is important to understand the relationship between templates and the global classifier enable/disable toggles:
| Scenario | Behavior |
|---|---|
| Classifier enabled globally, included in template | Classifier runs during scan |
| Classifier disabled globally, included in template | Classifier runs during scan (template overrides) |
| Classifier enabled globally, not in template | Classifier does not run during scan |
| No template selected | Only globally enabled classifiers run |
Templates provide scan-level override without changing the global configuration. This makes it safe to keep all classifiers enabled globally while using templates to scope individual scans.
API Reference
Templates are managed through the following API endpoints:
# List all templates
GET /api/v1/classifiers/templates
# Create a template
POST /api/v1/classifiers/templates
{
"name": "PCI-DSS Compliance",
"description": "Payment card industry classifiers",
"classifier_ids": ["clf_001", "clf_002", "clf_003"],
"is_default": true
}
# Update a template
PUT /api/v1/classifiers/templates/:id
# Delete a template
DELETE /api/v1/classifiers/templates/:idLearn More
- Classifiers — Full classifier reference and configuration
- Scan Management — Starting scans with templates
- Detection-as-Code — Version-controlled classifier definitions