This endpoint will create a new profile for the end-user. Depending on the authentication type, the PIN will be sent via email or SMS message after the correct registration. The new password is validated against a repository of known database breaches for additional protection. Both authorization_code and uuid are optional in the 200 status code response.

Register users by email address

Here's a sample API call on the /register endpoint to register a user by email address:

curl --location --request POST 'https://id.eu.nextreason.com/idp/v1/account/register' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "auth_type": "email",
    "client_id": "c8462jyq9dnupu2q4j7sfjzvn6c87j92",
    "grant_type": "password",
    "profile_fields": {
        "emailAddress": "[email protected]",
        "firstName": "John",
        "lastName": "Smith",
        "newPassword": "[email protected]%s^GB"
    },
    "redirect_uri": "https://localhost.com",
    "locale": "en-US"
}'

Register user by mobile phone number

Here's a sample API call on the /register endpoint to register a user by mobile phone number:

curl --location --request POST 'https://id.eu.nextreason.com/v1/idp/account/register' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "auth_type": "sms",
    "client_id": "c8462jyq9dnupu2q4j7sfjzvn6c87j92",
    "grant_type": "password",
    "profile_fields": {
        "mobilePrimary": "+15417543010",
        "firstName": "John",
        "lastName": "Smith",
        "newPassword": "[email protected]%s^GB"
    },
    "redirect_uri": "https://localhost.com",
    "locale": "en-US",
}'
Language
URL
Click Try It! to start a request and see the response here!