# Interacting with our APIs

## API Key

To use our APIs, you’ll need an API key. You can request a trial key via Discord or purchase a plan.&#x20;

A typical API key looks like this:

```
TAKION_API_XXXXXXXX
```

***

## Endpoints

Each antibot service has its own subdomain (e.g., `datadome.takionapi.tech`), making it easier to organize interactions.&#x20;

Different antibots expect unique parameters and responses, so refer to the specific antibot’s documentation for detailed endpoint information.

### Authentication

To authenticate your requests, you must provide your API key. \
You can do this in one of two ways:

* **Header**: `x-api-key`
* **Query Parameter**: `api_key`

### Browser Details

Our APIs analyze the headers you send, such as:

* `User-Agent`
* `Sec-Ch-Ua`
* `Accept-Language`

{% hint style="success" %}
Although TakionAPI solutions aren’t browser-based, providing accurate browser details ensures more realistic interactions. If no details are provided, a random configuration is used. We recommend supplying browser headers for better precision.
{% endhint %}

### Plan Details and Status

To retrieve your API key's status, you can:

* Use our Discord Bot.
* Send a request to `/plan` on any antibot subdomain, which will return a JSON response with your plan details.

***

## Error Codes

* **400 - Invalid Input Parameters**: Review the data provided; there’s an issue with it.
* **401 - Invalid API Key**: The API key is invalid, expired, or the request limit has been exceeded.
* **500 - Internal Server Error**: Something unexpected occurred on our end. Contact us for support.
