The Request Callout plugin allows you to insert arbitrary API calls before proxying a request to the upstream service.
This plugin is composed of callout objects, where each object specifies the API callout declaratively, with custom query parameters, headers, and request body.
API callout responses are stored in the Kong Gateway shared context
under a kong.ctx.shared.callouts.CALLOUT_NAME. Responses can be cached with a TTL.
Content modifications in both callout and upstream bodies assume a JSON content type.
When
tls_certificate_verifyis enabled in Kong Gateway, certificate verification for this plugin is enforced at runtime, not at configuration time. Since theurlfield can be set dynamically v3.13+, the plugin cannot validate whetherssl_verify=falseis appropriate until the request is processed. If the URL resolves to an HTTPS endpoint withssl_verify=false, the request will be blocked. Conversely, if the URL resolves to an HTTP endpoint, the configuration is valid and the request proceeds.