# Header

The **Headers** section allows you to configure authorization or other required headers for your API requests. These headers typically contain key-value pairs that are required for the API server to validate the request or specify additional information like content type.

***

#### **Accessing the Headers Section**

1. **Navigate to the API Call Configuration:**

   * From the **Tools** tab in the **Agent Settings** section, select your API Call configuration.
   * Scroll down to the **Headers (Key-Value Pairs)** section.

   <figure><img src="https://4292326968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqsAGx1GJXq13bQhP2sY7%2Fuploads%2FAmYIvqj17wBMmi8UE59p%2Fimage.png?alt=media&#x26;token=f4738ae0-c73a-4803-b9ad-4a113cc35e67" alt="" width="370"><figcaption><p>API Call Configuration - Header</p></figcaption></figure>

***

#### **Adding Key-Value Pairs**

1. **Purpose:** Key-Value pairs in the headers are used to provide necessary information for making an API request, such as authentication tokens, API keys, or content types.

2. **How to Configure:**

   * **Key Field:** Enter the required header key. This could be a predefined key such as `"Authorization"`, `"Content-Type"`, or other custom headers specific to the API.
   * **Value Field:** Enter the corresponding value for the header key. This could be an API token, content type (e.g., `"application/json"`), or other necessary authentication details.

     <figure><img src="https://4292326968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqsAGx1GJXq13bQhP2sY7%2Fuploads%2FwV8G47Vbkdhd7XIJBUUl%2Fimage.png?alt=media&#x26;token=0b198da5-d37a-4998-bc85-e8f943bc9703" alt="" width="361"><figcaption><p>Add new Header </p></figcaption></figure>

3. **Example Configuration:**

   * **Key:** `"Authorization"`
   * **Value:** `"Bearer <your-auth-token>"`
   * **Key:** `"Content-Type"`
   * **Value:** `"application/json"`

   <figure><img src="https://4292326968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqsAGx1GJXq13bQhP2sY7%2Fuploads%2Fzv9LDKnHzbtvn7zrL4KD%2Fimage.png?alt=media&#x26;token=e488b697-41cc-48f2-9692-8572692daaea" alt="" width="356"><figcaption><p>Example Confuguration</p></figcaption></figure>

4. **Adding Multiple Key-Value Pairs:**

   * To add more headers, click the **"Add Key-Value"** button.
   * You can add multiple key-value pairs based on the requirements of the API.

   <figure><img src="https://4292326968-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqsAGx1GJXq13bQhP2sY7%2Fuploads%2FwqONrzjBIb4QDLBxkuWI%2Fimage.png?alt=media&#x26;token=10d83092-a15c-44f7-8ddc-80d63a21694a" alt="" width="360"><figcaption><p>Multiple Header</p></figcaption></figure>

5. **Deleting Key-Value Pairs:**
   * If a key-value pair is no longer needed, click the red **Delete** button (represented by a trash icon) next to the respective key-value pair.

***

#### **Headers Example:**

| Key           | Value                    |
| ------------- | ------------------------ |
| Authorization | Bearer `your-auth-token` |
| Content-Type  | application/json         |
