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

# Authentication

#### **Obtaining an API Key**

If you require an API key for accessing the Ortege API, please join our community and reach out through the [Ortege Friends Telegram Group](https://t.me/ortege_friends). Our team is ready to assist you with your API access needs and provide any additional support you may require.

#### **Authentication**

To ensure secure access to the Ortege API, we utilize **JWT (JSON Web Token)** tokens for authentication. Each request to the API must include a valid JWT token in the authorization header.

**How It Works:**

1. **Generate JWT Token:** Obtain your JWT token from the [Ortege team](https://t.me/ortege_friends).&#x20;
2. **Include in Requests:** Add the token to the `Authorization` header of your API requests.

**Example:**

```http
Authorization: Bearer YOUR_JWT_TOKEN
```

#### **API Endpoints**

The Ortege API is built on the robust Cube framework, offering multiple interfaces to interact with our blockchain data:

* **REST API:** Accessible via `https://api.ortege.ai/cubejs-api/v1/load`
* **GraphQL API:** Accessible via `https://api.ortege.ai/cubejs-api/graphql`
* **WebSocket API:** Accessible via `ws://api.ortege.ai`


---

# 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.ortege.ai/en/ortege-products/api/authentication.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.
