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
| Field | Type | Description |
|---|---|---|
| id | String | Primary key of the database table. |
| route_id | String | Id used by the Configuration Dashboard. |
| name | String | Custom name of the Route. |
| app_route_id | String | Add 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_ref | String | Foreign key referencing the id primary key column of the tenant table. |
| saved_config | RouteConfig | The 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_config | RouteConfig | The 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. |
| created | DateTime | UTC timestamp indicating when the Route was created. |
| updated | DateTime | UTC timestamp indicating the last time the Route was updated. |
RouteDto (Dashboard API Input)
{
"name": "name",
"config": { } // See RouteConfig type
}| Field | Type | Required | Description |
|---|---|---|---|
| name | String | yes | Custom name of the Route. |
| config | RouteConfig | yes | The 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
}| Field | Type | Description |
|---|---|---|
| routeId | String | See the RouteEntity type for details. |
| name | String | See the RouteEntity type for details. |
| appRouteId | String | Id 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. |
| savedConfig | RouteConfig | See the RouteEntity type for details. |
| activeConfig | RouteConfig | See the RouteEntity type for details. |
| created | DateTime | See the RouteEntity type for details. |
| updated | DateTime | See the RouteEntity type for details. |
| isActive | Boolean | Indicates 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:
destinationfield only applies toREGULARtype Routes.authfield only applies to bothREGULARandCHECK_AUTHORIZATIONtype Routes.customHeadersfield only applies toREGULARtype Routes.forwardUserfield only applies toREGULARtype 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
}
OneREGULARRoute for Each Backend EndpointFor each endpoint that the Gateway must forward to your backend, you must create a corresponding
REGULARtype Route.For example, if your backend exposes
GET/productandGET/order, you must create twoREGULARtype Routes: one forGET/productand one forGET/order.
| Field | Type | Required | Description |
|---|---|---|---|
| type | String | yes | Allowed 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. |
| isDynamic | Boolean | automatically generated | The 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. |
| method | String | yes | The method of the HTTP request handled by this Route. Allowed values: GET, HEAD, POST, PUT, PATCH, DELETE. |
| path | String | yes | The 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. |
| destination | String | Required if type is REGULAR | Defines the backend service origin URL to which the Gateway forwards HTTP requests matching this REGULAR Route. The value must use origin format, for examplehttps://domain.com orhttps://domain.com:8080,and must not include a path or additional URL components. IP addresses are not allowed as the domain value. |
| auth | RouteAuth | Required if type is REGULAR or CHECK_AUTHORIZATION | Contains 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. |
| customHeaders | Map<String, String> | Optional if type is REGULAR | Map 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. |
| forwardUser | Boolean | Required if type is REGULAR | Defines 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.
| Field | Type | Required | Description |
|---|---|---|---|
| isRequired | Boolean | yes | Defines whether authentication is required before the Gateway forwards the request to the destination backend service. |
| authorities | String[] | no | Defines 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"]. |
Updated about 1 month ago
Did this page help you?