> For the complete documentation index, see [llms.txt](https://docs.takionapi.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.takionapi.tech/cognito/api.md).

# Bypass Solution

## **How the Solution Works**

To bypass Castle:

1. Send to our endpoint the website domain and mail
2. Parse the response and use it as `cognitoAsfData`

### **Required Parameters**:

* `website`: The website domain
* username: The username or mail you are going to use for authentiation

It's highly recommended to provide your session’s `User-Agent`, `Sec-Ch-Ua`, and `Accept-Language` headers for more accurate token generation.

### Example Response

```json
{
  "response": "...",  // Use this token for your next request
}
```

{% hint style="info" %}
In order to access any of our endpoint you'll need **a valid API Key,** either [join our discord](https://takionapi.tech/discord) for a trial or [puchase a plan](https://takionapi.tech/buy)
{% endhint %}

{% openapi src="/files/G5PVXL4MUny3GdHdJoYt" path="/generate" method="get" %}
[openapi.yaml](https://2720813823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn0x4RrnIfxXvmfh6rJHh%2Fuploads%2FRUForWGea7kcwnDAm82m%2Fopenapi.yaml?alt=media\&token=f1ebf064-db66-4a46-9cdf-0ffbb69345fc)
{% endopenapi %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.takionapi.tech/cognito/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
