快速入门
几分钟内开始使用 API
安装我们的 SDK 并进行第一次 API 调用
- 为您的语言安装 SDK
- 从仪表板获取您的 API 令牌
- 进行您的第一次匿名请求
- 集成到您的应用程序中
// Analyze text for PII
const response = await fetch('https://anonym.legal/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 endpointAPI 功能
JWT 认证
所有 API 调用的安全基于令牌的认证
速率限制
公平的速率限制和清晰的头信息。企业用户享有更高的限制
代码示例
多种编程语言的现成示例