Route

This section covers the data structures and types used by the persisted database entity, as well as the JSON input and output models used by the Configuration Dashboard API.

RouteEntity (Database Record)

route Database Table

FieldTypeDescription
idStringPrimary key of the database table.
route_idStringId used by the Configuration Dashboard.
nameStringCustom name of the Route.
app_route_idStringAdd the route- prefix to the value before using it as the App-Route-Id HTTP header when sending requests to the Gateway. Alternatively, use the appRouteId field from the RouteResource returned by the Dashboard API, which already includes the required prefix.
tenant_refStringForeign key referencing the id primary key column of the tenant table.
saved_configRouteConfigThe saved_config field contains a JSON object of type RouteConfig. It represents a draft configuration, and is not the configuration currently used by the Gateway during HTTP request processing.
Changes made to saved_config do not affect the Gateway behavior until the configuration is activated.
The saved_config object can be updated and activated through the Configuration Dashboard API.
active_configRouteConfigThe active_config field contains a JSON object of type RouteConfig.
It represents the configuration currently used by the Gateway when processing HTTP requests.
The active_config cannot be updated directly. To apply a new configuration, you must first update saved_config and then activate it using the Configuration Dashboard API.
When the activation API is called, the content of saved_config is copied into active_config. From that moment on, the Gateway uses the new configuration for all incoming requests.
createdDateTimeUTC timestamp indicating when the Route was created.
updatedDateTimeUTC timestamp indicating the last time the Route was updated.

RouteDto (Dashboard API Input)

{
  "name": "name",
  "config": { } // See RouteConfig type
}
FieldTypeRequiredDescription
nameStringyesCustom name of the Route.
configRouteConfigyesThe Route configuration stored in the database saved_config field. See the RouteEntity type for details.

RouteResource (Dashboard API Output)

{
  "routeId": "92fddf7f-ab25-46ba-8d1f-794865ba1269",
  "name": "regular",
  "appRouteId": "route-a6b527b1-bc92-4cd2-87a6-fec28e5cce55",
  "savedConfig": { }, // See RouteConfig type
  "activeConfig": { }, // See RouteConfig type
  "created": "2026-08-02T13:25:02.884Z",
  "updated": "2026-08-25T07:27:58.744Z",
  "isActive": true
}
FieldTypeDescription
routeIdStringSee the RouteEntity type for details.
nameStringSee the RouteEntity type for details.
appRouteIdStringId that must be sent to the Gateway in the App-Route-Id HTTP header with every request, in order to identify and retrieve the corresponding Route object from the database.
savedConfigRouteConfigSee the RouteEntity type for details.
activeConfigRouteConfigSee the RouteEntity type for details.
createdDateTimeSee the RouteEntity type for details.
updatedDateTimeSee the RouteEntity type for details.
isActiveBooleanIndicates whether the saved_config matches the active_config, meaning that the Route configuration is currently active.

RouteConfig

Below are a few JSON examples for Routes with different type values:

  • destination field only applies to REGULAR type Routes.
  • auth field only applies to both REGULAR and CHECK_AUTHORIZATION type Routes.
  • customHeaders field only applies to REGULAR type Routes.
  • forwardUser field only applies to REGULAR type Routes.
{
  "type": "CREATE_USER",
  "isDynamic": false,
  "method": "POST",
  "path": "/user"
}
{
  "type": "CONFIRM_USER",
  "isDynamic": false,
  "method": "PATCH",
  "path": "/user/confirm"
}
{
  "type": "CHECK_AUTHORIZATION",
  "isDynamic": false,
  "method": "GET",
  "path": "/check-auth",
  "auth": {
      "isRequired": true,
      "authorities": ["USER", "ADMIN", "MAINTAINER"]
  }
}
{
  "type": "REGULAR",
  "isDynamic": true,
  "method": "GET",
  "path": "/product/{id}",
  "destination": "https://backend.example.com",
  "auth": {
      "isRequired": true,
      "authorities": ["USER", "ADMIN", "MAINTAINER"]
  },
  "customHeaders": {
      "Header-Name-1": "headerValue1",
      "Header-Name-2": "headerValue2",
      "Header-Name-3": "headerValue3"
  },
  "forwardUser": true
}
📘

One REGULAR Route for Each Backend Endpoint

For each endpoint that the Gateway must forward to your backend, you must create a corresponding REGULAR type Route.

For example, if your backend exposes GET/product and GET/order, you must create two REGULAR type Routes: one for GET/product and one for GET/order.

FieldTypeRequiredDescription
typeStringyesAllowed values: REGULAR, CREATE_USER, RESEND_USER_CONFIRMATION, CONFIRM_USER, UPDATE_USER_DATA, LOGIN, LOGIN_MFA, LOGOUT, REFRESH_TOKEN, REQUEST_USER_DELETE, DELETE_USER_MFA, CHECK_AUTHORIZATION, UPDATE_PASSWORD, REQUEST_PASSWORD_RESET, CHECK_PASSWORD_RESET, RESET_PASSWORD, REQUEST_USERNAME_UPDATE, UPDATE_USERNAME.
You can always create multiple Routes of the same type.
isDynamicBooleanautomatically generatedThe value is true when the Route path includes one or more dynamic path placeholders, for example
/path/product/{id}.
Such placeholders are supported only for REGULAR Routes.
methodStringyesThe method of the HTTP request handled by this Route.
Allowed values: GET, HEAD, POST, PUT, PATCH, DELETE.
pathStringyesThe full absolute path of the HTTP request handled by this Route.
It must not contain any query parameters.
It can include one or more dynamic path placeholders, for example
/path/product/{id}.
Such placeholders are supported only for REGULAR Routes.
destinationStringRequired if type is REGULARDefines the backend service origin URL to which the Gateway forwards HTTP requests matching this REGULAR Route. The value must use origin format, for example
https://domain.com or
https://domain.com:8080,
and must not include a path or additional URL components.
IP addresses are not allowed as the domain value.
authRouteAuthRequired if type is REGULAR or CHECK_AUTHORIZATIONContains the authorization configuration for this REGULAR Route. It defines whether authentication is required and which authorities are allowed to access this Route. When authentication is required, the Gateway verifies that the user is authenticated and has one of the configured authorities before forwarding the request to the destination backend service.
customHeadersMap<String, String>Optional if type is REGULARMap of string keys to string values in this REGULAR Route, representing additional custom HTTP headers, that should be forwarded by the Gateway to the destination backend service.
Examples of additional headers include API keys, Basic Authentication headers, or custom headers required by the destination backend service.
Each key represents a header name, and the corresponding value represents the header value. Header names must be unique, and each header can have only a single string value.
Each header value is encrypted using the Tenant encrypt_key.
forwardUserBooleanRequired if type is REGULARDefines whether the Gateway forwards the authenticated user's account details to the destination backend service, when processing requests for this REGULAR Route.

RouteAuth

This only applies to REGULAR and CHECK_AUTHORIZATION Routes.

FieldTypeRequiredDescription
isRequiredBooleanyesDefines whether authentication is required before the Gateway forwards the request to the destination backend service.
authoritiesString[]noDefines the list of authorities (security roles) allowed to access this Route.
A user account must have at least one of the configured authorities for the Gateway to forward the request to the destination backend service.
An example value for this field is
["USER", "ADMIN"].

Did this page help you?