# Authorization & API keys

**There are four types of Authorization on Databar.ai. Click on one of the links below to learn about how it works:**&#x20;

* [No Authorization required](#no-authorization-required-no-auth)
* [Authorization required](#undefined) & [how to add your own API key](#if-the-api-is-part-of-the-api-network-you-will-see-a-screen-that-looks-like-the-following-image-belo)
* [Authorization via Databar.ai](#authorization-via-databar.ai)
* [OAuth](#oauth) (Connectors like Hubspot and others)

{% hint style="info" %}
API keys that you add to Databar.ai are completely confidential and never accessed or used by our team. **To delete** **your API keys**, please visit the **My Connections** page.
{% endhint %}

## No Authorization Required (No Auth)

No auth APIs do not require authorization or API keys. Such APIs will display a "No API key required" badge in the authorization section.

Requests to No Auth APIs will consume **0 Credits** and **1 Action**

## Authorization (API key) Required

To use API keys with authorization, you must obtain an API key from the provider's website.

<figure><img src="/files/IB1foEFhGSdwyJELBF2N" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you don't have an API key, we have many alternatives on Databar.ai that allow you to get similar datasets either without authorization or via the Databar.ai API key.
{% endhint %}

Here's how you can add API keys to Databar.ai:

![Adding API keys to Databar.ai](/files/J9cqfsvQ01rluH2nIUgt)

Once you add an API key to a dataset, it will be available across all endpoints from the same API.

#### **If the API is part of the API Network, you will see a screen that looks like the following image below. To add your key, click on the key icon & click Authorize**

![](/files/OcT8k5wG7rUpvsqqEATS)

## Authorization via Databar.ai (API Network Connectors)

![Authorization via Databar.ai](/files/keQi8S3OdgyKDnmhCxmn)

We've partnered with 80+ data providers so you can use third-party APIs with our API key. These are APIs that normally require authorization via an API key, but are made accessible on our platform through Databar.ai's API Network.

Several APIs that include authorization via Databar.ai are only available under paid plans. Credits are also calculated differently for several endpoints. Please view the [Billing & pricing section](/using-databar/databar-basics/how-credits-and-actions-work.md) for more information.

Nothing needs to be done for such connectors - you can just click run! If you want to add your own API key to data sources which are part of our API Network, please view [this section](#if-the-api-is-part-of-the-api-network-you-will-see-a-screen-that-looks-like-the-following-image-belo).

## OAuth

Many data sources use OAuth to secure your data and make it only available via direct logins. OAuth works similarly to API keys; however, to add an OAuth key you'll need to authorize it on the provider's site. For such connectors, simply click on the **Authorize on ...** button and a window will open for authorization. Follow the steps & you will see your credentials connected.&#x20;

Currently we only support adding 1 OAuth account per API. Requests to OAuth APIs will consume **0 Credits** and **1 Action**


---

# 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.databar.ai/using-databar/databar-basics/authorization-and-api-keys.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.
