Hosted link events
A hosted verification page (for example https://verify.toden.co/session/…) tells whatever is hosting it what the applicant is doing: when the flow is ready, which step they are on, when they submit, and when something goes wrong. Nothing to install. Open the link in a WebView (or an iframe) and listen.
The events are deliberately light. They carry ids, step names and error codes, never anything the applicant typed or captured. The result itself still arrives by webhook and GET /status/:id, exactly as before.
Which link to open
Mint a per-applicant session from your backend with POST /api/v1/sessions and open its url. That link belongs to one person and carries your externalUserId, so every event you receive is already about a user you know. The sessionId it returns is also the verification’s id once the applicant submits.
A shared hosted link (/verify/workflow/<linkToken>) emits the same events, but a shared link is one URL for many people, so the events cannot tell you who is verifying.
The events
Every message is a JSON object with source: "myaza-kyc" and a type:
step values are the SDK’s step names: consent, email-verification, phone-verification, country-select, id-type, id-input, document-capture, liveness, proof-of-address, address-search, address-collection, address-entrance, address-review, questionnaire, business-details, business-key-people, business-documents, applicant-role, submitted. error codes are the SDK’s KYCError codes (network_error, camera_permission_denied, upload_failed, feature_disabled, insufficient_credits, invalid_api_key, unknown).
New event types may be added; existing ones are never renamed. Ignore types you do not recognise.
React Native (react-native-webview)
The page posts to the WebView’s own channel, so there is nothing to configure on the page side:
The camera works inside react-native-webview on iOS 14.3+ and on Android once your app grants the WebView’s camera permission request (onPermissionRequest). NFC chip reading, background presence checks and native liveness are not available inside a WebView; if your workflow needs them, use the React Native SDK.
Flutter (webview_flutter)
Register a JavaScript channel named MyazaKYC; the page posts to it when it exists:
In an iframe
Append your page’s origin to the link as origin, and the page posts to that window only when the browser confirms it really is the embedder:
An origin that does not match the page’s actual parent is ignored: no events are posted at all, rather than to a window that should not read them.
Which host a link is on
Hosted links are served from verify.toden.co. An organisation that has set up its own verification domain can have links issued on that hostname instead, for example https://verify.yourcompany.com/verify/<token>. The same response fields (url, resubmission.url and the link fields in webhooks) carry whichever host applies, and the API contract does not change.
- Do not hard-code the host. Open the
urlexactly as the API returns it. - Check
event.originagainst the origin of the link you opened, as in the example above, not against a fixed Toden address. - Do not build links from a token yourself. A token also works on
verify.toden.co, but the link you were given is the one that carries your organisation’s domain.
What the events are not
They are a courtesy to the host’s UI, not the record. Treat submitted as “the applicant is done with the flow”; the verdict still comes from your webhook or from polling GET /status/:id with the sessionId you minted.