Signet

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_idYour IDs for the order and the customer.
email, phone, name, url, campaignWhat you already know. It is not asked again.
amount, currencyRequired when the workflow checks or records a payment.
payee, new_payeeFor a pause step: your ID for who is being paid, or whether this customer has paid them before.
session_idA session of your own page.
return_urlhttps, on a site listed on your site key when any is listed.
localeSuch as en or en-GB.

The link works for 24 hours. Starting is free; each step costs what its product costs.

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 ] }
StepWhat happens
Make the two recordsTXT 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}/verifyChecks 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_idIts 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.
EmbedWith url, load /v1/workflow.js from the same host.
LimitsGrowth 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 yetBeing 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>
OptionMeaning
token or urlFrom the answer above.
modemodal (default), inline with a container, or redirect.
onComplete, onCloseThe 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 } }
FieldMeaning
statuscreated, started, completed, abandoned, expired, canceled
decisionallow review deny The strictest required step decides.
scoreThe overall risk score in new workflows (rules.score: overall). Workflows from before it use the highest step score until you switch.
score_linesWhere 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.
riskThe overall risk score of a finished session, with what each answer added or took away.
steps[].outcomepass, review, fail, unavailable, skipped
steps[].statementA consent step: the version of the words the customer agreed to and their language; at is when.
endingYour own ending the customer saw, or null.
link_id, unverifiedThe start link it came from, and the values the visitor brought unsigned.
inputsWhat 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

kindProductUses
deviceDevice Intelligence1 assessment
humanShieldNothing
trusted_deviceTrusted Devices; needs account_idNothing
email, phone, link, promo, bankThe check of that name1 assessment
transactionTransaction Monitoring1 monitored transaction
record_paymentDispute Evidence1 assessment; nothing after a device step set to Paying
pauseAsks “Is someone telling you to make this payment?” when several signs of that are there. The customer stops or continues; you are told either wayNothing
name_screenSanctions ScreeningNothing
photoPhoto Proof1 ID verification
imprintImprint (beta): the same person as before; needs account_id1 ID verification when it asks for a selfie
recoveryRecovery, after a device step that denied or went to review. Passing stands in for that step. From Starter1 ID verification if it asks for an ID
question, notice, consentYour ownNothing
id, ageID Verification, age check1 ID verification
Reason codeMeaning
WORKFLOW_<KIND>_FAILED, _REVIEW, _UNAVAILABLEHow that step ended. Each check adds its own codes.
WORKFLOW_SCORE_REVIEW, WORKFLOW_SCORE_DENYYour score limits were reached.
WORKFLOW_QUOTA_EXHAUSTED, WORKFLOW_DEVICE_NOT_READ, WORKFLOW_STEP_ERRORA step could not run. Goes to review.
WORKFLOW_TOO_MANY_ATTEMPTSToo many answers that could not be used.
PAUSE_STOPPED, PAUSE_CONTINUEDWhat 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_FAILEDHow 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.

FieldValues
primary, background, text, accent, success, danger#rrggbb
darkprimary, background and text on a dark page. Left out, they are worked out.
mode, button, layoutlight, dark, auto; solid, outline, pill; card, full, split
radius, densitysharp, small, medium, large; comfortable, compact
header, progressplain, band; bar, steps, none
fontsystem, signet, hanken, humanist, geometric, grotesque, industrial, rounded, serif, transitional, slab, mono
logo, hero, favicon, page_titleUploaded images, and the browser tab’s title
themeA 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

kindOptions
questionfields: 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.
noticetext. Title and button as on any step.
consentstatement, 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"] } ] } ] }
ifMet when
score_at_least, amount_at_leastThe workflow’s score so far, or the amount, is at least value.
risk_at_leastThe overall risk score so far is, in a workflow that uses it.
country_in, reason_code_inThe country, or a reason code so far, is one of values.
answer_equals, answer_inThe answer to field is value, or one of values. A tick box is true or false.
step_outcomeThe 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)
QueryMeaning
languagenode (default), python, aspnet, php, or http for a .http file and a Postman collection
embedredirect (default), modal or inline
versionA number or draft. Left out: what a session runs now.
formatzip (default), or json: the files as text, what the workflow needs, mobile snippets and warnings
include_key=trueWrites 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
StartExactly the values this workflow needs, or a signed start link
ResultEvery decision and ending it can produce, the risk score, and the answers to your own questions
WebhookEvery event it can cause, with the signature checked
In a mobile appSnippets for iOS, Android and React Native. A sheet that keeps nothing adds #storage=ephemeral to the address (why).
POST /v1/workflows/{id}/sample-linksSignet 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

CallPurpose
GET, POST /v1/workflowsList, 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=trueTest 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}/publishMake 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}/publishMake 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}/resultsLive 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}/cancelStop a session that is not finished.

Webhook events

EventWhen
workflow.completedA customer finished. data: the session without inputs, with link_id, unverified and ending.
workflow.abandonedA customer opened the link and did not finish in 24 hours.
pause.shownThe pause was shown. data: workflow_session_id, reference, account_id, signs.
pause.answeredThe 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.

StatusCodeWhen
400amount_required, invalid_return_url, invalid_localeA field is missing or malformed.
400invalid_language, invalid_embed, test_key_required, invalid_test_key, live_key_refusedThe sample app could not be made that way.
400invalid_linkfield names the part of a start link to correct.
403test_key_not_allowedEditing with a test key.
404workflow_not_found, workflow_session_not_found, link_not_found, theme_not_found, version_not_found, sample_link_not_foundCheck the ID and the key.
400invalid_host, invalid_domainNot a public host name, or not one of your domains.
409not_published, workflow_archived, not_cancelable, slug_taken, too_many_links, host_taken, host_exists, too_many_hosts, no_steps, too_many_sample_linksNot possible in this state.
422invalid_workflow, invalid_themefields lists one message per problem, suggestions a value that passes.

What was entered, encrypted: what is stored.