# Authentication

Securing your data and ensuring that access to the Extracta LABS API is protected are our top priorities. This section outlines the process of obtaining an API key, which is necessary for authenticating your API requests.

## Getting Started

To begin using the Extracta LABS API, you'll need to obtain an API key. This key is unique to your account and serves as the credential for accessing the API.

### Step 1: Create an Account

Visit [https://app.extracta.ai](https://app.extracta.ai/) to sign up for an Extracta account. Fill in the required details to register and submit your registration.

### Step 2: Generate an API Key

Once your account is set up, log in and navigate to the `/api` page on the dashboard. Here, you'll find the option to generate a new API key. Click on the "Generate a new API Key" button and follow the prompts. Your new API key will be displayed once generated. Make sure to copy and store it in a secure location.

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

## Using Your API Key

With your API key in hand, you're ready to start making authenticated requests to the Extracta API. To authenticate, include your API key in the header of each request as follows:

```
Authorization: Bearer <Your_API_Key_Here>
```

Replace `<Your_API_Key_Here>` with the API key you generated in the previous step.

## Keeping Your API Key Secure

* **Do not share your API key** publicly or with unauthorized individuals. Treat it as you would your password.
* **Regenerate your API key** if you suspect it has been compromised. You can do this from the same `/api` page where you generated it initially.

## Need Help?

If you encounter any issues while generating or using your API key, please contact support for assistance.

{% content-ref url="/pages/dpJM2AKMBKrLy4SW1M9M" %}
[Contact Us](/contact/contact-us.md)
{% endcontent-ref %}

<br>


---

# 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.extracta.ai/api-reference/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.
