快速入门
几分钟内开始使用 API
安装我们的 SDK 并进行第一次 API 调用
- 为您的语言安装 SDK
- 从仪表板获取您的 API 令牌
- 进行第一次匿名化请求
- 集成到您的应用程序中
// Analyze text for PII
const response = await fetch('https://anonymize.today/api/presidio/analyze', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: 'Contact John Smith at john.smith@company.com',
language: 'en'
})
});
const results = await response.json();
// Returns detected entities with positions and confidence scores可用端点
POST
/api/presidio/analyzeAnalyze text to detect PII entities. Returns entity types, positions, and confidence scores.
View documentation →POST
/api/presidio/anonymizeAnonymize detected PII using your chosen method. Returns anonymized text.
View documentation →POST
/api/presidio/batchProcess multiple documents in a single request. Enterprise plans support up to 100 documents.
View documentation →GET
/api/healthCheck API status and service health. No authentication required.
Public endpoint高级 API 功能
自定义实体
使用正则表达式创建、管理和使用自定义 PII 检测模式。为行业特定数据定义您自己的实体类型。
POST /api/entities预设 API
保存和重用匿名化配置。为 GDPR、HIPAA、PCI-DSS 或自定义合规需求创建预设。
POST /api/presets个人加密密钥
使用您自己的加密密钥进行可逆匿名化。密钥从不存储在我们的服务器上。
AES-256-GCM共享系统
与团队成员或公众共享预设和自定义实体。通过到期日期控制访问。
POST /api/shareAPI 功能
JWT 认证
所有 API 调用的安全基于令牌的认证
速率限制
公平的速率限制,带有清晰的头信息。企业用户享有更高的限制
代码示例
多种编程语言的现成示例