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