# Castle

## **What is Castle?**

Castle is an anti-bot service designed to prevent automated attacks such as account takeovers, fake account creation, and policy-violating behaviors. It monitors browser characteristics, user behavior, and request patterns to detect malicious activity.

## x-castle-request-token

When interacting with Castle-protected endpoints, you must include a valid `x-castle-request-token`. This token is generated using various browser-specific factors, including the `__cuid` cookie and other session details. Our API generates this token, making it easy to integrate with Castle-protected websites.

An example website using it is [DailyPay](http://dailypay.com).


---

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