Start a session
Start one session per applicant. Thetemplate_id is the journey’s ID, the last part of its URL in Console:
reference_id is your own identifier for the applicant; it comes back on the session, its results and its webhook.
The response carries:
- The session’s
id. - An
embed_url. - The
session_tokenalready embedded in it. expires_at(when the link stops working).- Your
reference_id.
409.
Retrying the call starts a second session rather than returning the first; use reference_id to tell them apart.
Show it to the applicant
Openembed_url in an iframe inside your product:
Receive the outcome
When the applicant finishes and the checks complete, Baselayer sends theOnboardingSession.completed webhook. It is a summary, not the full results. It carries:
- The
verdict(see below). - Your
reference_id. individual_ref.business_refwhen the journey covered a business.business_operator_link_status, which says whether the applicant is confirmed to operate that business.
submission_id is the session’s id. See every webhook field in the API Reference.
Rarely, the webhook goes out late, after a reviewer has already decided the session; verdict then carries that decision, which can be REJECTED. Treat the results as the source of truth.
Then read the session’s results:
- The
verdict. - What the applicant entered (including your custom fields).
- Their confirmed identity.
- The business.
- Beneficial owners.
- What each check found.
409 with error code 6007, and a completed session whose results aren’t available answers 404 with error code 6008.
How verdicts work
Next: to give an agent a KYA credential for this person, use
individual_ref to mint a credential.