sumsub-manage-applicant-tags
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSumsub — Manage Applicant Tags
Sumsub — 管理申请人标签
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 in workflow
routing and TM rule expressions.
applicant.tags对申请人资料进行标签的添加、替换和移除操作,操作后均会执行标签读取验证。标签是用于申请人列表筛选和分类的自由格式标签;在工作流路由和TM规则表达式中,标签也可通过字段读取。
applicant.tagsEndpoints
接口端点
| Verb | Path | Purpose |
|---|---|---|
| | 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. |
| | Overwrite — replaces the entire tag set with the body. |
| | Remove only the tags listed in the body; the rest stay. |
| | Read-back. Tags come back in the |
All writes return 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).
{"ok": 1}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.
| Verb | Path | Purpose |
|---|---|---|
| | 添加标签至现有标签集。增量式添加;重复添加已存在的标签会由服务器自动去重。请求体:纯JSON字符串数组。 |
| | 覆盖——用请求体替换整个标签集。传入 |
| | 移除仅在请求体中列出的标签;其余标签保留。 |
| | 读取标签信息。标签会返回在申请人信息的 |
所有写入操作成功后均返回。此前未出现过的标签名称会在添加和覆盖接口中自动创建(已在沙箱环境验证;文档中声称覆盖操作需标签预先存在的说法已过时)。
{"ok": 1}标签定义——重命名标签、选择标签颜色或“在申请人摘要报告中包含标签”的设置——仅能通过Sumsub控制台UI(申请人标签页面)操作;公开API不支持此类操作。
Auth — App Token + secret (sandbox only)
身份验证 — App Token + 密钥(仅沙箱环境)
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
skill — read it if you hit .
sumsub-api-auth401 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/devSpace/appTokens (toggle the workspace to Sandbox first, then Create). 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 |
|---|---|
| |
| The paired secret shown once at token creation. |
| Optional. Defaults to |
If the user has already supplied credentials in conversation, reuse them;
otherwise ask once before running. Never echo the secret back.
本技能调用Sumsub公开API,并按照身份验证参考文档对每个请求进行签名。完整的工作原理说明请查看技能——若遇到错误,请阅读该文档。
sumsub-api-auth401 Invalid signature⚠️ 仅支持沙箱令牌。请勿接受或使用生产环境的App Token。若用户提供生产环境令牌,请拒绝并要求其在https://cockpit.sumsub.com/checkus/devSpace/appTokens生成沙箱环境令牌对(先将工作区切换至Sandbox,再点击Create)。令牌和密钥仅会显示一次——关闭对话框前请复制两者。辅助脚本会强制执行此规则——拒绝所有不以开头的令牌。sbx:
| 变量 | 示例 |
|---|---|
| |
| 创建令牌时一次性显示的配对密钥。 |
| 可选参数。默认值为 |
若用户已在对话中提供过凭证,请复用;否则在执行操作前询问一次。切勿回显密钥。
Procedure
操作流程
-
Pick the operation. Default to the additive— it is safe and deduped. Use
addonly when the user explicitly wants to replace the whole set (or clear it); useoverwriteto take specific tags off. Do not pre-GET beforeremoveoradd— the endpoints are targeted and idempotent, the read-back in step 3 is the verification.remove -
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
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 thefield absent from
tags— that is the normal "no tags" state, not an error. On a mismatch, report it — do not retry automatically. Surface 4xx errors verbatim.GET /one -
Report, names first. Lead with the applicant's name and the resulting tag list, then the dashboard link (— render as a clickable markdown link), and put the applicant
https://cockpit.sumsub.com/checkus/applicant/<applicantId>on its own last line.id
-
选择操作类型。默认使用增量式操作——该操作安全且支持自动去重。仅当用户明确要求替换整个标签集(或清空标签)时使用
add操作;使用overwrite操作移除特定标签。在执行remove或add操作前无需预先调用GET接口——这些端点是针对性的且具有幂等性,步骤3中的读取验证即可完成校验。remove -
仅覆盖操作需先确认。调用GET接口获取申请人信息,向用户展示即将被覆盖的当前标签,并在发送替换标签集的POST请求前获得明确确认。清空所有标签(用覆盖)时同样需要此确认步骤。
[] -
通过编排器执行写入操作(会自动附加读取验证步骤):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" # 需先完成确认步骤! bash scripts/manage_applicant_tags.sh remove <applicantId> "Legacy KYC" -
对比读取结果与请求内容。若标签集为空,接口返回的结果中不会包含
GET /one字段——这是正常的“无标签”状态,并非错误。若结果与请求不符,请进行报告——不要自动重试。直接展示4xx错误信息。tags -
优先报告名称信息。先展示申请人姓名和最终标签列表,再提供控制台链接(——渲染为可点击的markdown链接),最后单独一行展示申请人
https://cockpit.sumsub.com/checkus/applicant/<applicantId>。id
Gotchas
注意事项
- 30-tag cap per applicant. Exceeding it (existing + new) fails the whole
request with HTTP 400 — 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.
"Too many applicant tags" - Tag names are case-sensitive — and
"High Risk"are two different tags. Match the user's existing casing when removing."high risk" - Overwrite replaces everything. with any body wipes tags not listed in it. When the user says "add", never use the overwrite endpoint.
POST .../tags - Empty = absent. After clearing tags, has no
GET /onefield at all. Read-back logic must treat a missing field as an empty set.tags - Unknown applicant → HTTP 404 (not 400). Ask the user to re-check the id.
"Applicant with id ... not found (anf)" - Tag changes fire the webhook — relevant if the tenant subscribes to it (see
applicantTagsChanged).sumsub-manage-webhooks
- 每个申请人最多30个标签。超过此上限(现有标签+新增标签)会导致整个请求失败,返回HTTP 400错误——操作是原子性的,不会有任何标签被应用。请告知用户30个标签的限制并停止操作:不要修剪标签列表并重试,切勿在同一操作中删除或覆盖现有标签来腾出空间——释放标签位是具有破坏性的决策,必须由用户明确发起新请求来执行。
"Too many applicant tags" - 标签名称区分大小写——和
"High Risk"是两个不同的标签。移除标签时需匹配用户使用的大小写格式。"high risk" - 覆盖操作会替换所有标签。接口传入任何请求体都会清除未在其中列出的标签。当用户要求“添加”标签时,切勿使用覆盖接口。
POST .../tags - 空标签集=字段不存在。清空标签后,接口返回的结果中完全没有
GET /one字段。读取验证逻辑需将缺失的字段视为空标签集。tags - 未知申请人→HTTP 404错误(不是400错误)。请要求用户重新检查申请人ID。
"Applicant with id ... not found (anf)" - 标签变更会触发webhook——若租户已订阅该webhook则相关(请查看
applicantTagsChanged)。sumsub-manage-webhooks
See also
另请参阅
- — transaction tags, tag definitions with scoring weights (
sumsub-create-kyt-rules), applicant risk assessment.scoreWeight - — automated tag add/remove as workflow action nodes; routing on
sumsub-create-workflow.applicant.tags - — subscribe to
sumsub-manage-webhooks.applicantTagsChanged - Sumsub docs: Applicant tags, Add and overwrite applicant tags, Add applicant tags, Remove applicant tags.
- ——交易标签、带评分权重的标签定义(
sumsub-create-kyt-rules)、申请人风险评估。scoreWeight - ——作为工作流操作节点的自动添加/移除标签;基于
sumsub-create-workflow进行路由。applicant.tags - ——订阅
sumsub-manage-webhooks事件。applicantTagsChanged - Sumsub文档:Applicant tags、Add and overwrite applicant tags、Add applicant tags、Remove applicant tags。