Sumsub — Manage Applicant Tags
Adds, replaces, and removes tags on an applicant profile, always followed by
a read-back. Tags are free-form labels used for filtering and classification
in the applicant list; they are also readable as applicant.tags in workflow
routing and TM rule expressions.
Endpoints
| Verb |
Path |
Purpose |
POST |
/resources/applicants/{applicantId}/tags/add |
Add tags on top of the existing set. Additive; repeat adds of an existing tag are deduped server-side. Body: bare JSON array of strings. |
POST |
/resources/applicants/{applicantId}/tags |
Overwrite — replaces the entire tag set with the body. [] clears all tags. Destructive: requires the confirm step below. |
DELETE |
/resources/applicants/{applicantId}/tags |
Remove only the tags listed in the body; the rest stay. |
GET |
/resources/applicants/{applicantId}/one |
Read-back. Tags come back in the tags field of the applicant — there is no dedicated tags GET. |
All writes return {"ok": 1} on success. Tag names not seen before are
auto-created on both the add and the overwrite endpoint (sandbox-verified;
the docs' claim that overwrite requires pre-existing tags is outdated).
Tag definitions — renaming a tag, picking its color, or the "include tag in
applicant summary report" flag — are Sumsub dashboard UI only (Applicant
tags page); there is no public-API surface for them.
Auth — App Token + secret (sandbox only)
This skill talks to the public Sumsub API and signs each request per
the authentication reference.
The full how-it-works writeup lives in the sumsub-api-auth
skill — read it if you hit 401 Invalid signature.
⚠️ Sandbox tokens only. Do not accept or use a production App Token
here. If the user offers one, refuse and ask them to generate a sandbox
pair at https://cockpit.sumsub.com/checkus/home?sbx=true (Connect
Sumsub to your AI agent -> Build & configure -> Generate token).
Token + secret are shown once — copy both before closing the dialog. The helper script
enforces this — it rejects tokens that don't start with sbx:.
| Var |
Example |
SUMSUB_APP_TOKEN |
sbx:... — sandbox App Token from the dashboard. |
SUMSUB_SECRET_KEY |
The paired secret shown once at token creation. |
SUMSUB_BASE |
Optional. Defaults to https://api.sumsub.com. |
If the user has already supplied credentials in conversation, reuse them;
otherwise ask once before running. Never echo the secret back.
Procedure
Pick the operation. Default to the additive add — it is safe and
deduped. Use overwrite only when the user explicitly wants to replace
the whole set (or clear it); use remove to take specific tags off. Do not
pre-GET before add or remove — the endpoints are targeted and
idempotent, the read-back in step 3 is the verification.
Overwrite only — confirm first. GET the applicant, show the user the
current tags that will be lost, and get explicit confirmation before
POSTing the replacement set. Same gate applies to clearing all tags
(overwrite with []).
Run the write via the orchestrator (it appends the read-back
automatically):
bash scripts/manage_applicant_tags.sh list <applicantId>
bash scripts/manage_applicant_tags.sh add <applicantId> "High Risk" "VIP"
bash scripts/manage_applicant_tags.sh overwrite <applicantId> "Compliance Reviewed" # after the confirm step!
bash scripts/manage_applicant_tags.sh remove <applicantId> "Legacy KYC"
Compare the read-back to what was requested. An empty set comes back
with the tags field absent from GET /one — that is the normal
"no tags" state, not an error. On a mismatch, report it — do not retry
automatically. Surface 4xx errors verbatim.
Report, names first. Lead with the applicant's name and the resulting
tag list, then the dashboard link
(https://cockpit.sumsub.com/checkus/applicant/<applicantId> — render as
a clickable markdown link), and put the applicant id on its own last
line.
Gotchas
- 30-tag cap per applicant. Exceeding it (existing + new) fails the whole
request with HTTP 400
"Too many applicant tags" — atomically, nothing is
applied. Report the 30-tag limit and stop there: do not trim the list
and retry, and never delete or overwrite existing tags to make room in the
same run — freeing up slots is a destructive decision the user must make
explicitly, in a fresh request.
- Tag names are case-sensitive —
"High Risk" and "high risk" are two
different tags. Match the user's existing casing when removing.
- Overwrite replaces everything.
POST .../tags with any body wipes tags
not listed in it. When the user says "add", never use the overwrite
endpoint.
- Empty = absent. After clearing tags,
GET /one has no tags field at
all. Read-back logic must treat a missing field as an empty set.
- Unknown applicant → HTTP 404
"Applicant with id ... not found (anf)"
(not 400). Ask the user to re-check the id.
- Tag changes fire the
applicantTagsChanged webhook — relevant if the
tenant subscribes to it (see sumsub-manage-webhooks).
See also
1---2name: sumsub-manage-applicant-tags3description: Add, replace, or remove tags on a Sumsub applicant profile via the public API — `POST /resources/applicants/{applicantId}/tags/add` (additive), `POST .../tags` (overwrite the full set), `DELETE .../tags` (remove), read-back via `GET .../one`. TRIGGER when the user asks to "tag / untag an applicant", "add / remove / clear applicant tags", "label an applicant profile", or "replace an applicant's tag set". SKIP for transaction tags, tag definitions with scoring weights, or applicant risk assessment (use `sumsub-create-kyt-rules`), for automated tagging inside verification workflows (use `sumsub-create-workflow`), and for subscribing to tag-change webhooks (use `sumsub-manage-webhooks`).4---56# Sumsub — Manage Applicant Tags78Adds, replaces, and removes tags on an applicant profile, always followed by9a read-back. Tags are free-form labels used for filtering and classification10in the applicant list; they are also readable as `applicant.tags` in workflow11routing and TM rule expressions.1213## Endpoints1415| Verb | Path | Purpose |16|---|---|---|17| `POST` | `/resources/applicants/{applicantId}/tags/add` | **Add** tags on top of the existing set. Additive; repeat adds of an existing tag are deduped server-side. Body: bare JSON array of strings. |18| `POST` | `/resources/applicants/{applicantId}/tags` | **Overwrite** — replaces the entire tag set with the body. `[]` clears all tags. Destructive: requires the confirm step below. |19| `DELETE` | `/resources/applicants/{applicantId}/tags` | **Remove** only the tags listed in the body; the rest stay. |20| `GET` | `/resources/applicants/{applicantId}/one` | Read-back. Tags come back in the `tags` field of the applicant — there is no dedicated tags GET. |2122All writes return `{"ok": 1}` on success. Tag names not seen before are23**auto-created** on both the add and the overwrite endpoint (sandbox-verified;24the docs' claim that overwrite requires pre-existing tags is outdated).2526Tag *definitions* — renaming a tag, picking its color, or the "include tag in27applicant summary report" flag — are **Sumsub dashboard UI only** (Applicant28tags page); there is no public-API surface for them.2930## Auth — App Token + secret (sandbox only)3132This skill talks to the public Sumsub API and signs each request per33[the authentication reference](https://docs.sumsub.com/reference/authentication).34The full how-it-works writeup lives in the [`sumsub-api-auth`](../sumsub-api-auth/SKILL.md)35skill — read it if you hit `401 Invalid signature`.3637> **⚠️ Sandbox tokens only.** Do **not** accept or use a production App Token38> here. If the user offers one, refuse and ask them to generate a sandbox39> pair at <https://cockpit.sumsub.com/checkus/home?sbx=true> (**Connect40> Sumsub to your AI agent** -> **Build & configure** -> **Generate token**).41> Token + secret are shown once — copy both before closing the dialog. The helper script42> enforces this — it rejects tokens that don't start with `sbx:`.4344| Var | Example |45|---|---|46| `SUMSUB_APP_TOKEN` | `sbx:...` — sandbox App Token from the dashboard. |47| `SUMSUB_SECRET_KEY` | The paired secret shown once at token creation. |48| `SUMSUB_BASE` | Optional. Defaults to `https://api.sumsub.com`. |4950If the user has already supplied credentials in conversation, reuse them;51otherwise ask once before running. Never echo the secret back.5253## Procedure54551. **Pick the operation.** Default to the additive `add` — it is safe and56 deduped. Use `overwrite` **only** when the user explicitly wants to replace57 the whole set (or clear it); use `remove` to take specific tags off. Do not58 pre-GET before `add` or `remove` — the endpoints are targeted and59 idempotent, the read-back in step 3 is the verification.602. **Overwrite only — confirm first.** GET the applicant, show the user the61 current tags that will be lost, and get explicit confirmation before62 POSTing the replacement set. Same gate applies to clearing all tags63 (overwrite with `[]`).643. **Run the write via the orchestrator** (it appends the read-back65 automatically):6667 ```bash68 bash scripts/manage_applicant_tags.sh list <applicantId>69 bash scripts/manage_applicant_tags.sh add <applicantId> "High Risk" "VIP"70 bash scripts/manage_applicant_tags.sh overwrite <applicantId> "Compliance Reviewed" # after the confirm step!71 bash scripts/manage_applicant_tags.sh remove <applicantId> "Legacy KYC"72 ```73744. **Compare the read-back** to what was requested. An empty set comes back75 with the `tags` field **absent** from `GET /one` — that is the normal76 "no tags" state, not an error. On a mismatch, report it — do not retry77 automatically. Surface 4xx errors verbatim.785. **Report, names first.** Lead with the applicant's name and the resulting79 tag list, then the dashboard link80 (`https://cockpit.sumsub.com/checkus/applicant/<applicantId>` — render as81 a clickable markdown link), and put the applicant `id` on its own last82 line.8384## Gotchas8586- **30-tag cap per applicant.** Exceeding it (existing + new) fails the whole87 request with HTTP 400 `"Too many applicant tags"` — atomically, nothing is88 applied. Report the 30-tag limit and **stop there**: do not trim the list89 and retry, and never delete or overwrite existing tags to make room in the90 same run — freeing up slots is a destructive decision the user must make91 explicitly, in a fresh request.92- **Tag names are case-sensitive** — `"High Risk"` and `"high risk"` are two93 different tags. Match the user's existing casing when removing.94- **Overwrite replaces everything.** `POST .../tags` with any body wipes tags95 not listed in it. When the user says "add", never use the overwrite96 endpoint.97- **Empty = absent.** After clearing tags, `GET /one` has no `tags` field at98 all. Read-back logic must treat a missing field as an empty set.99- **Unknown applicant → HTTP 404** `"Applicant with id ... not found (anf)"`100 (not 400). Ask the user to re-check the id.101- **Tag changes fire the `applicantTagsChanged` webhook** — relevant if the102 tenant subscribes to it (see `sumsub-manage-webhooks`).103104## See also105106- [`sumsub-create-kyt-rules`](../sumsub-create-kyt-rules/SKILL.md) — transaction107 tags, tag definitions with scoring weights (`scoreWeight`), applicant risk108 assessment.109- [`sumsub-create-workflow`](../sumsub-create-workflow/SKILL.md) — automated110 tag add/remove as workflow action nodes; routing on `applicant.tags`.111- [`sumsub-manage-webhooks`](../sumsub-manage-webhooks/SKILL.md) — subscribe to112 `applicantTagsChanged`.113- Sumsub docs: [Applicant tags](https://docs.sumsub.com/docs/add-applicant-tags.md),114 [Add and overwrite applicant tags](https://docs.sumsub.com/reference/adding-overwriting-custom-applicant-tags.md),115 [Add applicant tags](https://docs.sumsub.com/reference/add-custom-applicant-tags.md),116 [Remove applicant tags](https://docs.sumsub.com/reference/remove-custom-applicant-tags.md).