id on /api/v1/mask, /api/v1/redact, or the file-redaction
upload. All endpoints accept either a browser session or a
Bearer mk_live_… key.12/v1/glossaries Authorization: Bearer mk_live_...
1234567891011121314{ "id": "f8a9b1c2-3d4e-5f6a-7b8c-9d0e1f2a3b4c", "name": "Project codenames", "enabled": true, "entries": [ { "term": "Project Falcon", "entity_type": "CUSTOM_TERM", "match_mode": "word_boundary", "case_sensitive": false, "locale": null } ] }
| Field | Type | Default | Description |
term | string | — | The term to match (min length 1). |
entity_type | string | CUSTOM_TERM | The entity type the term masks as. |
match_mode | exact | word_boundary | substring | word_boundary | How the term is found. See match modes. |
case_sensitive | boolean | false | Match case exactly when true. |
locale | ar | en | null | null | Pin the entry to one language, or leave it language-agnostic. |
| Method | Path | Effect |
GET | /v1/glossaries | List your glossaries |
POST | /v1/glossaries | Create a glossary (201) |
GET | /v1/glossaries/{id} | Fetch one glossary |
PATCH | /v1/glossaries/{id} | Update name, enabled, and/or entries |
DELETE | /v1/glossaries/{id} | Delete a glossary (204) |
PATCH | /v1/glossaries/{id}/entries | Replace the entry list |
12345678910curl -s -X POST https://api.kindi.me/v1/glossaries \ -H "Authorization: Bearer $KINDI_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Project codenames", "entries": [ { "term": "Project Falcon" }, { "term": "Bluebird", "match_mode": "exact" } ] }'
enabled glossaries auto-apply to every /mask and /redact request.
Toggle it with PATCH /v1/glossaries/{id}:1234curl -s -X PATCH https://api.kindi.me/v1/glossaries/$ID \ -H "Authorization: Bearer $KINDI_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": false }'
glossary_id.PATCH /v1/glossaries/{id}/entries swaps the whole entry list in one call:1234curl -s -X PATCH https://api.kindi.me/v1/glossaries/$ID/entries \ -H "Authorization: Bearer $KINDI_KEY" \ -H "Content-Type: application/json" \ -d '{ "entries": [ { "term": "Project Condor" } ] }'
| Status | Description |
| 200 | Success. |
| 201 | Glossary created. |
| 204 | Glossary deleted. |
| 401 | Missing or invalid auth. |
| 404 | Glossary not found, or not yours (no existence leak across users). |
| 422 | max_glossaries_reached (10 per account) or a glossary over 1,000 entries, or a malformed entry. |
404, not 403, so existence can't be probed.