Pre-Register & Activate
How to integrate the Next Identity Journeys with a user invite workflow
Deprecation NoticeThe content on this page has been deprecated and is no longer valid. We have made significant improvements and updates to provide you with the most accurate and up-to-date information.
To access the latest content, please visit: Pre-register.
The pre-register journey enables an application to invite a user to activate their account when self-registration isn't a supported method of registration.
The typical pre-register journey includes the following steps:
Step | Description |
---|---|
Pre-Register | The user account is created by your application team, and pre-populated with a limited set of known data (like email address, first name, and last name, for example). Upon successful pre-registration, the use is sent an email or SMS with the information needed to activate their account. |
Activate | After the account is successfully pre-registered, the user will receive an email or SMS with instructions to activate their account. Clicking or tapping the link included in the message will take the user to the activation screen. The activation screen includes additional information the user needs to provide to complete their account registration (like address and password, for example), and prompts the user to view consent-related information like terms and conditions and privacy notices. |
Assumptions
Your application does not allow users to self-register and requires them to be pre-registered and invited to activate their new account.
Integration
Here is an example of how to configure the pre-register API call. The specific fields needed will depend on your application requirements.
curl --location --request POST 'https://id.eu.nextreason.com/idp/v1/account/pre-register' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic REDACTED'
--data-raw '{
"profile_fields": {
"firstName": "John",
"lastName": "Smith",
"emailAddress": "[email protected]",
"resourceAccessB2b": "true"
},
"client_id": "c8462jyq9dnupu2q4j7sfjzvn6c87j92",
"locale": "en-US",
"auth_type": "email",
"grant_type": "password",
"redirect_uri": "https://localhost.com"
}'
Base Domain
In this example above, the base domain is https://id.eu.nextreason.com/
.
Endpoint
The endpoint to use for this is /pre-register
.
Parameters
Below are the required and optional parameters for the /pre-register
endpoint. Your specific parameters may vary depending on your configuration; if you're unclear on the parameters to use, please contact your Next Reason integration consultant.
Required Parameters
The following parameters must be included on every /pre-register
request.
Parameter | Description |
---|---|
Basic authorization header | Required as part of the header. Note that the basic authorization must only be used when it can be passed in a secure server-to-server manner. |
| This is the method that the user will use for sign in, this will either be email or SMS and is dependent on your client ID configuration. When |
| The ID used to authenticate the API call. This client ID is tied to your specific configurations and rules. Contact your integration consultant if you do not know your client ID. |
| In this case the |
| This is the object of user data (field name and value pair) that will create your user record. |
| Configures the URL the user is redirected after a successful activation of their account on the hosted screens.
|
Optional Parameters
The following parameters are optional.
Parameter | Description |
---|---|
| Set the language to be displayed in the hosted screen. Since the See Localization for the list of supported locales and the accepted values. |
| This parameter resends the invite link for both mobile and email, but will ignore whether the user already exists or not. |
Response
A successful response after user has been created via the /pre-register
endpoint will only include the uuid
of the user—for example
{ "uuid": "69ed0122-f2d9-4c6e-a636-3670cab4f15f " }
Updated about 2 months ago