Get Response Header Data: RES_HEADER_DATA
The Get Response Header Data command retrieves specific header values from the response of a API request. This allows automation to extract and use key response metadata, such as content type, authentication tokens, or cache control information, in subsequent steps.
Example: You want to verify that an API response is returned as JSON by extracting and validating the Content-Type header.
Steps to Configure:
- Choose Get Response Header Data from the Action dropdown.
- Leave the Screen Name field blank (this command does not require a screen name).
- In the Element Key field, enter the variable name where the extracted header value will be stored (e.g., ResponseContentType).
- In the Parameters section, specify the name of the response header to retrieve (e.g., Content-Type).
- Click Save.
Note: While the steps for adding an action command are identical in both views, the display of the steps changes:


Expected Outcome on execution:
- The automation extracts the value of the Content-Type header from the API response and stores it in the ResponseContentType variable.
- This variable can be referenced in later steps using the syntax ${VariableName} (e.g., ${ResponseContentType}) for validation or conditional logic.
Notes:
- Ensure the API request has been executed before using this command to retrieve response headers.
- The retrieved header value can be used in assertions or subsequent API calls for dynamic processing.