For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
  • Introduction
    • Overview
    • Retired adapters
      • Overview
      • SSL/TLS
      • Throttling
      • Headers
      • Add dynamic headers
      • Add query parameters
      • Update adapter configuration
LogoLogo
Open sourceSupportFAQsDocs Home
On this page
  • Using iapMetadata (no code change required)
  • Using adapter.js (code change required)
  • Static headers
Configure

Add dynamic headers

Was this page helpful?
Previous

Add query parameters

Next
Built with

A header is dynamic when its value is not known until the call is made. Static header configuration in action.json or the service instance configuration cannot accommodate this — the header value must be supplied at call time.

Using iapMetadata (no code change required)

If the adapter method exposes an iapMetadata parameter, pass the headers inside an addlHeaders object on that parameter. You can construct the iapMetadata object usingItential Platform workflow capabilities such as query and merge.

Structure:

1{
2 "addlHeaders": {
3 "<header1_name>": "<value1>",
4 "<header2_name>": "<value2>"
5 }
6}

Example:

1{
2 "addlHeaders": {
3 "x_custom_header": "63121931219fdd",
4 "Session-id": "AB9637462349"
5 }
6}

If the adapter method does not have an iapMetadata parameter, you can request that the Adapter Team add it. Note that adding iapMetadata requires creating new methods — Itential does not modify existing method signatures to avoid breaking changes.

Using adapter.js (code change required)

If the adapter does not support iapMetadata, you can expose the dynamic header value as a parameter in the adapter method and set it in addlHeaders on the reqObj. This approach also requires updating pronghorn.json to match the new method signature.

See Call properties authentication for an example of this pattern applied to authentication, which follows the same approach.

Static headers

If the header value does not change between calls, use the static header options instead. See Headers overview for guidance on when to use action.json versus the service instance configuration.