# Set basic authentication

This is a pre-built action located under the **WebService List Element**.The functionality of this action in Avo Assure is to set up basic authentication credentials (username and password) for a web service request.

### Syntax

**Input Value:** `<Username>;<Password>(AES Encrypted)`

| Argument                              | Description                                                                                       |
| ------------------------------------- | ------------------------------------------------------------------------------------------------- |
| \<Username>(Required)                 | Provide the username string to be used for login or authentication.                               |
| \<Password>(AES Encrypted) (Required) | Provide the encrypted password string. The password must be encrypted using AES encryption method |

#### Output Value

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

**Example**

**Sets Basic Authentication Credentials for a Web Service Request**

The **Set basic authentication** action takes the value from the Input Value column **(e.g., testuser;RfIg+4VVGuYglmcS0tXMGA==)** where the password is AES encrypted. It sets the Basic Authentication header for the WebService request using the provided username and encrypted password.

<figure><img src="/files/DNvcM3JO6OpbmpPPFQdS" 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/web-service-list/set-basic-authentication.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.
