How to Capture Request Headers in an Instant Trigger Webhook?

Hello, Community!

I’m currently developing a custom application that utilizes an Instant Trigger module to process incoming webhook requests. My application needs to capture specific request headers, such as the Authorization header, from these incoming webhooks for authentication and processing purposes.

I’ve reviewed the available documentation and explored the module’s configuration options, but I haven’t found a clear method to access the headers of the incoming request directly within the Instant Trigger module.

Here’s a brief overview of what I’m trying to achieve:

  • Goal: Capture and process the Authorization header from incoming webhook requests in an Instant Trigger module.
  • Current Approach: I’m using the payload variable to access the body of incoming requests, but I need similar access to the request’s headers.

Does anyone have experience or insights on how to capture these request headers within an Instant Trigger module? Are there specific IML variables or a configuration approach that enables access to the headers of incoming requests?

Any guidance, examples, or references to relevant documentation would be greatly appreciated. I’m eager to implement this functionality correctly and would love to learn from the community’s expertise.

Thank you in advance for your help!

PS : Like Custom Webhook with Get response headers

To reference the body contents, we use "{{body}}". Have you tried "{{header}}" or "{{headers}}"?


Hello again, wonderful Community!

Firstly, I want to extend my deepest gratitude to the individual who suggested the solution for capturing headers in an Instant Trigger module. Implementing the "output": { "body": "{{body}}", "headers": "{{headers}}" } configuration worked perfectly, and I’m now able to access the headers of incoming webhook requests. This has been a significant step forward in my project, and I couldn’t have done it without your help. Thank you!

However, I’ve encountered another hurdle that I hope to get some guidance on. I’ve defined a parameter in my webhook configuration to capture an API key:

        "name": "apikey",
        "type": "text",
        "label": "API Key",
        "help": "API Key From Toporder Module",
        "required": true

My goal now is to verify that the API key provided in this parameter matches the API key sent in the headers.authorization of incoming webhook requests. I’ve attempted to use verification and condition checks to enforce this, but I’m struggling to get the condition recognized or acted upon correctly.

Could anyone provide insights or examples on how to set up a condition within’s framework that compares a parameter value against a specific header value from the webhook request? Any advice on using verification or conditionals effectively in this context would be immensely helpful.

Thank you in advance for your time and assistance. This community has been an incredible resource, and I’m thankful for the opportunity to learn and grow with your support.


Are you found a solution for compare a headers value with the apikey in trigger ?

I would like secure the access to webhook directly, and not to add a filter in scenario.