Some APIs return important information in their request or response headers instead of the response body. This information can include session details, authentication values, routing information, or other data that is required for future API calls.
With Access API Request and Response Headers, integrations can capture and reuse these values when needed, making API communication more reliable and reducing unnecessary authentication calls.
Why Is This Useful?
Many integrations authenticate once and then use the returned information for all subsequent requests.
Without access to request and response headers, workflows may need to create a new session every time they run. This can lead to extra authentication requests, increased API traffic, and, in some cases, session-related issues.
By making request and response headers available, integrations can reuse previously returned values and continue using the same authenticated session until it expires.
How It Works
When an authentication request is made, the API may return important values in the response headers.
These request and response details can be stored with the Credential and reused by any workflow that uses the same connection.
Instead of authenticating for every workflow run, you can use the stored values for future requests.
When the authentication session expires, a new authentication request is automatically performed, and the updated request and response details are stored for future use.
Before
A typical integration flow looked like this:
- Authenticate with the API.
- Receive session information.
- Make API requests.
- Log out.
- Repeat the same process during the next workflow run.
Every workflow execution started with a new authentication request, even when valid session information already existed.
After
With Access API Request and Response Headers:
- Authenticate once.
- Store the required request and response information in the Credential.
- Reuse the stored values across workflows.
- Refresh authentication only when the session expires.
This allows multiple workflows to use the same authenticated connection without repeatedly creating new sessions.
Benefits
Fewer Authentication Requests
Reuse existing authentication details instead of signing in for every workflow execution.
Shared Authentication Across Workflows
Multiple workflows using the same Credential can access the same stored authentication information.
More Reliable API Communication
Reuse the header values returned by the API when future requests depend on them.
Easier Integration Design
Authentication can be managed centrally, reducing the need to add login and logout steps throughout workflows.