Regular - Get User Profile

With this API, you send an access token to the Gateway, which derives the user account and forwards it to your backend service. Your backend can optionally filter or validate the user data before returning it to the client through the Gateway.

📘

Before reading this Get Profile API reference, we recommend reviewing the Regular - General Flow API reference first, as the Get Profile API is a specific use case of the general flow.

Prerequisites

  • Before calling this API, ensure you have created and activated a Tenant whose appId matches the App-Id header of this request. The correct appId value can be retrieved from the TenantResource returned by the Dashboard API.
  • You must also have created and activated a REGULAR type Route whose appRouteId matches the App-Route-Id header, and whose HTTP method and path match those of this request. The correct appRouteId value can be retrieved from the RouteResource returned by the Dashboard API.

Base URL

https://your-gateway-host

Required Headers

App-Id: app-xxxxxxxx
App-Key: key-xxxxxxxx
App-Route-Id: route-xxxxxxxx

Authorization: Bearer YOUR_ACCESS_TOKEN

Method and Path

Use the HTTP method and path specified in the activeConfig field of the Route.

Important Route Configuration

📘

Please see the Regular - General Flow API for more details.

  • RouteConfig.auth.isRequired = true

  • RouteConfig.forwardUser = true

Response

The Gateway forwards the user details from the backend service directly to the client.

📘

Your backend can optionally filter or validate the user data before returning it.

Request Flow


Did this page help you?