# HTTP Basic Authentication

HTTP Basic Authentication is a type of authentication where the client sends an `Authorization` header with a Base64 encoded username and password.

For some services,  the username or password might be blank.

PixieBrix has a generic integration definition `@pixies/integrations/auth-basic` for calling APIs that require HTTP Basic Authentication.

<figure><img src="/files/8HDM26N7qhnZjECQadeD" alt="" width="559"><figcaption><p>Configuring HTTP Basic Authentication for an API in PixieBrix</p></figcaption></figure>

### Converting a cURL username command line option to PixieBrix

If you're coming from cURL, the username/password is what is provided to the `-u` or `--user` command line flag:

```
curl -u username:password
```


---

# 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.pixiebrix.com/integrations/http-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.
