individual_ref (and a business_ref when a business is involved), which you use to mint credentials.
In the hosted flow, the person:
- Enters their phone number, date of birth and country.
- Types the code Baselayer texts them.
- Confirms their details.
Choosing a path
You need an org API key with identity submission permissions (see Authentication). Every organization API key already has them. For every route, webhook and state on each path, see Hosted vs. direct.Every identity, credential and audit log call goes to
https://api.baselayer.com with your key in the X-API-Key header. Baselayer reads your organization and application from that key, never from the request body, and every read is scoped to both. Baselayer’s public signing keys and revocation lists are served from https://registry.baselayer.com and need no key.The phone and email checks only run in hosted enrollment. A person verified from details you submit directly has neither check, so their credentials carry no verification level.
Path A: Submit details directly
Direct submission needs the person’s full legal name, date of birth, phone number, address and SSN (
national_id), all collected by you. A submission missing any of them is refused.-
Submit, with
typeset toINDIVIDUAL(person only) orBUSINESS(person + the business they operate). It returns202right away, and verification runs in the background.See the API reference. -
Poll until
stateis terminal, or subscribe to theVerification.completedandVerification.failedwebhooks. Poll every 2 seconds. A person’s check usually finishes in seconds. A full business check can take minutes.See the API reference. -
Read the verdict:
APPROVED,UNDER_REVIEW, orREJECTED- plus the resulting
individual_ref - and
business_ref/business_operator_link_status, for aBUSINESSverification
Idempotency-Key header. A request without one is refused with 422. Resending the same key and body returns the original verification, marked Idempotent-Replayed: true, instead of starting a second one.
Path B: Use hosted enrollment
Hosted enrollment needs only a journey published in Console. The person enters the rest. Hosted enrollment must be turned on for your organization first (see Hosted Enrollment). Start a session on that journey from your server and send the person to itsembed_url, in an iframe or by redirect. You get the outcome by webhook or by polling the session’s results. See Sessions and embedding for the steps and Hosted Enrollment to build the journey, or try the Hosted Enrollment Playground.
Verify someone again
Start a fresh verification cycle against the identity’s most recent submitted attributes. Send it with a newIdempotency-Key. The individual_ref never changes. Use this instead of a fresh submission when an identity has expired.
Check readiness before minting
Look up the identity to see:- Whether it is current (
verification_state: CURRENT). - Which attributes it can attest to (
active_keys). - Which businesses a person is linked to (where applicable).
Troubleshooting
The reference returns 404
References belong only to the organization and application they were issued to. An individual_ref (starts with prn_) or business_ref (starts with bus_) returns the same 404 when it is:
- From another organization.
- From your other environment.
- One that was never issued.
Verification is still running
Verification runs in the background after the202, and a full business check can take minutes. Keep polling the original verification, or wait for the webhook. A new Idempotency-Key would start a second verification.
Verification needs review
An operator link landsUNDER_REVIEW instead of VERIFIED unless:
- The business has a
tin. - The IRS matches it to the business name.
- The business is verified against its state registry.
tin, the business can still be APPROVED, but the link waits for review. See Who Can Act for a Business.
Minting is refused
Minting needs:- An identity whose verification is
CURRENT. - For a business credential, a
VERIFIEDoperator link and current business evidence.
- Check the identity with
GET /issuance/identities/individuals/{individual_ref}. - Re-verify it if it has expired or been superseded.
- Mint again.
type: BUSINESS verification for the pair. See Minting Credentials.
Error codes
Error codes
See every error response in the API Reference for direct verifications and re-verification.