# Get header

This is a pre-built action located under the **WebService List Element**. The functionality of this action in Avo Assure is to fetch the response header after executing a webservice request and save the result in the dynamic variable.

### **Syntax**

**Input Value:** `<Header Key>`

{% hint style="warning" %}
***Note:***

* *If no value is entered in the input column, the entire response header is saved in the output variable.*
* *If a specific header key is provided, only the value of that key is retrieved.*
  {% endhint %}

| Argument                 | Description                                         |
| ------------------------ | --------------------------------------------------- |
| \<Header Key> (Required) | Enter the specific key name of the response header. |

**Output Value**

| Argument                       | Description                                                                |
| ------------------------------ | -------------------------------------------------------------------------- |
| \<Dynamic Variable> (Required) | This dynamic variable it holds the header or value.                        |
| \<Dynamic Variable> (Optional) | This dynamic variable holds the execution status as **True** or **False.** |

**Example**

**Retrieves a Specific Response Header from a Web Service**

The **Get header** action takes the value from the Input Value column (e.g., Content-Type) and fetches the corresponding header from the response of the executed WebService request. The retrieved value is stored in the **{HeaderValue}** variable as **application/json.**

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2Fp3V8fNCcbz3x2cVoQOJf%2Fimage.png?alt=media&#x26;token=15365b6e-d0ed-4c6c-8a4e-bae50b31d7d1" alt=""><figcaption></figcaption></figure>
