Workflows
Start a session, show one page to your customer, read one decision. About Workflows
Start a session
Build and publish a workflow in the builder. Then call this from your server.
curl https://signetsentry.com/v1/workflows/wf_.../sessions \
-H "Authorization: Bearer $SIGNET_SECRET_KEY" -H "Content-Type: application/json" \
-d '{"reference":"order-1001","account_id":"customer-42","email":"customer@example.com",
"amount":49.90,"currency":"USD","return_url":"https://shop.example/done"}'
# -> 201 { "id": "ws_...", "url": "https://signetsentry.com/w/wt_...", "client_token": "wt_...", "expires_at": "...", "test": false }
| Field (all optional) | Meaning |
|---|---|
reference, account_id | Your IDs for the order and the customer. |
email, phone, name, url, campaign | What you already know. It is not asked again. |
amount, currency | Required when the workflow checks or records a payment. |
payee, new_payee | For a pause step: your ID for who is being paid, or whether this customer has paid them before. |
session_id | A session of your own page. |
return_url | https, on a site listed on your site key when any is listed. |
locale | Such as en or en-GB. |
The link works for 24 hours. Starting is free; each step costs what its product costs.
Start links
A link anyone can open, without your server: /go/{account}/{slug}. Make one in the builder or here.
curl https://signetsentry.com/v1/workflows/wf_.../links \
-H "Authorization: Bearer $SIGNET_SECRET_KEY" -H "Content-Type: application/json" \
-d '{"name":"Spring poster","mode":"live","per_day":200,"allow":["reference","email"]}'
# -> 201 { "id": "wl_...", "url": "https://signetsentry.com/go/k7m2.../x9w4...", "secret": "wls_...", ... }
| Field (all optional) | Meaning |
|---|---|
name, slug, mode | What you call it, the last part of the address (made up when left out), and test (default) or live. |
max_sessions, per_day, expires_at | When it stops. A link that is paused, expired or over a cap shows “This link is no longer active”. |
fixed | What every session gets: reference, campaign, amount, currency, locale, return_url. |
allow | What the address may bring: reference, email, amount (with currency), account_id (signed only). |
require_signature | Values in the address count only when they are signed. |
Unsigned values are whatever the visitor typed. They are listed in the session’s unverified, and an unsigned or fixed reference never names a customer or an order in any check. Do not act on them.
Sign the values
Add exp (Unix seconds) and sig: the HMAC-SHA256, in hex, of the values and exp sorted by name, percent-encoded and joined with &, under the link’s secret. On your server only.
const { signWorkflowLink } = require('./signet');
signWorkflowLink(link.url, { accountId: 'customer-42', reference: 'order-1001' }, linkSecret);
// .../go/k7m2.../x9w4...?account_id=customer-42&exp=1800003600&reference=order-1001&sig=2077e2...
The secret is shown once. POST /v1/workflows/{id}/links/{linkId}/secret replaces it.
| Plan | Live sessions from links a month |
|---|---|
| Starter | 1,000 |
| Growth | 10,000 |
| Scale | 50,000 |
Opening a link is free. Each step of a live session uses your allowance like any other. Free has no workflows.
Your own domain
Serve the pages on a host you own.
curl https://signetsentry.com/v1/domains \
-H "Authorization: Bearer $SIGNET_SECRET_KEY" -H "Content-Type: application/json" \
-d '{"host":"verify.yourshop.com"}'
# -> 201 { "id": "dom_...", "status": "pending", "records": [ TXT, CNAME ] }
| Step | What happens |
|---|---|
| Make the two records | TXT at _signet.verify.yourshop.com, and CNAME to Signet. At the top of a domain: ALIAS, or an A record with the same address. No proxy in front. |
POST /v1/domains/{id}/verify | Checks now. By itself: every ten minutes for three days, then daily. Records that stay wrong for 7 days suspend the host. |
PUT /v1/workflows/{id} with domain_id | Its links and QR codes use the host while it is verified, else Signet’s. A start link can have its own. |
DELETE /v1/domains/{id} | Links already sent on it stop working. |
| Embed | With url, load /v1/workflow.js from the same host. |
| Limits | Growth and Scale, 5 hosts. Only your own hosted pages are there. A device trusted on another host is not yet trusted on it. |
| Not turned on yet | Being introduced. Until then these calls answer not_offered. |
Show it
Redirect to url, or open it on your page.
<script src="https://signetsentry.com/v1/workflow.js"></script>
<script>
Signet.workflow({ token: CLIENT_TOKEN, mode: 'modal', onComplete: function (r) { /* { session_id, status } */ } });
</script>
| Option | Meaning |
|---|---|
token or url | From the answer above. |
mode | modal (default), inline with a container, or redirect. |
onComplete, onClose | The browser never learns the decision. |
Read the decision
GET /v1/workflow-sessions/{id} from your server, or ?reference= to find it.
{ "id": "ws_...", "status": "completed", "decision": "allow", "score": 12, "reason_codes": [],
"steps": [{ "kind": "email", "outcome": "pass" }, { "kind": "id", "outcome": "pass" }],
"inputs": { "email": "customer@example.com", "bank": null } }
| Field | Meaning |
|---|---|
status | created, started, completed, abandoned, expired, canceled |
decision | allow review deny The strictest required step decides. |
score | The overall risk score in new workflows (rules.score: overall). Workflows from before it use the highest step score until you switch. |
score_lines | Where review and decline begin in the version it ran (review_at, deny_at, or null), and which score they look at (overall or highest). Null for sessions from before November 2026. |
risk | The overall risk score of a finished session, with what each answer added or took away. |
steps[].outcome | pass, review, fail, unavailable, skipped |
steps[].statement | A consent step: the version of the words the customer agreed to and their language; at is when. |
ending | Your own ending the customer saw, or null. |
link_id, unverified | The start link it came from, and the values the visitor brought unsigned. |
inputs | What you sent and what the customer typed. A bank account keeps its last four digits only. answers: your own questions, by step and field. Answers are in this call only, never in the list or a webhook. |
Steps
kind | Product | Uses |
|---|---|---|
device | Device Intelligence | 1 assessment |
human | Shield | Nothing |
trusted_device | Trusted Devices; needs account_id | Nothing |
email, phone, link, promo, bank | The check of that name | 1 assessment |
transaction | Transaction Monitoring | 1 monitored transaction |
record_payment | Dispute Evidence | 1 assessment; nothing after a device step set to Paying |
pause | Asks “Is someone telling you to make this payment?” when several signs of that are there. The customer stops or continues; you are told either way | Nothing |
name_screen | Sanctions Screening | Nothing |
photo | Photo Proof | 1 ID verification |
imprint | Imprint (beta): the same person as before; needs account_id | 1 ID verification when it asks for a selfie |
recovery | Recovery, after a device step that denied or went to review. Passing stands in for that step. From Starter | 1 ID verification if it asks for an ID |
question, notice, consent | Your own | Nothing |
id, age | ID Verification, age check | 1 ID verification |
| Reason code | Meaning |
|---|---|
WORKFLOW_<KIND>_FAILED, _REVIEW, _UNAVAILABLE | How that step ended. Each check adds its own codes. |
WORKFLOW_SCORE_REVIEW, WORKFLOW_SCORE_DENY | Your score limits were reached. |
WORKFLOW_QUOTA_EXHAUSTED, WORKFLOW_DEVICE_NOT_READ, WORKFLOW_STEP_ERROR | A step could not run. Goes to review. |
WORKFLOW_TOO_MANY_ATTEMPTS | Too many answers that could not be used. |
PAUSE_STOPPED, PAUSE_CONTINUED | What the customer chose. Beside it, what was seen: PAUSE_REMOTE_ACCESS, PAUSE_DICTATED, PAUSE_FROM_ELSEWHERE, PAUSE_HESITATION, PAUSE_UNUSUAL_AMOUNT, PAUSE_NEW_PAYEE. |
RECOVERY_PASSED, RECOVERY_IN_REVIEW, RECOVERY_FAILED | How the second chance ended. The device step then has recovered_from. |
Look and themes
definition.brand styles every page of a workflow, the camera pages included.
| Field | Values |
|---|---|
primary, background, text, accent, success, danger | #rrggbb |
dark | primary, background and text on a dark page. Left out, they are worked out. |
mode, button, layout | light, dark, auto; solid, outline, pill; card, full, split |
radius, density | sharp, small, medium, large; comfortable, compact |
header, progress | plain, band; bar, steps, none |
font | system, signet, hanken, humanist, geometric, grotesque, industrial, rounded, serif, transitional, slab, mono |
logo, hero, favicon, page_title | Uploaded images, and the browser tab’s title |
theme | A saved theme’s id. Its values are copied; a later change reaches the workflow only when you ask. |
Text needs a contrast of 4.5 to 1. Publishing is refused below it, with the nearest colors that pass in suggestions.
Steps of your own
kind | Options |
|---|---|
question | fields: up to eight, each with name, type (text, email, phone, number, date, choice, checkbox, address), label, help, required, and min_length, max_length, pattern (letters, digits, letters_digits, postal_code), min, max or choices. A field named email or phone answers the step of that name. |
notice | text. Title and button as on any step. |
consent | statement, and optionally link and link_label. The version is the first 12 hex digits of the SHA-256 of the statement, a line break and the link. |
A question never takes a password, and refuses anything that looks like a payment card number.
Conditions
A step’s when is one test, or tests joined by all or any (two groups deep, six tests).
{ "all": [ { "if": "amount_at_least", "value": 200 },
{ "any": [ { "if": "answer_equals", "field": "country", "value": "FR" },
{ "if": "step_outcome", "step": "device", "values": ["review", "fail"] } ] } ] }
if | Met when |
|---|---|
score_at_least, amount_at_least | The workflow’s score so far, or the amount, is at least value. |
risk_at_least | The overall risk score so far is, in a workflow that uses it. |
country_in, reason_code_in | The country, or a reason code so far, is one of values. |
answer_equals, answer_in | The answer to field is value, or one of values. A tick box is true or false. |
step_outcome | The earlier step ended in one of values: pass, review, fail, unavailable, skipped. |
Endings
copy.endings holds up to four endings of your own: id, decision (allow, review, deny or any), when, title, text and return_url. The first that fits replaces the ordinary one. A different return_url tells the customer’s browser which ending it was.
Languages
A title, help text, button, label, statement or ending may be {"en": "...", "es": "..."}; copy.locale sets the page’s language when the session does not. The English text is stored where the string goes and the others under translations. The page’s own words are in English. Right-to-left languages are not supported yet.
Sample app
A complete program made from your workflow.
curl -OJ "https://signetsentry.com/v1/workflows/wf_.../sample?language=node&embed=modal" \
-H "Authorization: Bearer $SIGNET_SECRET_KEY"
# unzip it, then: node server.mjs (no keys needed: a built-in mock answers)
| Query | Meaning |
|---|---|
language | node (default), python, aspnet, php, or http for a .http file and a Postman collection |
embed | redirect (default), modal or inline |
version | A number or draft. Left out: what a session runs now. |
format | zip (default), or json: the files as text, what the workflow needs, mobile snippets and warnings |
include_key=true | Writes your test key into the app: the one you call with, or the one in X-Signet-Test-Key. Never a live key. |
| In the app | |
|---|---|
| Start | Exactly the values this workflow needs, or a signed start link |
| Result | Every decision and ending it can produce, the risk score, and the answers to your own questions |
| Webhook | Every event it can cause, with the signature checked |
| In a mobile app | Snippets for iOS, Android and React Native. A sheet that keeps nothing adds #storage=ephemeral to the address (why). |
POST /v1/workflows/{id}/sample-links | Signet runs a copy for you at /apps/{token}: sandbox only, 7 days (days: 1 to 30), 200 runs a day, no key in it. Anyone with the address can open it. Its runs send test events to your webhook. |
GET .../sample-links, DELETE .../sample-links/{linkId} | List the copies, or take one back. |
Manage workflows
| Call | Purpose |
|---|---|
GET, POST /v1/workflows | List, or create from a template: signup, checkout, payout, age, seller, recovery, refund, blank. |
GET, PUT, DELETE /v1/workflows/{id} | Read, change the draft, delete. test_version sets what test keys run: "draft", a published version’s number, or "published" (the default); live keys are not affected and ?draft=true still runs the draft. Send back the revision you read with a change, and with a publish: if someone saved the draft since, you get 409 draft_changed with who and when, and nothing is overwritten. A draft with problems is saved as sent, with problems listing them; publishing refuses it until they are fixed. One with live sessions is archived instead. One without is archived at once and removed, with its versions, links and test sessions, 30 days later (removes_at); until then PUT with status live, or draft if it was never published, restores it. |
POST /v1/workflows/{id}/sessions?draft=true | Test keys only: run the draft. Without it a test session runs the published version, or the draft if none is published. |
POST /v1/workflows/{id}/publish | Make the draft live. Running sessions keep their version. An optional note (up to 200 characters, no < or >) is kept with the version. The builder first shows what changed and the cost. |
POST /v1/workflows/{id}/versions/{n}/publish | Make an earlier version live again, as it was published. The draft is not touched. Send live_version, the live version you looked at, to get 409 live_changed if another went live since. |
GET, POST /v1/workflow-themes; GET, PUT, DELETE /v1/workflow-themes/{id} | Saved looks: name and look. |
GET, POST /v1/workflows/{id}/links; PUT, DELETE .../links/{linkId} | Start links. |
GET /v1/workflows/{id}/results | Live sessions of the last days (1 to 90): a funnel per version, time per step, decisions per day, totals per start link. Counts only. |
POST /v1/workflow-sessions/{id}/cancel | Stop a session that is not finished. |
Webhook events
| Event | When |
|---|---|
workflow.completed | A customer finished. data: the session without inputs, with link_id, unverified and ending. |
workflow.abandoned | A customer opened the link and did not finish in 24 hours. |
pause.shown | The pause was shown. data: workflow_session_id, reference, account_id, signs. |
pause.answered | The same, with choice (stopped or continued) and seconds. A stop ends the workflow with deny. |
Test values
With sk_test_ keys every step offers Pass, Review and Fail, uncounted. Live tests run the real checks.
Limits and errors
Every paid plan; hiding “Secured by Signet” needs Growth or Scale. Also the common errors.
| Status | Code | When |
|---|---|---|
| 400 | amount_required, invalid_return_url, invalid_locale | A field is missing or malformed. |
| 400 | invalid_language, invalid_embed, test_key_required, invalid_test_key, live_key_refused | The sample app could not be made that way. |
| 400 | invalid_link | field names the part of a start link to correct. |
| 403 | test_key_not_allowed | Editing with a test key. |
| 404 | workflow_not_found, workflow_session_not_found, link_not_found, theme_not_found, version_not_found, sample_link_not_found | Check the ID and the key. |
| 400 | invalid_host, invalid_domain | Not a public host name, or not one of your domains. |
| 409 | not_published, workflow_archived, not_cancelable, slug_taken, too_many_links, host_taken, host_exists, too_many_hosts, no_steps, too_many_sample_links | Not possible in this state. |
| 422 | invalid_workflow, invalid_theme | fields lists one message per problem, suggestions a value that passes. |
What was entered, encrypted: what is stored.