{"openapi":"3.1.1","info":{"title":"Signet Sentry API: Workflows","description":"Your checks, your brand, one link: start a workflow with one API call. The Signet Sentry server API. Every call is made from your server with your secret key (sk_live_... or sk_test_... for the sandbox) as a Bearer token. Browser and app sessions come from the Signet tag or the mobile SDKs, which handle their own traffic: you only send the session_id they give you. Each answer carries a decision (allow, review or deny), a 0-100 risk score and reason codes. Guides, sandbox values and sample apps: https://signetsentry.com/guide. For fraud prevention only.","version":"v1"},"servers":[{"url":"https://signetsentry.com/"}],"paths":{"/v1/domains":{"get":{"tags":["Workflows: Build and share"],"summary":"List your custom domains","description":"Hosts of your own for hosted workflow pages. Each has status (pending, verified, suspended), problem (txt_missing, not_pointing, plan, not_verified or null), records (the TXT and CNAME record to make, with state found, missing or unknown) and suspends_at (set while a verified host\u0027s records are wrong). Free. 404 not_offered while the server does not offer custom domains.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"post":{"tags":["Workflows: Build and share"],"summary":"Add a custom domain","description":"Body: host, such as verify.yourshop.com. Make the two records in the answer; they are looked for every ten minutes for three days, or when you ask. Pages are served there once both are found. Growth and Scale, up to 5 hosts, 10 added a day. 400 invalid_host for an address, a wildcard, a single label, a name that is not public, and anything that is or looks like Signet\u0027s. 409 host_taken when another account has it. Free. Test keys cannot add domains. 404 not_offered while the server does not offer custom domains.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CustomDomainRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/domains/{id}":{"get":{"tags":["Workflows: Build and share"],"summary":"Get a custom domain","description":"Free. 404 not_offered while the server does not offer custom domains.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"delete":{"tags":["Workflows: Build and share"],"summary":"Remove a custom domain","description":"Pages stop being served there at once, and workflows and links that used it go back to Signet\u0027s host. Links already sent on it stop working. Free. Test keys cannot remove domains. 404 not_offered while the server does not offer custom domains.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowItemRemoved"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/domains/{id}/verify":{"post":{"tags":["Workflows: Build and share"],"summary":"Check a custom domain\u0027s DNS now","description":"Answers with the domain as it is after the check: read status and each record\u0027s state. A suspended domain whose records are right again is served again, unless another account took the host (409 host_taken). 10 a minute. Free. Test keys cannot check domains. 404 not_offered while the server does not offer custom domains.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/recoveries":{"post":{"tags":["Workflows: Recovery"],"summary":"Give a blocked customer a second chance","description":"Signet Recovery. Body: session_id (the session that was denied or sent to review), optional account_id, amount, currency, return_url, steps (device, id), reference and expected (first_name, last_name, date_of_birth). Returns id, url (send the customer there), step (what they will be asked for), eligible and expires_at (24 hours). When eligible is false, reason says why: not_recoverable, fraud_label, not_denied, not_assessed, too_many_recoveries, stronger_step_required, id_unavailable, recovery_in_review. steps can only make recovery stricter. Asking again while one is open returns the same recovery with a new link. Two per visitor in 30 days. From the Starter plan; free, and an ID step uses one ID verification. Test keys: test_deny, test_review, test_allow, test_automation.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CreateRecoveryRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryOffer"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryOffer"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Recovery","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]},"get":{"tags":["Workflows: Recovery"],"summary":"List recoveries, newest first","description":"Optional: status (created, started, pending_review, recovered, failed, expired), limit, starting_after and days (adds totals for that period). Test keys see test recoveries.","parameters":[{"name":"status","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},{"name":"starting_after","in":"query","schema":{"type":"string"}},{"name":"days","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Recovery"}},"/v1/recoveries/{id}":{"get":{"tags":["Workflows: Recovery"],"summary":"Get a recovery","description":"Check it here when the customer returns: the ?recovery= in the address is not proof. status recovered means the customer passed; step_used says how, identity whether the ID was tied to the account holder.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Recovery"}},"/v1/workflows":{"post":{"tags":["Workflows: Build and share"],"summary":"Create a workflow","description":"Body: name, and either template (signup, checkout, payout, age, seller, recovery, refund, blank) or definition {steps, rules, brand, copy}. Returns the workflow as a draft; publish it to run live sessions. 422 invalid_workflow lists one message per field. Free. Test keys cannot edit.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]},"get":{"tags":["Workflows: Build and share"],"summary":"List workflows, with the last 30 days","description":"Newest change first. Each has status (draft, live, archived), published_version, unpublished_changes, steps and last_30_days. Free.","parameters":[{"name":"test","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}":{"get":{"tags":["Workflows: Build and share"],"summary":"Get a workflow","description":"With definition, the draft being edited. Free.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"put":{"tags":["Workflows: Build and share"],"summary":"Change a workflow\u0027s draft, name or status","description":"Body: name, definition (replaces the draft), status (archived or live; live, or draft for one never published, also restores a deleted workflow), test_version (what test keys run: \u0022draft\u0022, a published version\u0027s number, or \u0022published\u0022 for the default) and domain_id (one of your custom domains, whose host links use while it is verified; an empty text for Signet\u0027s own). revision (the revision your change is based on, from the last read: when someone saved the draft since, 409 draft_changed with changed_by, changed_at and revision; left out, the change wins). What is live does not change until you publish. A definition with problems is saved as sent and they come back in problems (field and message); publishing refuses it until they are fixed. 422 invalid_workflow only past the limits (64 KB, 12 steps) or for an unknown theme. Free. Test keys cannot edit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"delete":{"tags":["Workflows: Build and share"],"summary":"Delete a workflow","description":"A workflow with live sessions is archived instead, so their results stay readable: result is deleted or archived. A deleted one is archived at once and removed for good, with its versions, links and test sessions, 30 days later (removes_at); until then PUT status live (or draft, if it was never published) restores it. Free. Test keys cannot edit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowItemRemoved"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/publish":{"post":{"tags":["Workflows: Build and share"],"summary":"Publish the draft","description":"Freezes the draft as the next version and makes the workflow live. Sessions already running stay on their version. 422 invalid_workflow when text in the draft cannot be read on its background (under 4.5 to 1): suggestions holds the nearest colors that pass. 403 plan_feature_required when the draft hides \u0022Secured by Signet\u0022 without a plan that allows it (Growth, Scale). Body (optional): revision, the draft revision you reviewed; when the draft has been saved since, 409 draft_changed and nothing is published. Free. Test keys cannot edit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowPublishRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/versions/{version}/publish":{"post":{"tags":["Workflows: Build and share"],"summary":"Make a published version live again","description":"Body (optional): live_version, the live version you looked at; when another went live since, 409 live_changed. Sessions start on that version from now on; running sessions keep theirs. An archived or deleted workflow becomes live again (and is not removed). The draft is not touched: it shows as unpublished changes when it differs. The same checks as publishing apply (422 invalid_workflow, 403 plan_feature_required). 404 version_not_found; 409 already_live when that version is live already. Recorded in the account\u0027s audit log. Free. Test keys cannot edit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":"integer","format":"int32"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowMakeLiveRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/sessions":{"post":{"tags":["Workflows: Run a workflow"],"summary":"Start a session and get the link for your customer","description":"Body (all optional): reference, account_id, session_id (a Signet session of your own page), email, phone, name, url, campaign, amount, currency, locale, return_url (https; on a listed site when your site key lists any). Anything you send is not asked again. amount and currency are required when the workflow checks or records a payment. Returns id, url, client_token and expires_at (24 hours). Starting is free; each step costs what its own service costs when it runs. With a test key every step is simulated, nothing is stored outside the session and nothing is counted.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"draft","in":"query","schema":{"type":"boolean"}},{"name":"live","in":"query","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowSessionRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSessionCreated"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Run a workflow"}},"/v1/workflow-sessions":{"get":{"tags":["Workflows: Run a workflow"],"summary":"Find sessions, newest first","description":"Filters: reference, account_id, workflow, status (created, started, completed, abandoned, expired, canceled), decision, link (a start link\u0027s id). Paginate with limit (1-100) and starting_after. Each has link_id, and unverified: the values a visitor brought to a start link unsigned. What customers typed and answered is only in GET /v1/workflow-sessions/{id}. Free.","parameters":[{"name":"reference","in":"query","schema":{"type":"string"}},{"name":"account_id","in":"query","schema":{"type":"string"}},{"name":"workflow","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"decision","in":"query","schema":{"type":"string"}},{"name":"link","in":"query","schema":{"type":"string"}},{"name":"test","in":"query","schema":{"type":"boolean"}},{"name":"limit","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},{"name":"starting_after","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSessionList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Run a workflow"}},"/v1/workflow-sessions/{id}":{"get":{"tags":["Workflows: Run a workflow"],"summary":"Get a session\u0027s result","description":"decision (allow, review, deny), score 0-100 (the highest step score, or the overall risk score when the workflow uses it: rules.score), risk (the overall risk score of a finished session, with level, range, evidence_strength and what each answer added or took away), reason_codes (each check\u0027s own codes, plus WORKFLOW_\u003CSTEP\u003E_FAILED, _REVIEW, _UNAVAILABLE, WORKFLOW_SCORE_REVIEW and WORKFLOW_SCORE_DENY), score_lines (where review and decline begin in the version it ran, and which score they look at), steps with outcome (pass, review, fail, unavailable, skipped; recovered_from is a device step\u0027s own outcome when a recovery step answered it; statement is which words a consent step\u0027s customer agreed to, at its time), ending (your own ending the customer saw, or null), link_id and unverified (a session from a start link: the values the visitor brought unsigned, never to be relied on), and inputs: what you passed, what the customer typed, and answers to your own questions by step and field. Answers are in no other call. Free.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSessionView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Run a workflow"}},"/v1/workflow-sessions/{id}/cancel":{"post":{"tags":["Workflows: Run a workflow"],"summary":"Cancel a session the customer has not finished","description":"The link stops working. Free.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSessionView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Run a workflow"}},"/v1/workflow-themes":{"get":{"tags":["Workflows: Build and share"],"summary":"List saved themes","description":"Newest change first. Free.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowThemeList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"post":{"tags":["Workflows: Build and share"],"summary":"Save a theme","description":"Body: name, and look: primary, background, text, dark {primary, background, text}, accent, success, danger (all #rrggbb), radius (sharp, small, medium, large), font, layout (card, full, split), button (solid, outline, pill), mode (light, dark, auto), header (plain, band), density (comfortable, compact), progress (bar, steps, none), logo and favicon (ids of uploaded images). Use it with brand: {\u0022theme\u0022: \u0022th_...\u0022} in a workflow: the values are copied, so a later change to the theme reaches a workflow only when you ask for it. warnings lists colors that are hard to read. Up to 20 per account. Free. Test keys cannot edit.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowThemeRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowThemeView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}]}},"/v1/workflow-themes/{id}":{"get":{"tags":["Workflows: Build and share"],"summary":"Get a theme","description":"Free.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowThemeView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"put":{"tags":["Workflows: Build and share"],"summary":"Change a theme","description":"Body: name, look (replaces the whole look). Workflows that use it do not change. Free. Test keys cannot edit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowThemeRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowThemeView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"delete":{"tags":["Workflows: Build and share"],"summary":"Delete a theme","description":"Workflows that use it keep the values they copied. Free. Test keys cannot edit.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowItemRemoved"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/links":{"get":{"tags":["Workflows: Build and share"],"summary":"List a workflow\u0027s start links","description":"Each has url, mode (live or test), status (active, paused, expired, full), its limits, sessions (started so far) and today. month: live sessions all links of the account started this month, and how many the plan allows (null: no limit). Free.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowLinkList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"post":{"tags":["Workflows: Build and share"],"summary":"Make a start link","description":"A link anyone can open; your server is not needed to start a session. Body (all optional): name, slug (made up when left out), mode (test or live; default test), max_sessions, per_day, expires_at, fixed (reference, campaign, amount, currency, locale, return_url: what every session gets), allow (reference, email, amount, account_id: what a visitor may bring in the address), require_signature and domain_id (one of your custom domains, used while it is verified; left out, the workflow\u0027s). Values a visitor brings unsigned are listed in the session\u0027s unverified; account_id is only ever taken signed. secret signs values (see the guide) and is returned here only. Live sessions count against a monthly cap per plan (Starter 1,000, Commerce Protection and Identity \u0026 Age 2,000, Growth 10,000, Scale 50,000), and each step costs what it costs. Free. Test keys cannot make links.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowLinkRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowLinkView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/links/{linkId}":{"put":{"tags":["Workflows: Build and share"],"summary":"Change or pause a start link","description":"Body: active (false pauses it), name, max_sessions and per_day (0 for none), expires_at (an empty text for never), fixed, allow, require_signature. What is left out stays as it is; slug and mode cannot be changed. Free. Test keys cannot change links.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowLinkRequest"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowLinkView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"delete":{"tags":["Workflows: Build and share"],"summary":"Delete a start link","description":"The address stops working at once. Its sessions and their results stay. Free. Test keys cannot delete links.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowItemRemoved"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/links/{linkId}/secret":{"post":{"tags":["Workflows: Build and share"],"summary":"Replace a start link\u0027s signing secret","description":"Returns the link with its new secret, once. Addresses signed with the old one stop working. Free. Test keys cannot replace secrets.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowLinkView"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/results":{"get":{"tags":["Workflows: Results"],"summary":"How a workflow performs","description":"Live sessions that ended in the last days (1 to 90, default 30): per version a funnel with what each step was reached, completed, passed, sent to review, failed, could not run and was left at, its median seconds and the step most customers leave at; decisions per day; and the totals per start link. link: only that start link, or none for sessions your server started. Counts only, no personal data. Free.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},{"name":"link","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowResults"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Results"}},"/v1/workflows/{id}/sample":{"get":{"tags":["Workflows: Build and share"],"summary":"Get a sample app that runs a workflow","description":"A small, complete program made from the workflow: it starts a session, shows the page, receives the webhook and checks its signature, and reads the decision, with every decision and ending the workflow can produce. It runs with one command, on a built-in mock until you give it a key. Query: language (node, python, aspnet, php, http; default node), embed (redirect, modal, inline), version (a number or draft; default what a session runs now), format (zip, or json for the files as text, what can be chosen, what the workflow needs, mobile snippets and warnings) and include_key=true (writes your test key into the app: the one you call with, or the one in X-Signet-Test-Key; 400 live_key_refused for a live key). Free. Test keys work.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"language","in":"query","schema":{"type":"string"}},{"name":"embed","in":"query","schema":{"type":"string"}},{"name":"version","in":"query","schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string"}},{"name":"include_key","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSampleView"}},"application/zip":{"schema":{"$ref":"#/components/schemas/WorkflowSampleView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/sample-links":{"get":{"tags":["Workflows: Build and share"],"summary":"List a workflow\u0027s running sample apps","description":"Newest first. Each has url (null once it is revoked or expired), embed, status (active, revoked, expired), sessions (sandbox sessions started), today and expires_at. Free. Test keys work.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSampleLinkList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"},"post":{"tags":["Workflows: Build and share"],"summary":"Open a running copy of the sample app","description":"Signet runs the sample app\u0027s pages for you at url, in the sandbox only, beside the calls a server makes and the webhook it gets. Body (all optional): embed (redirect, modal, inline) and days (1 to 30, default 7). Anyone with the address can open it, up to 200 runs a day; it holds no key and is not indexed. Its runs send test events to your webhook. Up to 10 per workflow. Free. Test keys work.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowSampleLinkRequest"}]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowSampleLinkView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}},"/v1/workflows/{id}/sample-links/{linkId}":{"delete":{"tags":["Workflows: Build and share"],"summary":"Revoke a running copy","description":"The address stops working at once. Free. Test keys work.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowItemRemoved"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"x-signet-product":"workflows","x-signet-part":"Build and share"}}},"components":{"schemas":{"ApiError":{"required":["error","message"],"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"param":{"type":["null","string"],"description":"The request field the error is about, such as \u0060amount\u0060 or \u0060items[0].qty\u0060. Left out when no one field is to blame."},"request_id":{"type":["null","string"],"description":"The id of the request, the same as its \u0060X-Request-Id\u0060 header."}},"description":"The body of every API error: a stable \u0060error\u0060 code, a \u0060message\u0060 for the developer, the field it is about (\u0060param\u0060,\nwhen there is one) and the \u0060request_id\u0060 also sent as \u0060X-Request-Id\u0060, to quote to support."},"CreateRecoveryRequest":{"type":"object","properties":{"session_id":{"type":["null","string"]},"account_id":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"return_url":{"type":["null","string"]},"steps":{"type":["null","array"],"items":{"type":"string"}},"reference":{"type":["null","string"]},"expected":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ExpectedIdentityRequest"}]}}},"CustomDomainList":{"required":["data","limit"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomDomainView"}},"limit":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},"description":"Your custom domains, and how many hosts an account may have."},"CustomDomainRecord":{"required":["type","name","value","state"],"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"},"state":{"type":"string"}},"description":"A DNS record to make for a custom domain (TXT or CNAME), and whether it was found (found, missing, unknown)."},"CustomDomainRequest":{"type":"object","properties":{"host":{"type":["null","string"]}}},"CustomDomainView":{"required":["id","object","host","status","problem","records","suspends_at","created_at","verified_at","checked_at","suspended_at"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"host":{"type":"string"},"status":{"type":"string"},"problem":{"type":["null","string"],"description":"txt_missing, not_pointing, plan, not_verified, or null."},"records":{"type":"array","items":{"$ref":"#/components/schemas/CustomDomainRecord"}},"suspends_at":{"type":["null","string"],"description":"When a verified host whose records are wrong stops being served, or null.","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"verified_at":{"type":["null","string"],"format":"date-time"},"checked_at":{"type":["null","string"],"format":"date-time"},"suspended_at":{"type":["null","string"],"format":"date-time"}},"description":"A custom domain: its host, status (pending, verified, suspended), problem, and the two DNS records to make."},"ExpectedIdentityRequest":{"type":"object","properties":{"first_name":{"type":["null","string"]},"last_name":{"type":["null","string"]},"date_of_birth":{"type":["null","string"]}}},"JsonElement":{},"RecoveryAmount":{"required":["currency","amount"],"type":"object","properties":{"currency":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["number","string"],"format":"double"}}},"RecoveryList":{"required":["data","has_more"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RecoveryView"}},"has_more":{"type":"boolean","description":"More recoveries are older than the last one here: ask again with starting_after."},"totals":{"oneOf":[{"type":"null"},{"description":"Recovered and offered counts and the amounts recovered per currency for the days asked for.","$ref":"#/components/schemas/RecoveryTotals"}]}},"description":"A page of recoveries, newest first. totals is there only when you asked with days."},"RecoveryOffer":{"required":["id","url","step","eligible","reason","expires_at"],"type":"object","properties":{"id":{"type":["null","string"]},"url":{"type":["null","string"]},"step":{"type":"string"},"eligible":{"type":"boolean"},"reason":{"type":["null","string"]},"expires_at":{"type":["null","string"],"format":"date-time"},"test_mode":{"type":"boolean","default":false}}},"RecoveryTotals":{"required":["recovered","offered","amounts"],"type":"object","properties":{"recovered":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"offered":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"amounts":{"type":"array","items":{"$ref":"#/components/schemas/RecoveryAmount"}}}},"RecoveryView":{"required":["id","status","step","steps","step_used","fail_reason","identity","session_id","visitor_id","new_session_id","verification_id","account_id","reference","trusted_device_id","reason_codes","amount","currency","created_at","completed_at","expires_at","test"],"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","description":"created, started, pending_review, recovered, failed or expired."},"step":{"type":"string","description":"The least the customer must do: device or id."},"steps":{"type":"array","items":{"type":"string"},"description":"The steps the page may offer."},"step_used":{"type":["null","string"],"description":"How the customer passed: device or id."},"fail_reason":{"type":["null","string"],"description":"Why it failed, when it did."},"identity":{"type":["null","string"],"description":"matched when the ID was tied to the account holder, not_compared when there was nothing to compare with."},"session_id":{"type":"string","description":"The session that was denied or sent to review."},"visitor_id":{"type":"string"},"new_session_id":{"type":["null","string"],"description":"The session the device step collected."},"verification_id":{"type":["null","string"],"description":"The ID verification of the id step."},"account_id":{"type":["null","string"]},"reference":{"type":["null","string"]},"trusted_device_id":{"type":["null","string"],"description":"The trusted device this recovery added to the account."},"reason_codes":{"type":"array","items":{"type":"string"},"description":"The reason codes the recovery answers."},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"description":"The amount you sent with the recovery, in the currency\u0027s major unit.","format":"double"},"currency":{"type":["null","string"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["null","string"],"format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"test":{"type":"boolean","description":"Created with a test key."}},"description":"A recovery: where the customer is in it, how they passed and what it is tied to. No name, document or link token."},"RiskAssessment":{"required":["score","level","evidence_strength","range","contributions","not_counted","decisive","model"],"type":"object","properties":{"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"level":{"type":"string"},"evidence_strength":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"range":{"$ref":"#/components/schemas/RiskRange"},"contributions":{"type":"array","items":{"$ref":"#/components/schemas/RiskContribution"}},"not_counted":{"type":"array","items":{"$ref":"#/components/schemas/RiskNotCounted"}},"decisive":{"type":"array","items":{"type":"string"}},"model":{"type":"string"}}},"RiskContribution":{"required":["service","outcome","effect"],"type":"object","properties":{"service":{"type":"string"},"outcome":{"type":"string"},"effect":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"RiskNotCounted":{"required":["service","why"],"type":"object","properties":{"service":{"type":"string"},"why":{"type":"string"}}},"RiskRange":{"required":["min","max"],"type":"object","properties":{"min":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"max":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}},"WorkflowDraftProblem":{"required":["field","message"],"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}},"description":"Something in a draft saved as sent that publishing would refuse: the field and what is wrong."},"WorkflowItemRemoved":{"required":["id","result"],"type":"object","properties":{"id":{"type":"string"},"result":{"type":"string"},"removes_at":{"type":["null","string"],"format":"date-time"}},"description":"What became of a thing you deleted or revoked: its id, and result (deleted; archived for a workflow that has live sessions; revoked for a running sample app)."},"WorkflowLast30Days":{"required":["sessions","completed","allowed","review","denied"],"type":"object","properties":{"sessions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"completed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"allowed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"review":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"denied":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},"description":"A workflow\u0027s sessions of the last 30 days (test sessions with a test key, live ones with a live key): started, completed, and each decision."},"WorkflowLinkFixed":{"required":["reference","campaign","amount","currency","locale","return_url"],"type":"object","properties":{"reference":{"type":["null","string"]},"campaign":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"locale":{"type":["null","string"]},"return_url":{"type":["null","string"]}},"description":"The values every session of a start link gets. Only those that are set are there."},"WorkflowLinkList":{"required":["data","month"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowLinkView"}},"month":{"$ref":"#/components/schemas/WorkflowLinkMonth"}},"description":"A workflow\u0027s start links, newest first, and the account\u0027s live link sessions this month."},"WorkflowLinkMonth":{"required":["used","limit"],"type":"object","properties":{"used":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int64"},"limit":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int64"}},"description":"Live sessions all start links of the account started this month, and how many the plan allows (null: no limit)."},"WorkflowLinkRequest":{"type":"object","properties":{"name":{"type":["null","string"]},"slug":{"type":["null","string"]},"mode":{"type":["null","string"]},"active":{"type":["null","boolean"]},"max_sessions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"per_day":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"expires_at":{"type":["null","string"]},"fixed":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/JsonElement"}]},"allow":{"type":["null","array"],"items":{"type":"string"}},"require_signature":{"type":["null","boolean"]},"domain_id":{"type":["null","string"]}}},"WorkflowLinkView":{"required":["id","object","workflow_id","name","slug","url","mode","active","status","max_sessions","per_day","expires_at","fixed","allow","require_signature","sessions","today","created_at","updated_at","secret","domain_id"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"workflow_id":{"type":"string"},"name":{"type":["null","string"]},"slug":{"type":"string"},"url":{"type":"string"},"mode":{"type":"string"},"active":{"type":"boolean"},"status":{"type":"string"},"max_sessions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"per_day":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"expires_at":{"type":["null","string"],"format":"date-time"},"fixed":{"description":"What every session of the link gets.","$ref":"#/components/schemas/WorkflowLinkFixed"},"allow":{"type":"array","items":{"type":"string"},"description":"What a visitor may bring in the address: reference, email, amount, account_id."},"require_signature":{"type":"boolean"},"sessions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"today":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Sessions started today (UTC).","format":"int32"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"secret":{"type":["null","string"],"description":"The signing secret. Only in the answer that makes the link or replaces its secret."},"domain_id":{"type":["null","string"],"description":"The custom domain the link uses, or null for its workflow\u0027s. Only there when the server offers custom domains."}},"description":"A start link: its address, mode (live or test), status (active, paused, expired, full), limits and how many sessions it started."},"WorkflowList":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowListItem"}}},"description":"Your workflows, newest change first."},"WorkflowListItem":{"required":["id","object","name","status","published_version","unpublished_changes","steps","created_at","updated_at","published_at","removes_at","last_30_days"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"published_version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"unpublished_changes":{"type":"boolean"},"steps":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"published_at":{"type":["null","string"],"format":"date-time"},"removes_at":{"type":["null","string"],"format":"date-time"},"last_30_days":{"$ref":"#/components/schemas/WorkflowLast30Days"},"domain_id":{"type":["null","string"]},"revision":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32","default":0},"changed_by":{"type":["null","string"]},"test_version":{}},"description":"A workflow in the list: the same as one workflow without its definition, with what happened in the last 30 days."},"WorkflowMakeLiveRequest":{"type":"object","properties":{"live_version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}},"WorkflowPublishRequest":{"type":"object","properties":{"revision":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"note":{"type":["null","string"]}}},"WorkflowRequest":{"type":"object","properties":{"name":{"type":["null","string"]},"template":{"type":["null","string"]},"definition":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/JsonElement"}]},"status":{"type":["null","string"]},"domain_id":{"type":["null","string"]},"test_version":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/JsonElement"}]},"revision":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}},"WorkflowResultCompare":{"required":["version","with"],"type":"object","properties":{"version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"with":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},"description":"Two versions to compare: the live one, and the one published before it."},"WorkflowResultDay":{"required":["day","started","allowed","review","denied","left"],"type":"object","properties":{"day":{"type":"string"},"started":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"allowed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"review":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"denied":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"left":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},"description":"Sessions of one day (yyyy-MM-dd, UTC): started, and each decision, and left."},"WorkflowResultLink":{"required":["link_id","name","sessions"],"type":"object","properties":{"link_id":{"type":["null","string"]},"name":{"type":["null","string"]},"sessions":{"$ref":"#/components/schemas/WorkflowResultTotals"}},"description":"The totals of one start link; link_id and name are null for the sessions your server started."},"WorkflowResultStep":{"required":["id","kind","label","reached","completed","passed","review","failed","unavailable","left","median_seconds"],"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"reached":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"completed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"passed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"review":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"failed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"unavailable":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"left":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"median_seconds":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}},"description":"One step of a version\u0027s funnel: how often it was reached, completed, passed, sent to review, failed, could not run and was left at."},"WorkflowResultTotals":{"required":["started","completed","allowed","review","denied","left","median_seconds"],"type":"object","properties":{"started":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"completed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"allowed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"review":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"denied":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"left":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"median_seconds":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}},"description":"Sessions started, completed, allowed, sent to review, denied and left, and the median seconds they took (null without samples)."},"WorkflowResultVersion":{"required":["version","live","sessions","most_leave_at","steps"],"type":"object","properties":{"version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"live":{"type":"boolean"},"sessions":{"$ref":"#/components/schemas/WorkflowResultTotals"},"most_leave_at":{"type":["null","string"]},"steps":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowResultStep"}},"note":{"type":["null","string"]}},"description":"The funnel of one version: its totals, each step, and the step most customers leave at (null when nobody left)."},"WorkflowResults":{"required":["workflow_id","days","link","sessions","versions","by_day","links"],"type":"object","properties":{"workflow_id":{"type":"string"},"days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"link":{"type":["null","string"],"description":"The start link asked for, none for sessions your server started, or null for all."},"sessions":{"$ref":"#/components/schemas/WorkflowResultTotals"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowResultVersion"}},"by_day":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowResultDay"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowResultLink"}},"compare":{"oneOf":[{"type":"null"},{"description":"The live version and the one published before it, which Results shows side by side after a publish. Null when there is no earlier one, or no figure yet.","$ref":"#/components/schemas/WorkflowResultCompare"}]}},"description":"How a workflow performs over the last days: totals, a funnel per version, decisions per day and totals per start link. Counts only."},"WorkflowSampleEmbed":{"required":["id","label"],"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"description":"A way to show the workflow page: redirect, modal or inline."},"WorkflowSampleEnding":{"required":["id","decision","title"],"type":"object","properties":{"id":{"type":"string"},"decision":{"type":["null","string"]},"title":{"type":"string"}},"description":"One of the workflow\u0027s own endings and the decision it shows (null: any)."},"WorkflowSampleField":{"required":["name","type","label","required"],"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"}},"description":"A field of a question step."},"WorkflowSampleFile":{"required":["path","language","text","generated"],"type":"object","properties":{"path":{"type":"string"},"language":{"type":"string"},"text":{"type":"string"},"generated":{"type":"boolean"}},"description":"A file of the sample app: its path, language and text; generated is true for files made from the workflow."},"WorkflowSampleInput":{"required":["name","label","required"],"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"}},"description":"A value your server passes when it starts a session, and whether it is required."},"WorkflowSampleLanguage":{"required":["id","label","run"],"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"run":{"type":"string"}},"description":"A language a sample app can be made in, and the command that runs it."},"WorkflowSampleLinkList":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleLinkView"}}},"description":"A workflow\u0027s running sample apps, newest first."},"WorkflowSampleLinkRequest":{"type":"object","properties":{"embed":{"type":["null","string"]},"days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}},"WorkflowSampleLinkView":{"required":["id","object","workflow_id","url","embed","status","sessions","today","created_by","created_at","expires_at","revoked_at"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"workflow_id":{"type":"string"},"url":{"type":["null","string"]},"embed":{"type":"string"},"status":{"type":"string"},"sessions":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"today":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Sandbox sessions started today (UTC).","format":"int32"},"created_by":{"type":["null","string"]},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"revoked_at":{"type":["null","string"],"format":"date-time"}},"description":"A running copy of the sample app in the sandbox: its address (null once revoked or expired, or for somebody who only looks), embed, status (active, revoked, expired) and sessions."},"WorkflowSampleMobileFile":{"required":["platform","path","language","text"],"type":"object","properties":{"platform":{"type":"string"},"path":{"type":"string"},"language":{"type":"string"},"text":{"type":"string"}},"description":"A snippet that opens the workflow in a mobile app."},"WorkflowSampleNeeds":{"required":["inputs","decisions","endings","events","questions","camera","overall_score","scenarios"],"type":"object","properties":{"inputs":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleInput"}},"decisions":{"type":"array","items":{"type":"string"}},"endings":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleEnding"}},"events":{"type":"array","items":{"type":"string"}},"questions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleQuestion"}},"camera":{"type":"boolean","description":"A step uses the camera."},"overall_score":{"type":"boolean","description":"The workflow decides on the overall risk score."},"scenarios":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleScenario"}}},"description":"What the workflow needs from your server and what it can answer: inputs, decisions, endings, webhook events, questions, scenarios."},"WorkflowSampleOptions":{"required":["languages","embeds","test_key"],"type":"object","properties":{"languages":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleLanguage"}},"embeds":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleEmbed"}},"test_key":{"type":"boolean"}},"description":"The languages and embeds a sample app can be made in, and whether your test key is written into it."},"WorkflowSampleQuestion":{"required":["step","fields"],"type":"object","properties":{"step":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleField"}}},"description":"A step that asks the customer questions of your own, and its fields."},"WorkflowSampleScenario":{"required":["id","label","decision","ending"],"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"decision":{"type":["null","string"]},"ending":{"type":["null","string"]}},"description":"A way through the workflow the app\u0027s mock can play, with the decision and ending it reaches."},"WorkflowSampleView":{"required":["object","workflow_id","name","version","language","embed","filename","run","options","needs","files","mobile","go_live","warnings"],"type":"object","properties":{"object":{"type":"string"},"workflow_id":{"type":"string"},"name":{"type":"string"},"version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"The version the app is made for, or null for the draft.","format":"int32"},"language":{"type":"string"},"embed":{"type":"string"},"filename":{"type":"string"},"run":{"type":"string","description":"The command that runs the app."},"options":{"$ref":"#/components/schemas/WorkflowSampleOptions"},"needs":{"$ref":"#/components/schemas/WorkflowSampleNeeds"},"files":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleFile"}},"mobile":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleMobileFile"}},"go_live":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSampleWarning"}}},"description":"A sample app as text (format=json): its files, what can be chosen, what the workflow needs, mobile snippets, and warnings."},"WorkflowSampleWarning":{"required":["code","message"],"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"description":"Something to know about the sample app, such as that it is made from the draft or holds your test key."},"WorkflowScoreLines":{"required":["review_at","deny_at","score"],"type":"object","properties":{"review_at":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"deny_at":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"score":{"type":"string"}}},"WorkflowSessionBank":{"required":["kind","country","last4","fingerprint","holder_name","link_id","deposits_cents"],"type":"object","properties":{"kind":{"type":["null","string"]},"country":{"type":["null","string"]},"last4":{"type":["null","string"]},"fingerprint":{"type":["null","string"]},"holder_name":{"type":["null","string"]},"link_id":{"type":["null","string"]},"deposits_cents":{"type":["null","array"],"items":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"description":"The two micro-deposits to send, in cents, when the account is checked that way."}},"description":"The bank account a session\u0027s customer gave: kind, country, last four digits, a fingerprint and the holder\u0027s name."},"WorkflowSessionCreated":{"required":["id","url","client_token","expires_at","test"],"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"client_token":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"test":{"type":"boolean"}}},"WorkflowSessionInputs":{"required":["email","phone","name","url","campaign","amount","currency","payee","new_payee","bank","answers"],"type":"object","properties":{"email":{"type":["null","string"]},"phone":{"type":["null","string"]},"name":{"type":["null","string"]},"url":{"type":["null","string"]},"campaign":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"payee":{"type":["null","string"]},"new_payee":{"type":["null","boolean"]},"bank":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/WorkflowSessionBank"}]},"answers":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}}},"description":"What you passed and what the customer typed in a session, and their answers to your own questions by step and field."},"WorkflowSessionList":{"required":["data","has_more"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSessionView"}},"has_more":{"type":"boolean"}},"description":"Workflow sessions, newest first, without what customers typed. has_more: pass the last id as starting_after for the next page."},"WorkflowSessionRequest":{"type":"object","properties":{"reference":{"type":["null","string"]},"account_id":{"type":["null","string"]},"session_id":{"type":["null","string"]},"email":{"type":["null","string"]},"phone":{"type":["null","string"]},"name":{"type":["null","string"]},"url":{"type":["null","string"]},"campaign":{"type":["null","string"]},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d\u002B)?$","type":["null","number","string"],"format":"double"},"currency":{"type":["null","string"]},"payee":{"type":["null","string"]},"new_payee":{"type":["null","boolean"]},"locale":{"type":["null","string"]},"return_url":{"type":["null","string"]}}},"WorkflowSessionStep":{"required":["id","kind","outcome","score","reason_codes","ref","skipped_because","recovered_from","statement","at"],"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"outcome":{"type":"string"},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"reason_codes":{"type":"array","items":{"type":"string"}},"ref":{"type":["null","string"],"description":"The id of the check behind it: a check, verification, transaction or session id."},"skipped_because":{"type":["null","string"],"description":"Why a skipped step was skipped."},"recovered_from":{"type":["null","string"],"description":"A device step\u0027s own outcome when a recovery step answered it."},"statement":{"oneOf":[{"type":"null"},{"description":"Which words a consent step\u0027s customer agreed to, at its time.","$ref":"#/components/schemas/WorkflowStatement"}]},"at":{"type":"string","format":"date-time"}},"description":"A step a session went through: outcome (pass, review, fail, unavailable, skipped), its score and reason codes."},"WorkflowSessionView":{"required":["id","object","workflow_id","version","status","decision","score","score_lines","risk","reason_codes","steps","ending","link_id","unverified","reference","account_id","device_session_id","visitor_id","country","outcome","test","created_at","started_at","completed_at","expires_at"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"workflow_id":{"type":"string"},"version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"The version it runs, or null for a draft test.","format":"int32"},"status":{"type":"string"},"decision":{"type":["null","string"]},"score":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"score_lines":{"oneOf":[{"type":"null"},{"description":"Where review and decline begin in the version it ran, and which score they look at.","$ref":"#/components/schemas/WorkflowScoreLines"}]},"risk":{"oneOf":[{"type":"null"},{"description":"The overall risk score of a finished session, with level, range, evidence_strength and what each answer added or took away.","$ref":"#/components/schemas/RiskAssessment"}]},"reason_codes":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowSessionStep"}},"ending":{"type":["null","string"],"description":"Your own ending the customer saw, or null."},"link_id":{"type":["null","string"],"description":"The start link it came from, or null."},"unverified":{"type":"array","items":{"type":"string"},"description":"Values a visitor brought to a start link unsigned. Never rely on them."},"reference":{"type":["null","string"]},"account_id":{"type":["null","string"]},"device_session_id":{"type":["null","string"]},"visitor_id":{"type":["null","string"]},"country":{"type":["null","string"]},"outcome":{"type":["null","string"]},"test":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":["null","string"],"format":"date-time"},"completed_at":{"type":["null","string"],"format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"live_test":{"type":["null","boolean"],"description":"Only there, true, for a live test started from the dashboard."},"inputs":{"oneOf":[{"type":"null"},{"description":"What you passed, what the customer typed and their answers. Only when you get one session, never in the list.","$ref":"#/components/schemas/WorkflowSessionInputs"}]}},"description":"A workflow session and its result: status (created, started, completed, abandoned, expired, canceled), decision (allow, review, deny), score,\nthe overall risk score, reason codes and each step\u0027s outcome."},"WorkflowStatement":{"required":["version","language"],"type":"object","properties":{"version":{"type":"string"},"language":{"type":"string"}}},"WorkflowThemeList":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowThemeView"}}},"description":"Your saved themes, newest change first."},"WorkflowThemeRequest":{"type":"object","properties":{"name":{"type":["null","string"]},"look":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/JsonElement"}]}}},"WorkflowThemeView":{"required":["id","object","name","look","warnings","created_by","created_at","updated_at"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"name":{"type":"string"},"look":{"description":"primary, background, text, dark, accent, success, danger, radius, font, layout, button, mode, header, density, progress, logo and favicon, as set.","$ref":"#/components/schemas/JsonElement"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowThemeWarning"}},"created_by":{"type":["null","string"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"description":"A saved theme: its name and look, and the colors in it that are hard to read."},"WorkflowThemeWarning":{"required":["field","message","fix","blocks"],"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"},"fix":{"type":"string"},"blocks":{"type":"boolean"}},"description":"A color that is hard to read: the field, what is wrong, the nearest color that passes, and whether it stops a workflow from being published."},"WorkflowView":{"required":["id","object","name","status","published_version","unpublished_changes","steps","definition","created_at","updated_at","published_at","removes_at"],"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"published_version":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"unpublished_changes":{"type":"boolean"},"steps":{"type":"array","items":{"type":"string"}},"definition":{"oneOf":[{"type":"null"},{"description":"The draft: steps, rules, brand and copy, as you send it to create or change the workflow.","$ref":"#/components/schemas/JsonElement"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"published_at":{"type":["null","string"],"format":"date-time"},"removes_at":{"type":["null","string"],"description":"Deleted: when it is removed for good unless restored (PUT status live, or draft when never published). Null otherwise.","format":"date-time"},"domain_id":{"type":["null","string"],"description":"The custom domain its links use, or null for Signet\u0027s own host. Only there when the server offers custom domains."},"problems":{"type":["null","array"],"items":{"$ref":"#/components/schemas/WorkflowDraftProblem"},"description":"With the definition: what in the saved draft publishing would refuse (empty when nothing)."},"revision":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The draft\u0027s revision. Send it back with PUT, publish, restore and theme: if someone saved the draft since, 409 draft_changed.","format":"int32","default":0},"changed_by":{"type":["null","string"],"description":"Who saved the draft last: a team member\u0027s email, the owner\u0027s, or api."},"test_version":{"description":"What sessions started with a test key run: \u0022draft\u0022, a version number, or null for the published version (the draft while none is). Live keys are not affected; ?draft=true still runs the draft."}},"description":"A workflow: its name, status (draft, live, archived), the version sessions run, and the draft being edited."}},"securitySchemes":{"secretKey":{"type":"http","description":"Secret API key (sk_live_...). Server-side only.","scheme":"bearer"},"publicKey":{"type":"apiKey","in":"header","name":"X-Signet-Site-Key","description":"Public site key (pk_live_... or pk_test_...). Safe in a page or an app: it can only send what a device read. Used by the tag and the mobile SDKs."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. 1 to 255 visible ASCII characters, no spaces; a UUID works. A retry with the same key and the same body within 24 hours gets the first answer again, with Idempotent-Replayed: true, and is not run or charged again. The same key with a different request answers 409 idempotency_key_reused; while the first request runs, 409 idempotency_in_progress. Server errors and 401, 402, 403, 408 and 429 answers are not stored, so their retry runs. Live and test keys never share a key.","schema":{"type":"string","maxLength":255}}}},"tags":[{"name":"Workflows","x-displayName":"Overview","description":"Your checks, your brand, one link: start a workflow with one API call.\n\n[Workflows spec (OpenAPI 3.1)](/openapi/v1/workflows.json) \u00B7 [Postman collection](/downloads/postman/workflows.postman_collection.json) \u00B7 [About Workflows](/workflows)\n\n#### Example: start a workflow session\n\n\u0060\u0060\u0060http\nPOST /v1/workflows/{id}/sessions\nAuthorization: Bearer sk_test_...\nContent-Type: application/json\n\n{\n  \u0022reference\u0022: \u0022order-1001\u0022,\n  \u0022email\u0022: \u0022jordan.rivera@example.com\u0022,\n  \u0022amount\u0022: 49.90,\n  \u0022currency\u0022: \u0022USD\u0022,\n  \u0022return_url\u0022: \u0022https://shop.example/done\u0022\n}\n\u0060\u0060\u0060\n\nResponse 201 (shortened)\n\n\u0060\u0060\u0060json\n{\n  \u0022id\u0022: \u0022ws_8n6sUmmWNge3LMAC\u0022,\n  \u0022url\u0022: \u0022https://signetsentry.com/w/wt_YstN4oCHscZGuz2DGPfKZdyyINatDfWo\u0022,\n  \u0022client_token\u0022: \u0022wt_YstN4oCHscZGuz2DGPfKZdyyINatDfWo\u0022,\n  \u0022expires_at\u0022: \u00222026-12-05T05:45:31Z\u0022,\n  \u0022test\u0022: true\n}\n\u0060\u0060\u0060"},{"name":"Workflows: Run a workflow","x-displayName":"Run a workflow","description":"Start a session from your server, send the customer its link, read the outcome"},{"name":"Workflows: Build and share","x-displayName":"Build and share","description":"Create, change and publish a workflow, its theme, custom domains, start links and sample app"},{"name":"Workflows: Results","x-displayName":"Results","description":"How a workflow does, version by version"},{"name":"Workflows: Recovery","x-displayName":"Recovery","description":"A second chance for a customer who was denied or sent to review"}],"x-tagGroups":[{"name":"Workflows","tags":["Workflows","Workflows: Run a workflow","Workflows: Build and share","Workflows: Results","Workflows: Recovery"]}],"x-signet-products":[{"slug":"workflows","name":"Workflows","summary":"Your checks, your brand, one link: start a workflow with one API call","page":"/workflows","spec":"/openapi/v1/workflows.json","postman":"/downloads/postman/workflows.postman_collection.json","parts":[{"name":"Run a workflow","kind":"server"},{"name":"Build and share","kind":"server"},{"name":"Results","kind":"server"},{"name":"Recovery","kind":"server"}]}],"x-signet-product":"workflows"}