Current Version
| Item | Value |
|---|
| API version | v1 |
| Service version | 0.1.0 |
| Base URL | https://trapdefense.com/api/v1 |
Versioning Policy
- The API version is part of the URL path:
/v1/scan, /v1/decide, /v1/redact - Breaking changes ship in a new version such as
/v2/ - Non-breaking additions such as new fields, new patterns, new presets, or new PII profiles may land within the current version
Non-breaking examples
- New detection patterns
- New policy presets
- New PII profiles
- Additional response fields
Breaking examples
- Removing an existing field
- Changing a field type
- Renaming pattern IDs
- Changing the response structure
- Replacing the authentication scheme
Changelog
v1 / 0.1.0 (2026-04-06)
Initial API release:
- 3 endpoints:
/v1/scan, /v1/decide, /v1/redact - 32 detection patterns
- 17 policy presets
- 17 PII profiles
- Bearer token authentication
shadow, warn, and enforce modes
Current Limits
| Item | Value |
|---|
| Request size | 256 KB (nginx limit) |
Known Limitations
| Area | Notes |
|---|
| Pattern detection | Regex-based and strongest on known, explicit patterns |
| PII detection | Format-based; broad numeric formats can still collide with non-PII values |
| Policy evaluation | Stateless; each request is evaluated independently |
| File and binary content | Text-only |
| Language coverage | Strongest for English and Korean patterns today |
| Overlapping PII formats | Some numeric formats can overlap; explicit pii_profiles reduce noise |
Health Check
curl https://trapdefense.com/api/health
A healthy service returns {"ok": true}.
Support