Self-Service API references
The OneWelcome Identity Platform provides the Self-Service service, which lets users manage their own account. The Self-Service API is the API behind the Self-Service portal. You can use it to build your own self-service experience in a web or mobile application. All operations act on behalf of the signed-in user, who is identified by the access token.
For a step-by-step guide with examples, see Build your own self-service UI.
Self-Service APIs
The Self-Service service includes the following API:
-
Self-Service API: Provides endpoints for the following tasks:
-
Get the attribute schema: Retrieve the identity store attributes of your tenant, with their metadata, to build a profile form.
-
Get and update personal information: Retrieve and update the signed-in user's identity in the identity store.
-
Get email addresses: Retrieve the signed-in user's email addresses, including the primary email address.
-
Change the primary email address: Request a change of primary email address, which sends a verification link to the new address, and confirm the change with the token from that link.
-
Get the password policy: Retrieve your tenant's password policy to display and validate password rules.
-
Change the password: Change the signed-in user's password, after verifying the current password.
-
Manage additional email addresses: Add an additional email address, which is then verified by email, and delete additional email addresses.
-
Manage phone numbers: Retrieve the user's phone numbers, change the primary phone number with a verification code sent by text message, and add or delete additional phone numbers.
-
Manage passkeys: List, rename, and delete the user's passkeys, and enroll a new passkey with the WebAuthn API.
-
Manage authenticator apps: Enroll an authenticator app for time-based one-time passwords (TOTP), and list or delete enrolled devices.
-
Get the display configuration: Retrieve the attributes that administrators selected in the console, with their order and read-only setting.
-
The Self-Service portal currently uses part of these capabilities: personal information, viewing email addresses, and changing the password. Your own application can use all of them.
Authentication
All Self-Service API endpoints require an OAuth 2.0 Bearer access token in JWT format, issued by your tenant to the signed-in user with the authorization code flow. Tokens issued with the client credentials grant are not accepted.
| Audience | Scope | Description |
|---|---|---|
self-service |
self-service |
Required for all Self-Service API endpoints. |
helpdesk-management-service |
helpdesk-management-service:self-service-configuration:get |
Additionally required to get the display configuration. |
For how to set up a web client that gets these tokens, see Set up a web client for your application.