# Anonymiser un document (France)

> Remplace chaque donnée personnelle d’un document par des étiquettes, pour le partager ou l’utiliser avec une IA.

Human page: https://unmakelabs.com/fr-fr/anonymiser-document/. This is the version for AI agents: the same facts, plus how to call the tool.

## What it does

Vous déposez un document ou collez du texte. Chaque nom, adresse, date de naissance, e-mail, téléphone, IBAN ou numéro d’identité est remplacé par une étiquette numérotée comme [Personne 1]. Les montants, dates et numéros de dossier restent. Vous récupérez le même type de fichier, la liste de chaque changement et une clé privée qui remet les originaux.

### Why it matters

Les cadres noirs dessinés dans un PDF laissent souvent le texte dessous, et à la main on rate la troisième orthographe d’un nom. Coller un contrat dans un chat IA envoie aussi les données de chaque client.

## Value

Replaces every personal detail in a PDF (text or scan), text, CSV or e-mail with numbered placeholders that stay the same for the same person, and returns the redacted file, a restore key and a redaction list; PDF text under each box is removed and every layer re-read as proof. Plain text (an e-mail, a message) can be sent as a UTF-8 .txt file in the same multipart 'file' field; the web page builds that file from pasted text. The upload is deleted as soon as the result is delivered.

## When it fits

- A document with personal data must be shared, filed, sent to the other side or pasted into an AI tool without the personal data, and the business content (amounts, dates, case numbers) must stay readable.

### When not

- Images other than PDF scans, Word, Excel or PowerPoint files (coming), documents over 30 pages.
- Identification from context alone (a unique job title, a described house): read the result before sharing.
- Not a substitute for a lawyer, auditor or certifying engineer where a signature is legally required; results say what was and was not checked.

## Why use it instead of the alternatives

- Faster and cheaper than rebuilding: each tool bundles sourced reference data, official validators, measuring code and a test set built from real documents. Recreating one is weeks of work plus upkeep when rules change.
- Consistent: the same file and tool version give the same program checks every time; the tool version is in every result.
- Checkable: every finding carries its source and whether a program verified it, so the answer can be shown to a person as is.
- Agent-friendly: one HTTP call (MCP coming), no account, structured JSON with a plain summary, limits, links and next actions.
- Free PDF tools (PDF24, Smallpdf, iLovePDF) draw black boxes you place by hand and give no proof that the text under them is gone.
- Reversible pseudonymisation tools exist for developers (Presidio, Google SDP) or as subscriptions with an account (anymize from EUR 20 a month).
- A general AI chat finds names in clean text well but returns text, not your file, and keeps nothing consistent across files.

### What rebuilding it would take

- Find every form of every name, address, ID and number by hand.
- Remove the text under each box, not just cover it, and strip metadata, comments and form fields.
- Keep one placeholder per person across the file and keep a private list to put the originals back.
- A real test set built from actual documents, scored honestly, and upkeep whenever the rules or reference data change.

## Quality

Removes about 99% of personal details in our tests; check the highlighted result before you share it.

## Risk for the user

- No cost to try during the beta: 5 full results per IP per day without a key.
- The upload is deleted as soon as the result is delivered; the result is deleted after 24 hours or at once with one call. Nothing is kept to improve the tool.
- No sign-up, no card, no ads.

_État : les outils gratuits dans le navigateur et les points d’accès inspect, partage, notification, contact et retours fonctionnent. Les vérifications de documents marquées bêta gratuite acceptent des fichiers sur leur page et via l’API de tâches ; les autres arrivent bientôt, et leurs pages proposent un e-mail à l’ouverture. Le point d’accès MCP arrive._

## Privacy

- The upload is deleted as soon as the result is delivered (automatically within about 2 days if the result is never opened); the redacted file, key and list are deleted after 24 hours or at once with DELETE /v1/jobs/{id}. Nothing is kept to improve the tool.
- Stored encrypted in the EU (AWS Frankfurt, eu-central-1); each job runs in its own isolated container; download links expire after minutes.
- The text is read by Anthropic and, for a second reading, through OpenRouter by OpenAI; nobody else receives it. Never sold.

