> For the complete documentation index, see [llms.txt](https://docs.disasm.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.disasm.dev/getting-started/authentication.md).

# Authentication

Every request to the API must include your API key in the `x-api-key` header. Requests without a valid key are rejected.

## Get a key

Create and manage API keys in the [dashboard](https://dashboard.disasm.dev). One key works across every service on your plan.

## Base URLs

Each service has its own host:

| Service   | Base URL                       |
| --------- | ------------------------------ |
| DataDome  | `https://dd.antibotapi.com`    |
| Incapsula | `https://incap.antibotapi.com` |

## Making a request

Send the key as a header on every call:

```bash
curl -X POST https://dd.antibotapi.com/interstitial \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "device_check_link": "...", "device_check_page": "..." }'
```

The same header applies to every endpoint - see the [DataDome](/datadome/api-reference.md) and [Incapsula](/incapsula/api-reference.md) references.

## Responses

All endpoints return JSON. A successful call returns the solve data (and `success: true` where applicable); a failure returns `success: false` with an `error` message:

```json
{ "success": false, "error": "Error message explaining what went wrong" }
```

{% hint style="info" %}
Keep your API key server-side and treat it like a password - anyone with it can spend your balance.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.disasm.dev/getting-started/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.
