sumsub/agent-skills / skills/sumsub-create-workflow
sumsub-create-workflow
VerifiedCreate a Sumsub applicant workflow — verification routing (levels, branches, country/age rules, final-rejection or manual-review steps) or an action workflow (post-verification tagging, notes, source-key changes). TRIGGER on requests to create/build/add a workflow or a flowchart-style routing description. Builds, validates, and saves a draft, then publishes it — gated by live traffic — automatically when the workflow's traffic is low, only after explicit confirmation when it's high. Publishing changes LIVE traffic — see the Danger section. SKIP for editing arbitrary fields of an existing revision, or for questionnaires/levels (separate skills).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 27.6 KB |
| examples/action-workflow.json | config | 2.0 KB |
| examples/aml-routing.json | config | 3.2 KB |
| examples/country-routing.json | config | 1.9 KB |
| examples/risk-routing.json | config | 1.2 KB |
| references/workflow-expressions.md | markdown | 321.2 KB |
| references/workflow-notices.md | markdown | 19.5 KB |
| references/workflow-patterns.md | markdown | 15.9 KB |
| references/workflow-schema.md | markdown | 16.2 KB |
| scripts/build_workflow.pyexecutable | script | 19.3 KB |
| scripts/post_workflow.shexecutable | script | 2.0 KB |
| scripts/publish_workflow.shexecutable | script | 2.2 KB |
| scripts/workflow_api.pyexecutable | script | 14.4 KB |
scripts/publish_workflow.sh
View on GitHub#!/usr/bin/env bash
# Promote a workflow revision to a target status.
#
# Authenticates via App Token + secret (HMAC-SHA256) per
# https://docs.sumsub.com/reference/authentication.
#
# Usage:
# SUMSUB_APP_TOKEN=sbx:... \
# SUMSUB_SECRET_KEY=... \
# ./publish_workflow.sh <workflow-id> [draft|published|archived]
#
# Default status is `published`. Drafts ship in `draft` so this script is the
# explicit "go live" step. Pass `archived` to retire a previously-published
# revision; pass `draft` to revert an over-eager publish (admins only).
#
# Refuses non-sandbox tokens unless SUMSUB_ALLOW_PROD=1.
# Override SUMSUB_BASE only for testing; default is https://api.sumsub.com.
#
# Prints the response body followed by a final line: HTTP <code>
set -euo pipefail
: "${SUMSUB_APP_TOKEN:?SUMSUB_APP_TOKEN is required (sandbox App Token, 'sbx:' prefix)}"
: "${SUMSUB_SECRET_KEY:?SUMSUB_SECRET_KEY is required (paired secret key)}"
BASE="${SUMSUB_BASE:-https://api.sumsub.com}"
if [[ "${SUMSUB_APP_TOKEN}" != sbx:* && "${SUMSUB_ALLOW_PROD:-0}" != "1" ]]; then
echo "error: SUMSUB_APP_TOKEN does not look like a sandbox token (expected 'sbx:' prefix)." >&2
echo " Production credentials must not be shared with this skill." >&2
exit 3
fi
if [[ $# -lt 1 ]]; then
echo "usage: $0 <workflow-id> [draft|published|archived]" >&2
exit 2
fi
WORKFLOW_ID="$1"
STATUS="${2:-published}"
case "${STATUS}" in
draft|published|archived) ;;
*)
echo "error: status must be one of: draft, published, archived (got '${STATUS}')" >&2
exit 2
;;
esac
METHOD="PUT"
PATH_Q="/resources/api/applicantWorkflows/${WORKFLOW_ID}/revisionStatus"
TS="$(date -u +%s)"
BODY="$(printf '{"revisionStatus":"%s"}' "${STATUS}")"
SIG="$(
printf '%s%s%s%s' "${TS}" "${METHOD}" "${PATH_Q}" "${BODY}" \
| openssl dgst -sha256 -hmac "${SUMSUB_SECRET_KEY}" -hex \
| awk '{print $NF}'
)"
curl -sS -X "${METHOD}" \
-H "X-App-Token: ${SUMSUB_APP_TOKEN}" \
-H "X-App-Access-Ts: ${TS}" \
-H "X-App-Access-Sig: ${SIG}" \
-H "X-Agent-Source: sumsub-skills" \
-H "X-Agent-Source-Ver: 1.0.1" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data-binary "${BODY}" \
-w '\nHTTP %{http_code}\n' \
"${BASE%/}${PATH_Q}"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |