> ## Documentation Index
> Fetch the complete documentation index at: https://rilwanorganization.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Learn how to authenticate with the API

<img className="block dark:hidden" src="https://mintcdn.com/rilwanorganization/EjiIQ7gDFingChd6/images/abstract_signup.png?fit=max&auto=format&n=EjiIQ7gDFingChd6&q=85&s=5fd472f6b8bfabfebac6261c00b3128f" alt="AbstractAPI signup page" width="712" height="541" data-path="images/abstract_signup.png" />

## About Abstract's API keys

[AbstractAPI](https://www.abstractapi.com/) only allows one key per API. Each API has a unique key for authentication.

Proceed to the [signup page](https://app.abstractapi.com/users/signup) to create an account. You will be redirected to the dashboard where all API keys can be found.

## How to obtain an API key

<img className="block dark:hidden" src="https://mintcdn.com/rilwanorganization/EjiIQ7gDFingChd6/images/abstract_key.png?fit=max&auto=format&n=EjiIQ7gDFingChd6&q=85&s=d08b345aabb86b6a350725c6249f36d2" alt="AbstractAPI dashboard" width="1366" height="571" data-path="images/abstract_key.png" />

Locate an API key through the steps below:

1. Hover around the left corner of your dashboard
2. Select an API from the list
3. An API key for the selected API will be displayed on the new page.

For example: `Primary key: "6f2e9012d48f4e0bac70283244ade5e4"`

<Note>
  The above API Key is invalid.
</Note>

## How to authenticate with an API key

Each API class in `abstract-python` requires an `api_key` to send queries. The key must belong to
the API you intend to use. Below is a snippet on how to use an api-key:

```python theme={null}
from abstract_python import VatAPI

vat_api_key = "your_unique_vat_api_key"

vatapi = VatAPI(vat_api_key)
```

You can begin to call the methods available for the authenticated class.
