# Set header

This is a pre-built Action located under the **WebService List Element**. The functionality of this Action in Avo Assure is to set a request header for the web service request. This ensures that necessary HTTP headers (such as content type, authorization, etc.) are included during the API call.

## **Syntax**

**Input Value**: `<Request_header>`

| Argument                                | Description                 |
| --------------------------------------- | --------------------------- |
| <p>\<Request\_header><br>(Required)</p> | Provide the request header. |

**Output Value**: N/A

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

### **Example: Setting a Request Header for an API Call**

In this example, we are explaining how to set a request header for an API call during API testing.

* **Action** Set Header
* **Input Value:** Authorization: Bearer HjvlM345ndr34ndng467ndvfdGbshebfgt6dbfjfbgfxkloo89
* The input value specifies the request header key and its corresponding value that should be applied to the API request. The header is used to pass authentication or additional request information during API execution.
* **Output Value:** N/A
* **Logical Explanation**: The **Set header** action reads the value from the **Input Value** column (**Authorization: Bearer HjvlM345ndr34ndng467ndvfdGbshebfgt6dbfjfbgfxkloo89**) and sets the specified request header for the API call. The configured header is included in the web service request during API execution.

<figure><img src="/files/238EPRbs97gF7MMeCq5T" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web-service-operations-1/web-service-list/set-header-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
