Redact sensitive data in text and documents — over HTTPS, with clean JSON responses. Built for enterprise customers, white-label embeds and back-office pipelines.
Every request needs a Bearer token in the Authorization header. Create keys under /account/api.
Authorization: Bearer blk_live_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxFinds all sensitive entities in the text and returns them with their category.
curl -X POST https://blackline-documents.com/api/public/v1/detect \
-H "Authorization: Bearer blk_live_xxxxxxxx_..." \
-H "Content-Type: application/json" \
-d '{
"text": "Hallo Max Mustermann, deine IBAN DE89370400440532013000 wurde bestätigt.",
"categories": ["name", "iban"]
}'{
"entities": [
{ "text": "Max Mustermann", "category": "name" },
{ "text": "DE89370400440532013000", "category": "iban" }
]
}Detects sensitive data and replaces it inline. Modes: block (█), stars (*), label ([NAME]).
curl -X POST https://blackline-documents.com/api/public/v1/redact \
-H "Authorization: Bearer blk_live_xxxxxxxx_..." \
-H "Content-Type: application/json" \
-d '{
"text": "Hallo Max Mustermann, deine IBAN DE89370400440532013000 wurde bestätigt.",
"replacement": "block"
}'{
"redacted_text": "Hallo ██████████████, deine IBAN ██████████████████████ wurde bestätigt.",
"entities_detected": 2,
"entities_replaced": [
{ "text": "DE89370400440532013000", "category": "iban", "count": 1 },
{ "text": "Max Mustermann", "category": "name", "count": 1 }
]
}Accepts a PDF file and responds with HTTP 202 + job id. Poll status via GET /api/public/v1/jobs/{id}. Request early access: contact@blackline-documents.com.
name, address, phone, email, iban, credit_card, amount, customer_number, contract_number, tax_id, id_number, date_of_birth, company, signature
401 missing_bearer — no Authorization header401 invalid_or_revoked_key — wrong or revoked key403 missing_scope:* — key lacks the required scope400 invalid_input — body fails validation500 ai_error — internal detection failure, retry recommendedThe API is part of the Enterprise plan (€59.90/month) and includes up to 1,000 documents, 50 seats and white-label embed.