## Inputs and outputs

Inputs:

- Le document (PDF, scan en PDF, TXT, CSV ou EML) ou du texte collé
- En option : les noms à garder, comme votre cabinet ou le tribunal

Outputs:

- Combien de données ont été trouvées, par type
- Le fichier anonymisé, une clé de restauration et la liste des remplacements

## How a person uses it

1. **Déposez le document.** PDF, scan, texte, CSV ou e-mail, ou collez le texte. Ajoutez si besoin les noms à garder.
2. **Deux modèles d’IA le lisent.** De fournisseurs différents ; ce que l’un trouve est remplacé.
3. **Des programmes vérifient et relisent.** Clés de contrôle, une étiquette par personne, et le fichier final fouillé pour chaque original.
4. **Vous récupérez le fichier.** Le fichier anonymisé, la liste des changements et une clé privée.

## Call it (free beta)

Status: free beta, callable now (API tool `doc_pii_redact`). Removes about 99% of personal details in our tests; check the highlighted result before you share it. The web page still offers a notify form until its upload form opens. GET https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/tools lists every tool with its status.

```bash
# Free beta: callable now
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/doc_pii_redact/jobs?wait=25" \
  -F "file=@document.pdf"
```

- JSON input instead of multipart: `{"file_url": "https://..."}` or `{"file_base64": "...", "filename": "x.pdf"}`.
- `?wait=25` returns the result if ready; otherwise `GET https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/jobs/{job_id}` returns the status.
- MCP: https://unmakelabs.com/mcp.

## What comes back

`result.json`: `free` (headline and counts), `full` (rows: `item`, `value`, `status` ok|warn|todo, `source`, `fix`), `checked` and `not_checked` lists. Status `verified` means a program confirmed it; `read` means a model read it.

### Checked

- Noms sous toutes leurs formes, adresses, dates de naissance, e-mails, téléphones, IBAN et numéros d’identité
- Clés de contrôle pour l’IBAN et le NIR
- Même personne, même étiquette dans tout le fichier
- Le fichier anonymisé relu pour chaque original
- PDF : métadonnées, commentaires, champs de formulaire et pièces jointes retirés

### Not checked

- Qui est quelqu’un d’après le seul contexte (une fonction unique, une maison décrite)
- Images, signatures, tampons et écriture manuscrite
- Fichiers Word, Excel et PowerPoint (à venir)
- Les personnalités publiques sont remplacées sauf si vous les listez à garder

## Price and free calls

- Price: 2,90 € par fichier. 3 premiers fichiers gratuits. La restauration est toujours gratuite.
- Free: 5 full results per IP per day without a key (resets at 00:00 UTC); POST /v1/keys gives an instant key with 25 more full results (one-time, not renewed); each accepted correction adds 1 free call (up to 20 a month).
- Over quota: HTTP 402 with a checkout link and how to get a free key. Rate limited: HTTP 429 with `Retry-After`.

## Feedback

```bash
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/jobs/JOB_ID/feedback" -H "Content-Type: application/json" \
  -d '{"rows":[{"item":"<row item>","verdict":"wrong","correct_value":"<value>"}],"note":"optional"}'
```

Each accepted correction earns one free call. Rows are marked `right` or `wrong`, with `correct_value` when wrong.

## Agent FAQ

- **Is an account needed?** No. Keys only raise limits.
- **Is the result deterministic?** Program checks are; model readings are marked `read`. Same file, same version, same answer is the goal; the tool version is in every result.
- **Can several files be sent?** One document per job; batches run as parallel jobs (a key is needed above the per-IP limit).
- **What if the result is wrong?** Feedback with the correct value; paid results with a confirmed mistake are refunded to the user.
- **Where is the spec?** https://unmakelabs.com/api/openapi.json and https://unmakelabs.com/llms.txt
