Overview
Before you can issue a credential to someone, they need an account in your organisation. Onboarding creates two things at once: an identity record and the custodial wallet attached to it. After this step the user can sign in, accept credential offers, and respond to presentation requests.Endpoint
Request
Request body
You must supply at least one ofemail or username. The rest are optional, but that choice decides how the user first signs in, so make it deliberately.
The rule behind the table: the platform populates
tempPassword exactly when the onboarding email does not run. Supplying an email is therefore the one case where you get no password back, because the user sets their own.
email (optional)
The user’s email address. If you supply one, the platform uses it for password-recovery flows and as the default sign-in identifier, and it sends the onboarding email unless you set sendOnboardingEmail to false.
Supplying an email means no password comes back to you. The user sets their own through the onboarding link, so tempPassword is an empty string and there is nothing for you to pass on.
username (optional)
A handle for the user. It may contain only alphanumeric characters, dots, underscores, or hyphens. This is useful when the user has no email or doesn’t want to share one, or when you want stable, human-readable identifiers in your own system.
Onboarding by username alone is the one case where no email is involved at all, so the response is the only place the user’s password ever appears. Capture it.
If you omit username, the platform derives one from the email.
firstName, lastName (optional)
The user’s name as you’d like it shown in their wallet and in consent dialogs. Update later if you need to.
externalIdentifier (optional)
Your own id for the user, such as a CRM id, a partner reference number, or anything stable on your side. The platform stores it against the account so you can look the user up by it later (see Lookup and IdP linking). It doesn’t have to be unique across organisations, but should be unique within yours.
sendOnboardingEmail (optional)
Whether to send the Keycloak onboarding email that walks the user through setting a password, verifying their email, and configuring strong auth. Defaults to true when you supply an email and the environment has onboarding contexts configured. Requires email.
onboardingContext (optional)
Which onboarding context to use from the server-side registry. Defaults to me-wallet.
strongAuth (optional)
Which strong-auth setup to include in the email stream. Defaults to the context’s own defaultStrongAuth.
Response
HTTP 201 Created
Only
tempPassword is guaranteed present. The resend endpoint takes the username as a path parameter, so if you need it for later calls, either supply it yourself at onboarding or look it up with GET $BASE_URL/consumer-onboarding/api/users.
Branch on
emailSent rather than on whether tempPassword is a non-empty string. The two always agree, but
emailSent says which pathway ran, which is the thing you actually care about.Error responses
What happens next
Users sign in to the didx:me wallet at$BASE_URL/me-wallet/app. How they first sign in depends on whether the onboarding email ran.
With the onboarding email
The platform sends it for a new user with anemail, as long as sendOnboardingEmail is not false:
- The user receives an onboarding email from Keycloak with a single-use, time-boxed link.
- Following it, they set their own password, verify their email, and configure strong auth.
- Any credentials you issue in the meantime wait as pending offers in their wallet.
VERIFY_EMAIL action, so signing in fails with invalid_grant: Account is not fully set up. That is expected, not a fault.
Without it
This is what happens when you onboard byusername alone, or pass sendOnboardingEmail: false:
- The platform creates the password itself and returns it as
tempPassword. - The account has no pending actions, so that password works on the first attempt.
- Nothing is emailed, so delivering the password and the wallet URL, and arranging any second factor, is yours to do.
Resend the invite
If the email bounced, expired, or was lost:409.
Lookup and IdP linking
Related endpoints on the sameconsumer-onboarding API:
GET /users. List users in your organisation.GET /users/by-external-identifier/{externalIdentifier}. Find a user by theexternalIdentifieryou supplied at onboarding.GET /users/{username}/external-identifier. Read the external identifier stored against an existing user.PATCH /users/{username}/idp-link. Link the account to an external identity provider.POST /users/{username}/onboarding-email. Resend the onboarding email to a pending invitee.

