Workflows integration
The hosted journey contract: the journey request, the launch URL, the status read and the signed callback.
IDCanopy Workflows & UI runs a journey that you configure with us. Your backend creates the journey with the same credentials as every other IDCanopy API call; your frontend opens the launch URL that comes back; the outcome reaches your backend by a signed callback, or by a status read.
The journey is created, and its status read, on the IDCanopy API base URL, so the paths below are relative to that base URL and use its bearer token. The one hosted address in your integration is the launch URL we return: open it as it was returned, and do not build one from the API base URL.
Conceptual sequence. The browser hosts the interaction; your backend creates the journey with its bearer token and verifies result delivery.
1. Authenticate
Authenticate as for every other IDCanopy API call: Authentication has the
exchange that turns your API key into a bearer token. Send it as
Authorization: Bearer <access_token> on the calls below, and keep it on your server: never send it to
your browser page.
2. Create the journey
POST /sdk/universal/handshake, with Authorization: Bearer <access_token>.
Request
A field a step needs reaches it from three places: this handshake, an intake screen that asks the end user for it, or a step that ran earlier in the journey. Leave out what a step can obtain another way.
| Field | Required | Type | What it does |
|---|---|---|---|
journey.customerId | Yes | string | Your account identifier. It must equal the account the bearer token belongs to, otherwise 401. |
journey.processName | Yes | string | Your name for this journey, 1 to 200 characters, returned by the status read. Leave out steps to run the journey predefined for your account under this name; a name with no active predefined process for your account is a 400 naming journey.processName. With a predefined process, the journey.language and journey.errorTexts you send take precedence over the defaults stored with the process, and error texts combine per code and language. |
journey.language | No | string | The language of the journey, as a BCP 47 tag: de, en, bg. Any valid tag is accepted and stored in its canonical form, so de-at is stored as de-AT; a malformed tag is a 400. It selects the language of every screen and of the display text an error carries. English when omitted. |
journey.errorTexts | No | object | Your own display texts for journey errors, keyed by error code and then by language. The step catalogue documents the codes, the lookup order, the limits and the shape. |
steps | No | array, up to 10 steps | The steps of the journey. The numeric id decides the order they run, not their position in this array. Leave it out to run the predefined process for your account. |
steps[].id | Yes | whole number from 1 to 1000, as a string | Your identifier for the step, "1", "2". Steps run in ascending numeric order, so number them from "1". "1" is the only spelling of the first step: no leading zero, no sign, no surrounding space. A duplicate, non-numeric, out-of-range or non-canonical id is refused. |
steps[].type | Yes | string | The step's type, from the step catalogue in section 3. A type the journey does not know is refused. |
steps[].configuration | No | object, or null | Configuration for that step type. When you send it, it must be an object or null; send {}, null, or leave it out when the step reads none. |
validationData.fullName | Conditional | string | The subject's full name, Jane Doe. Read by the document step, by screening and by the address step. |
validationData.DOB | Conditional | string | Date of birth as YYYY/MM/DD. We convert it to YYYY-MM-DD when a verification service needs a date of birth. |
validationData.address | Conditional | object | streetAddress, locality, region, postalCode, and country as ISO 2. Read by the address step. One of them has to be filled in. |
validationData.mobileNumber | No | string | Carried with the journey and read only when we build the callback: it fills journeySummary.authoritativeDataSubject.mobileNumber when the identity document did not supply a mobile number. No step reads it, so it changes nothing that runs. |
passThroughData | No | object | Opaque data of yours. The whole object comes back in the callback; the status read does not carry it. passThroughData.userId is used twice: as a reference id in the request the screening and address steps send to their verification service, and, in the document step only, as the fallback name when there is no full name. |
validationData.iban, validationData.phoneNumber, validationData.unstructuredInput | No | string | Carried with the journey. No step reads them. |
steps[].interface | Accepted, no effect | string | Stored with the step and never read. |
steps[].blocking | Accepted, no effect | boolean | Stored with the step and never read. |
matchName, matchDob, magicFlow, validitySuperpower, journeyDuration | Accepted, no effect | Carried into the journey and never read. validitySuperpower in particular does not extend the launch token lifetime. |
A journey you define with steps is validated before anything is stored, so a refused request leaves
no journey behind. It is refused, with 400, when steps is sent but empty or longer than 10; a step
type that is not in the catalogue in section 3, or no type at all; a step id that is missing, not a
whole number from 1 to 1000, not written in canonical form, or repeated; a configuration that is not
a plain object and not null; a countries value that is present but blank; an amlScreening step
with no earlier photoIdent step and no name, date of birth or country; or an addressVerify step
with no earlier photoIdent step and no name, date of birth or address. A step is earlier than another
when its numeric id is lower, wherever it sits in the array.
Creation checks the request shape, and it checks what a step needs when no earlier identity step could
supply it. That is a weaker check than the one a step makes when it runs. The address step, for
example, needs the subject's name and date of birth and an address it can map in every case: with a
document step earlier in the journey, creation accepts a request that supplies none of the three, and
the address step then fails at run time if the document step did not supply them. For an address-only
journey, supply validationData.fullName, validationData.DOB and a filled-in
validationData.address when you create it.
A 400 carries a message. When creation was refused field by field, it also carries an errors
array, each entry naming a path to the field:
{
"message": "Invalid handshake request",
"errors": [
{ "field": "steps[0].type", "message": "unsupported step type \"creditCheck\" (supported: photoIdent, amlScreening, addressVerify)" },
{ "field": "steps[1].id", "message": "duplicate step id \"1\"" }
]
}Not every 400 is that detailed: a request with an empty body is refused with an error only and no
errors array.
Response
201 with three fields:
{
"transactionId": "9e0f2b41-6b28-4d19-9e0e-9e1b0f0c2a53",
"uiHandle": "<the launch URL we issue>",
"initTimestamp": "2026-11-30T19:35:07.514Z"
}| Field | Meaning |
|---|---|
transactionId | The journey's reference. Keep it on your server: you need it to read the status, and it arrives again in the callback. |
uiHandle | The launch URL. It is opaque, it carries a token in its query string, and it is the only thing your browser page needs. Open it as returned. |
initTimestamp | When we began handling the request, ISO 8601. |
One complete request with synthetic data:
curl --fail-with-body -X POST "$UMBRELLA_BASE_URL/sdk/universal/handshake" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"journey": { "customerId": "example-customer", "processName": "customer-onboarding" },
"steps": [
{ "id": "1", "type": "photoIdent", "configuration": { "docOnly": true } },
{ "id": "2", "type": "amlScreening", "configuration": { "countries": "DE" } }
],
"validationData": {
"fullName": "Jane Doe",
"DOB": "1990/01/01",
"address": {
"streetAddress": "Beispielgasse 1",
"locality": "Wien",
"postalCode": "1010",
"country": "AT"
}
},
"passThroughData": { "userId": "example-user-1" }
}'Errors: 400 for the cases listed above, and for a missing journey.customerId or
journey.processName; 401 when the bearer token is missing, unknown or expired, in which case
authenticate again and send the same request again, and also when journey.customerId is not
the account the token belongs to; 403 when the account is not enabled for hosted journeys;
500 on a server error; 502 when the journey service cannot be reached, in which case retry
later with the same request.
3. The step catalogue
A journey is a configurable sequence of steps, each one taken from the step catalogue and run in the
order its id gives it. The catalogue holds the step types below. A screen-based step shows the end
user something; a background step runs without a screen.
type | What it does | Screen or background |
|---|---|---|
phoneRisk | Scores the phone number for line type, number history and SIM changes. | Background |
phoneIdent | Retrieves the identity data linked to a phone number and matches the name and address on file. | Background |
phoneStatus | Reports whether the line is active, reachable or roaming. | Background |
emailRisk | Adds the email address to the risk assessment. | Background |
deviceFingerprint | Records the device the journey runs on as risk evidence. | Background |
ipLocation | Resolves the location of the connection and compares it with the declared country. | Background |
repeatFraudDetection | Searches earlier journeys for the same face under another identity. | Background |
riskClassify | Combines the risk, identity, address and screening results into a risk class. | Background |
otpVerify | Checks a one-time code sent to the subject's phone number or email address. | Screen |
photoIdent | Identity document with a selfie and a liveness check. | Screen |
documentVerify | Document images checked for authenticity, with the identity data read from them. | Screen |
facialComparison | Selfie compared with the document photograph. | Screen |
liveness | Confirms that the subject is present during the journey. | Screen |
ageVerify | Age band and disability eligibility, from the document check. | Background |
nfcRead | Identity data read from the chip of an electronic document. | Screen |
qesIdent | Remote identification confirmed with one qualified electronic signature. | Screen |
eudiWallet | Identity data shared from a European Digital Identity wallet. | Screen |
eidVerify | Verification through the electronic identity the subject already holds. | Screen |
videoIdent | Video call in which an agent checks the document and the person. | Screen |
mobileIdent | Identification that runs on the subject's own phone. | Screen |
idvProtocol | A step of the identification protocol. | Background |
kyc1x1 | One data point checked against one independent source. | Background |
kyc2x2 | Identity and address data checked against independent sources. | Background |
otherIdScan | Card types beyond passport and national identity card, read and added to the data. | Screen |
addressCapture | Type-ahead address entry, resolved to a structured address. | Screen |
addressVerify | Person checked against a postal address, with an OK, REVIEW or NOK decision. | Background |
addressOcr | Address read from a photograph the subject supplies. | Screen |
utilityBillCapture | Utility bill captured as proof of address. | Screen |
amlScreening | Sanctions, PEP and watchlist screening. | Background |
monitoringRegister | Registers the subject for ongoing monitoring. | Background |
aisLogin | Bank login and name match, confirming that this person can access the account. | Screen |
aisAffordability | Accounts, balances and transactions from the subject's bank. | Screen |
accountCheck | Account holder name checked at the account-holding bank. | Background |
challengeDeposit | Small deposit with a name match against the account holder record. | Background |
paymentInitiate | Account-to-account payment through a hosted payment page. | Screen |
eSign | Qualified electronic signatures collected on the document. | Screen |
pdfDossier | Assembles the journey's evidence into a PDF dossier. | Background |
journeySummary | Produces the structured summary of the journey and its steps. | Background |
crossDeviceHandoff | Hands the journey to the subject's own phone over a QR code. | Screen |
dataCapture | Asks the subject for data the journey needs; verifies nothing. | Screen |
consentScreen | Consent recorded for the step that needs it. | Screen |
legalConsent | Legal disclaimer shown and acceptance recorded. | Screen |
infoScreen | Information shown; nothing asked and nothing verified. | Screen |
documentUpload | Document images or a file supplied by the subject and stored. | Screen |
startScreen | Welcomes the end user, says what will happen and starts the journey when they act. | Screen |
thankYouScreen | Confirms that the journey is complete, then returns the end user to your application. | Screen |
The fields each type takes, the fields it produces and the configuration it reads are on the workflow step catalogue page.
The screening step screens the subject against sanctions, PEP and watchlists and reports hit and
totalResults in the step's result summary. Where you need the profile behind a candidate match, the
source evidence and the wider risk datasets, AML Expert gives you that from your
backend, before or after the journey; correlate the check with your own customer record.
A screening hit does not fail the step and does not fail the journey. The step completes, and its result
summary carries hit and totalResults. The journey's outcome says that the steps ran; it is not a
decision about the subject, and a hit is not one. Your backend decides what a hit means for your
process.
Steps run strictly in ascending id order, one at a time, and a later step cannot start while an
earlier one is unfinished. A step that fails ends the journey at once and the steps after it are not
run. A step that has finished is not run again: if the browser asks for it a second time it is answered
from the stored result, and nothing is called again. The journey runs exactly the steps in your
configuration: it does not select an identification method from a risk score, and it stores no risk
class.
4. Launch
Open uiHandle exactly as it was returned. Do not rebuild it from a base URL, do not edit its
parameters, and do not reuse a URL from an earlier journey.
Use it as a full-page redirect, or inside an iframe on your own page. The URL carries a token that stays valid for 30 minutes from the moment the journey was created, and that token carries no personal data of the subject. It is still a credential for this one journey, so keep it on your server until the moment you hand it to the browser, and do not log it. There is no way to extend or refresh it: an expired launch URL is refused by the hosted pages, and the remedy is a new journey.
Embedding needs one thing from us. If you frame the launch URL, send us the exact origin of the page that frames it, scheme, host and port, as part of your access: the hosted pages allow only registered origins to frame them. An origin that was not registered is refused by the browser, not by us, and the user sees an empty frame. A full-page redirect needs no registration.
5. Result
Your backend learns the result through one of the two channels below. The browser page plays no part in delivering it.
Read the status
GET /sdk/universal/journeys/{transactionId}, with Authorization: Bearer <access_token>.
{
"transactionId": "9e0f2b41-6b28-4d19-9e0e-9e1b0f0c2a53",
"journeyId": "3c9d2a71-0a52-4f6f-8a54-2a0f0b1c7d44",
"customerId": "example-customer",
"processName": "customer-onboarding",
"journeyStatus": "completed",
"finished": true,
"currentStep": null,
"steps": [
{ "stepId": "1", "type": "photoIdent", "status": "completed", "startedAt": "2026-11-30T19:35:07.800Z", "completedAt": "2026-11-30T19:35:14.400Z", "result": { "sessionId": "<the verification session>", "completed": true } },
{ "stepId": "2", "type": "amlScreening", "status": "completed", "startedAt": "2026-11-30T19:35:14.450Z", "completedAt": "2026-11-30T19:35:14.500Z", "result": { "hit": false, "totalResults": 0 } }
],
"finalOutcome": { "result": "COMPLETED", "completedAt": "2026-11-30T19:35:14.512Z" },
"updatedAt": "2026-11-30T19:35:14.513Z",
"createdAt": "2026-11-30T19:35:06.912Z"
}| Field | Meaning |
|---|---|
journeyStatus | pending before any step has run, in_progress while a step is unfinished, then completed when every step finished or failed when a step failed. |
finished | true once the journey has ended either way. |
currentStep | The first step that has not completed yet, as stepId, type, status, startedAt and completedAt, or null once the journey has ended. |
steps[] | One entry per step: stepId, type, status, startedAt, completedAt, and a result summary where the step produced one. A step's status is pending, in_progress, completed or failed. |
steps[].result | A short summary, not a decision and never the verification service's own payload: for amlScreening, hit and totalResults; for addressVerify, addressStatus, matchQuality, finalAddress and globalResult; for photoIdent, sessionId, providerStatus, providerTransactionId and completed. The summary is built from what the step has stored, not from how it ended, so its absence says nothing about the step's outcome. A screening or address step stores its summary when it runs, so a failed one carries none. A photoIdent step is the one to know: its sessionId is published as soon as the provider session exists, so a summary can be there while the step is in_progress, without completed, and on a step that ended failed. Read the step's status for whether it has finished, and completed for whether the provider has reported. |
finalOutcome | null until the journey has ended, then result as COMPLETED or FAILED, and completedAt. |
Read finalOutcome.result for how the journey ended and journeyStatus for progress. COMPLETED
means every step ran without failure. It does not mean the subject passed anything: verification
decisions belong to your backend. FAILED means a step failed, not that the subject was rejected.
Errors: 401 when the bearer token is not usable, 403 when the account is not enabled for
hosted journeys, 404 when there is no journey for that transactionId on your account, 502
when the journey service cannot be reached.
A 404 here is also the answer for a journey of another account, never a 403. Our own
refusals carry { "error": "..." }; this 404, and the 400 of the create call, carry
{ "message": "..." }, the 400 with an errors array alongside it.
Receive the callback
Your IDCanopy contact sets the callback URL and its signing secret up with you as part of your access,
and no callback is ever sent without a signing secret. The URL has to be
https on a public address. We do not follow redirects, so the POST has to be answered at that exact
URL: a 3xx is a failed delivery.
The callback is a POST with a JSON body. We build the body when a delivery round runs, from the
journey as it stands at that moment, rather than once when the journey ends: timestamp is when the
body you received was built. Once the journey has ended, a delivery is owed. Delivery is at least
once: a delivery can reach you more than once, so your receiver has to treat two deliveries for the
same journey as one. Deduplicate on transactionId together with the journey status, and answer
2xx quickly. Treat a delivery as the notification rather than the record of what happened.
One delivery round makes up to four attempts, and two separate limits apply. The HTTP exchange of a
single attempt is capped at eight seconds. The whole round is capped at twenty seconds, and that
covers everything in it: resolving the name, every attempt, and every wait between them. The waits
grow, roughly 2, 4 and 8 seconds, so a round can make fewer than four attempts once the twenty seconds
are used up, and it never runs past them. Answer 2xx within a few seconds: a lookup or an exchange
that is still open when the round's budget runs out counts as a failed attempt, not as a delivery.
A 2xx answer accepts the delivery. Only a transient failure is tried again: an attempt that cannot
connect, one that times out, or an answer of 5xx, 408 or 429. Any other answer ends the delivery
for good and it is not sent again: a redirect, which we do not follow, and every other non-2xx
answer that is not one of those three statuses.
A round that ends on a transient failure leaves the delivery owed rather than lost. It is attempted again as a fresh round of up to four attempts, no sooner than about thirty seconds after the round that ended. A later round is triggered by a status read, yours or the one our hosted pages make while the journey is open: if the journey has ended and no callback has arrived, read the status, and read it again a little later if the delivery still has not arrived. A delivery that is owed survives a restart on our side, and a status read returns the journey's result whether or not the delivery then succeeds. A journey with no callback configured for your account delivers nothing, and the status read is then the only channel.
| Header | Value |
|---|---|
Content-Type | application/json. |
Signature | The HMAC-SHA256 of the raw request body, keyed with your signing secret, in lower-case hex. |
Verify before you parse: compute the HMAC over the bytes you received, in constant time, and reject the
delivery when it does not match. The signature covers the body only and there is no timestamp header
alongside it, so a captured body can be replayed; the guarantee is that the body came from us, not that
this is its first arrival. Correlate on transactionId together with the journey status, and use
passThroughData to tie the journey to your own record; treat two deliveries that agree on both as
one, and make the downstream effect of a delivery safe to repeat.
The payload, with synthetic data:
{
"transactionId": "9e0f2b41-6b28-4d19-9e0e-9e1b0f0c2a53",
"journeyId": "3c9d2a71-0a52-4f6f-8a54-2a0f0b1c7d44",
"customerId": "example-customer",
"timestamp": "2026-11-30T19:35:14.601Z",
"status": "completed",
"finalOutcome": { "result": "COMPLETED", "completedAt": "2026-11-30T19:35:14.512Z" },
"journeySummary": {
"journeyStats": {
"completedSteps": 2,
"failedSteps": 0,
"totalSteps": 2,
"startTime": "2026-11-30T19:35:07.800Z",
"endTime": "2026-11-30T19:35:14.500Z"
},
"steps": [
{ "stepId": "1", "type": "photoIdent", "status": "completed", "startedAt": "2026-11-30T19:35:07.800Z", "completedAt": "2026-11-30T19:35:14.400Z", "result": { "sessionId": "<the verification session>", "completed": true } },
{ "stepId": "2", "type": "amlScreening", "status": "completed", "startedAt": "2026-11-30T19:35:14.450Z", "completedAt": "2026-11-30T19:35:14.500Z", "result": { "hit": false, "totalResults": 0 } }
],
"authoritativeDataSubject": { "fullName": "Jane Doe", "DOB": "1990/01/01" }
},
"passThroughData": { "userId": "example-user-1" }
}| Field | Meaning |
|---|---|
transactionId | The journey's reference, the same one the status read takes. |
journeyId | Our identifier for the journey, the same value the status read reports. |
customerId | Your account identifier. |
timestamp | When the callback was built, ISO 8601. |
status | completed or failed: the journey's own end state. |
finalOutcome | result as COMPLETED or FAILED, and completedAt. The same object the status read reports. |
journeySummary.journeyStats | completedSteps, failedSteps, totalSteps, startTime, endTime. |
journeySummary.steps[] | stepId, type, status, startedAt, completedAt, and a result summary where the step has one, the same summaries the status read reports. A thank-you screen is complete as soon as it is displayed, so a step entry can carry shownAt with no confirmedAt, the status read then shows the same, and when that screen is the last step the callback is sent at that moment. |
journeySummary.authoritativeDataSubject | fullName, DOB and mobileNumber, present only when at least one of the three is known; a key we do not know is left out. Values come from the identity document where there is one, otherwise from validationData, and a DOB from validationData comes back in the form you sent it. |
passThroughData | Your own object, present only when you supplied one. |
A failed journey's callback has status: failed and finalOutcome.result as FAILED, the failed step
is marked failed, and the steps after it stay pending. A failed step carries a result summary only
when it stored something to summarise: a failed screening or address step carries none, and a failed
photoIdent step normally does, because its session already existed. Neither the callback nor the
status read carries the verification service's own error text: that stays with us. The failure itself
is reported in the error object the step catalogue documents, under Errors and
messages, with our own errorText for your logs and the customerDisplayText for the end user.
6. Errors and failure behaviour
| What happens | What you get | What to do |
|---|---|---|
| The journey is refused when it is created | 400, with no transactionId | Correct the request and send it again. Nothing was created. |
| The journey is created for an account the bearer token does not belong to | 401 | Correct the request. Do not retry with another account identifier. |
| The bearer token is missing, unknown or expired | 401 from the create call or the status read | Authenticate again, then repeat the call. |
| A step fails while it runs, because the service behind it fails | The step is marked failed, the journey ends at once, the steps after it do not run, finalOutcome.result is FAILED and the callback reports the failure | Treat the journey as finished and failed. A failed step is not retried and nothing after it runs: create a new journey. |
| The launch token has expired | The hosted pages refuse the URL | Create a new journey. There is no renewal. |
| The browser refuses to frame the launch URL | An empty frame, no error of ours | Register the framing origin with us, or use a redirect. |
| The callback does not arrive, or its signature does not verify | Nothing to act on, or a delivery you must reject | Read the status endpoint: that read is what sends the delivery still owed, and it returns the result either way. Log a rejected delivery and act on nothing. |
The status read answers 404 | No journey for that transactionId on your account; a journey of another account answers 404 as well | Check the identifier and the token. Do not infer that the journey did not happen. |
The create call answers 5xx | No transactionId, so no status to read either | The outcome of the request is unknown. Confirm with us before creating a second journey for the same user. |
Show the user a neutral message when creation fails. Do not surface the backend response, the transaction identifier, the launch URL or the bearer token in your page, in client-side logs or in your analytics.
The error object a failed step or a failed journey reports is on the step catalogue page, under Errors and messages: its fields, the codes, whether the end user can retry, and the display text in the journey's language.
The Mock API on this portal answers individual API operations under /mock/api/services. It does not
serve this journey, and a 2xx from a mock fixture is not a journey outcome.
Related services
A journey orchestrates the steps in your configuration. Several capabilities are also their own API calls from your backend: AML Expert, Phone Intelligence and QES identify and sign. Read their pages for those contracts.
Next steps
Agree the steps, the launch pattern and the result delivery with us, and we issue your access with the API key, the callback URL and its signing secret, and set up the processes predefined for your account. Contact office@idcanopy.com to start, and see Workflows & UI for the product overview.