sumsub/agent-skills

sumsub-manage-applicant-tags

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.

Zobacz źródło

Jak używać

  1. Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
  2. W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
  3. Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/sumsub/agent-skills --skill sumsub-manage-applicant-tags

Przed rozpoczęciem

  • Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
  • Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

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

VerbPathPurpose
POST/resources/applicants/{applicantId}/tags/addAdd 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}/tagsOverwrite — replaces the entire tag set with the body. [] clears all tags. Destructive: requires the confirm step below.
DELETE/resources/applicants/{applicantId}/tagsRemove only the tags listed in the body; the rest stay.
GET/resources/applicants/{applicantId}/oneRead-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:.
VarExample
SUMSUB_APP_TOKENsbx:... — sandbox App Token from the dashboard.
SUMSUB_SECRET_KEYThe paired secret shown once at token creation.
SUMSUB_BASEOptional. 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

  1. 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.

  1. 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 []).

  1. Run the write via the orchestrator (it appends the read-back

automatically):

bash
   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"
  1. 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.

  1. 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

tags, tag definitions with scoring weights (scoreWeight), applicant risk assessment.

tag add/remove as workflow action nodes; routing on applicant.tags.

applicantTagsChanged.

Add and overwrite applicant tags, Add applicant tags, Remove applicant tags.

z tego samego repozytorium

Więcej Skills

Wszystkie Skills
sumsub
Społeczność

sumsub-analyze-regulation

Analyze a regulation document (PDF or text) and produce a Sumsub configuration plan — mapping regulatory requirements to Sumsub entities (levels, questionnaires, PoA presets, TM rules, workflows, AML resolution rules). TRIGGER when the user provides a regulation PDF, legal act, or compliance requirement document and wants to know what to configure in Sumsub. Acts as the entry point before invoking sumsub-create-level, sumsub-create-questionnaire, sumsub-create-poa-preset, sumsub-create-workflow,

Instalacje / 1h
3
GitHub Stars
7
Aktualizacja
30 paź
sumsub
Społeczność

sumsub-api-auth

Authenticate to the Sumsub API with an App Token + secret key (HMAC-SHA256 request signing). TRIGGER when the user asks to "call / sign / authenticate Sumsub API requests", debugs 401 Unauthorized / signature errors against api.sumsub.com, or needs a working request example with X-App-Token / X-App-Access-Sig / X-App-Access-Ts headers. SKIP only when a more specific skill in this repo (questionnaire/level/workflow/POA-preset/generic) already covers the user's actual task — those skills sign requ

Instalacje / 1h
3
GitHub Stars
7
Aktualizacja
30 paź
sumsub
Społeczność

sumsub-api-generic

Catch-all fallback for any Sumsub API task that does NOT match a more specific skill (e.g. create-sumsub-level, sumsub-create-questionnaire, sumsub-api-auth). TRIGGER when the user wants to call, inspect, or debug a Sumsub API endpoint not otherwise covered — fetching applicants, listing levels, reviewing AML hits, exporting data, generating SDK tokens, anything against api.sumsub.com. The procedure — locate the right endpoint in the OpenAPI schema, read its request/response shape, build the pay

Instalacje / 1h
3
GitHub Stars
7
Aktualizacja
30 paź
sumsub
Społeczność

sumsub-check-databases

Discover the Databases (check-sources) Sumsub offers for a country, whether each is enabled for the tenant, and how database / non-document (eKYC) verification fits into a verification level. Use WHEN a user asks which database / non-document check-sources are available for a country, whether they're enabled, or how to add database validation / non-doc identity / non-doc address verification to a level. Also called by sumsub-create-level before placing those sources. Do NOT use for document-only

Instalacje / 1h
3
GitHub Stars
7
Aktualizacja
30 paź