Request Callout

Enterprise only

Dynamically change the request URL via dynamic URL expressionv3.12+

Configure the plugin to send a request to a different URL based on a header value.

In this example, we’re expecting the client to provide a x-custom-url header with a value to append to the specified URL. This can be accomplished with the use of a dynamic string that reads the request header and sets the URL.

If the dynamic URL string evaluates to an invalid URL, a 500 Internal Server Error response will be returned, along with an error log message.

Environment variables

  • API_URL: The API endpoint to use to request a token.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!