# 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.


---

# 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.takionapi.tech/start.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.
