Default strategy
By default, the gateway looks for the API key in theÂApi-Key request header.

API key in an arbitrary header
If youâd like to use a custom header for the access token (e.g.ÂX-My-Api-Token: <token>), configure the token extraction strategy as follows:
- Click Delete step in order to clear the step list.
-
EnterÂ
X-My-Api-Token as header name. - Click Save.
X-My-Api-Token: <token>Â header.
API key in âAuthorization: Bearerâ header
If youâd like to useÂAuthorization: Bearer <token>Â scheme, configure the token extraction strategy as follows:
- Click Delete step in order to clear the step list.
- Click Get request header value.
-
EnterÂ
Authorization as header name. - Click Split it by delimiter.
-
Enter â
â (space) as delimiter. - Click Take value by path or apply expression.
-
EnterÂ
input[1]Â as expression.
In the expression you can use the result of the previous step, itâs stored in a variable namedÂ
input.- Click Save.

Authorization: Bearer <token>Â header.
API key in JSON body
Letâs say the request body is a JSON object containing access token:- Click Delete step in order to clear the step list.
- Click Get request body.
- Click Decode it asâŚ.
-
ChooseÂ
JSON from the dropdown list. - Click Take value by path or apply expression.
-
EnterÂ
input.auth.token as expression. - Click Save.

API key in query string
In some scenarios itâs more convenient to pass API keys in a query string parameter. For example, you would like to pass API keys inÂapiKey query string parameters like /orders/154?apiKey=MmU2YzQ4ODktNzFjMi00OWM1LTlhNTgtZDJhZjZmN2M1ODY1
- Click Delete step in order to clear the step list.
- Click Get raw query string.
-
ChooseÂ
Query string from the dropdown list. - Click Take value by path or apply expression.
-
EnterÂ
input.apiKey as expression.

In the expression you can use the result of the previous step, itâs stored in a variable namedÂ
input.apiKey query string parameter.