KB Article #193740
Access Header and Query parameters in an integration linked to an API method
Problem
- One API method is defined without header or query string parameters
- An Integration is linked to this API Method
- How to access specific header or query string parameters value from the request in the integration?
Resolution
If headers or query string are not defined as parameters of the method, so they are not available directly as attributes under name_of_api_methodAPIServerRequest > headers or queryParams.
To access the value of some specific headers or query parameters, it's possible to:
- Create Map
- On the right panel, right click and create a Document, link it to the header or queryParams from the request.
- Name the Document headers or queryParams depending on the type of parameter that need to be retrieved.
- Right click on the Document > Add a variable named with the name of the parameter that need to be retrieved, add it inside the Document.
- A screenshot example to retrieve a query string parameter named "email":
