# Basic To Bearer

## Overview

Basic To Bearer is an authorization flow where Basic credentials are traded for an access token. In this flow, the Aisera platform makes an API request using the Authorization header containing the username and password. This request will return an Access Token that can be used to access your third-party application.

## Fields

The **BasicToBearer** authentication type includes the following fields:

<table><thead><tr><th width="210.79998779296875">Field</th><th>Description</th></tr></thead><tbody><tr><td>Username </td><td>The username of the account being used to authenticate with the third-party application.</td></tr><tr><td>Password </td><td>The password of the account being used to authenticate with the third-party application.</td></tr><tr><td>Access Token URL</td><td>The URL where the Aisera platform will exchange the basic credentials for an access token.</td></tr><tr><td>Access Token Extraction Key</td><td>This defines which key will contain the <code>access_token</code> in the returned JSON object. Defaults to <code>access_token</code>.</td></tr><tr><td>Expires In Extraction Key</td><td>This defines which key will contain the  <code>expires_in</code> value for the access token in the returned JSON object. Defaults to <code>expires_in</code>.</td></tr><tr><td>HTTP Operation </td><td>The HTTP request method to be used for the authorization request. Defaults to <code>POST</code>.</td></tr><tr><td>Headers</td><td>Custom headers in JSON format: <code>{"apiKey": "api_key_value"}</code></td></tr><tr><td>Use Raw Token</td><td>Enabling this removes the <code>Bearer</code> prefix from the Authorization header.</td></tr></tbody></table>

<div align="left"><figure><img src="/files/gx3ZPLtGHwpoWY371L79" alt="" width="492"><figcaption></figcaption></figure></div>


---

# 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.aisera.com/aisera-platform/adding-data-to-your-tenant/integrations-and-data-sources/supported-auth-types-for-custom-integrations/basic-to-bearer.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.
