---
title: Basic Auth authentication type
slug: basic-auth-authentication-type
image: https://make-cxp-documentation.ams3.cdn.digitaloceanspaces.com/apps-center-icons/PREVIEW_DEFAULT.png
docTags: 
createdAt: 2025-11-07T14:13:18.224Z
---

Basic Auth authentication type is used when the service provider requires a username and a password.&#x20;

### Create a keychain for the Basic Auth authentication type

| **Field**    | **Value**                                                                                                                                                                                            |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Username** | Enter the identifier, such as a user or client ID, email address, or another value. Refer to the service's API documentation to determine what's used as a username for that particular integration. |
| **Password** | Enter the secret value, such as API key, access token, or account password. Refer to the service's API documentation to determine what's used as a password for that particular integration.         |

You can edit these credentials at any moment in the **Keys** section. For that:

- Click **Keys** (or **three dots > Keys**) in the left sidebar.&#x20;
- Click **three dots > Edit** next to the required Key.&#x20;

![](https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/d-AC8dQu5I6Coz0L4RMgv-20251126-162507.png)

You will see the **Edit** **key** window. Add new credentials and click **Save**. All the modules that use this keychain will be automatically adjusted.

::::::ExpandableHeading
## HTTP request example with<font color="#0C121D">  **Basic Auth** authentication</font>

This example shows how to configure the **HTTP > Make a request** module for an HTTP `GET` request to OnePageCRM to retrieve contacts.

:::hint{type="success"}
To make an HTTP request, you need to know the required authentication details, scopes, endpoints, and parameters for each request. Refer to the [OnePageCRM API documentation](https://developer.onepagecrm.com/api/#/Contacts) for these details.
:::

:::::WorkflowBlock
:::WorkflowBlockItem
In the **Authentication type** field, select **Basic Auth**.
:::

::::WorkflowBlockItem
Click **Credentials** (or **Add&#x20;**&#x6E;ext t&#x6F;**&#x20;Choose a key**) to add your Basic Auth credentials:

- In the **Username&#x20;**&#x66;ield, enter the identifier. According to OnePageCRM API Documentation, it's a `user_id` you can obtain in your OnePageCRM account.&#x20;
- In the **Password** field, enter the secret value. According to OnePageCRM API Documentation, it's an `api_key` you can obtain in your OnePageCRM account.&#x20;

:::hint{type="info"}
In the HTTP request, Make sends the **Username** and **Password** in this format: `base64(username:password)`
:::

- Click **Create**.

You can also click **Choose a key&#x20;**&#x74;o use an existing keychain from the drop-down list.&#x20;
::::

:::WorkflowBlockItem
In the **URL** field, add the required API call. To get the contacts, this example will use this URL: `https://app.onepagecrm.com/api/v3/contacts`
:::

:::WorkflowBlockItem
Select the **GET** method required for this API call.&#x20;

![](https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/ZTX6-x_kuJMI6cs25OYsc-20251107-162930.png)
:::

:::WorkflowBlockItem
In the **Headers** section, add `Accept` for the **Name** field, and `application/json` for the **Value** field.

::Image[]{src="https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/l7J9U8Y5gNQIqYNox7Yc--20251107-164217.png" size="40" width="578" height="506" position="center" showCaption="false"}
:::

::::WorkflowBlockItem
In the **Query parameters** section, you can specify the contacts you want to get. For example, if you want to retrieve all the existing information available for the contact, you can set:&#x20;

- **Name**: fields; **Value**: contacts (al)

:::hint{type="info"}
You can find the mandatory and possible query parameters in the service's API documentation (like for OnePageCRM [here](https://developer.onepagecrm.com/api/#/Contacts)).&#x20;
:::

::Image[]{src="https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/Qv0L9Od8XMlt6JoIzl6ea-20251107-164327.png" size="40" width="578" height="1044" position="center" showCaption="false"}
::::

:::WorkflowBlockItem
Since it's a **GET** request, you can leave the **Body content** section empty.&#x20;
:::

:::WorkflowBlockItem
Click **Save&#x20;**&#x61;nd run the module.
:::
:::::

You'll see the HTTP response in the output bundle:

::Image[]{src="https://api.archbee.com/api/optimize/oAyFj2GHlBeBVWF5OAir2/jfAnmcroRTQ19dA2NBpbc-20251107-164357.png" size="40" width="574" height="1270" position="center" showCaption="false"}
::::::

