User Info

How to integrate the Next Identity Journeys userinfo workflow

Overview

Grabbing key details from a user's profile with Next Identity Journeys is an optional workflow in your integration with Next Identity.

In this use case, the user is already signed in and you have a valid access token for them.

Integration

The /userinfo endpoint is designed to provide you with a select set of key user details. Those fields can be scoped for the individual integration.

curl -X GET \
  https://id.eu.nextreason.com/userinfo?client_Id=CLIENT_ID \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer REDACTED' 


Sample result
{
    "sub": "9cde62ef-3d64-4aff-89f4-5362ec858cc3",
    "name": "John",
    "given_name": "Smith",
    "family_name": "John",
    "email": "[email protected]",
    "email_verified": true,
    "updated_at": "2020-12-14 21:22:11.304747 +0000",
    "locale": "en-US"
}

Base Domain

In this example above, the base domain is https://id.eu.nextreason.com/.

📘

About base domains

Your base domain will be customized for your integration and for enterprise customers will be customized for your site name or brand name. If you don't know your base domain, please contact your Next Reason integration consultant.

Required Parameters

The following parameters must be included on every request.

ParameterDescription
header authorizationA header for authorization including a bearer token (the access token retrieved from the /token call) valid for the user.
client_idA client_id code.