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

# Autenticación

Minara proporciona dos métodos para autenticar solicitudes de API.

### Clave de API (Suscripción)

El método estándar para **Pro** y **Partner** usuarios del plan. Incluye tu clave de API en el `Autorización` encabezado de cada solicitud.

**Formato:**

```
Authorization: Bearer <YOUR_API_KEY>
```

**Ejemplo:**

```bash
curl -H "Authorization: Bearer sk-minara-xxxxxxxx" https://api.minara.ai/v1/developer/chat
```

> **Seguridad:** Trata tus claves de API como contraseñas. Nunca las expongas en código del lado del cliente ni en repositorios públicos.

👉 **Más información:** [Broken mention](broken://pages/fcebd9e4daa215d3d5ff9735a36678ac8410889c)

### Pago por uso (x402)

Para acceso basado en uso sin suscripción, admitimos el [**protocolo x402**](https://www.x402.org/). Paga las llamadas a la API directamente usando stablecoins como $USDC (no se requiere suscripción).

**URL de la API x402**:[https://x402.minara.ai](https://x402.minara.ai/)

**Explora nuestros endpoints x402:** [Minara en x402scan](https://www.x402scan.com/server/66307a3c-aeb9-4508-9531-71eed69bc9b5)

👉 **Más información:** [Broken mention](broken://pages/8bfd09efc9446889cb93cd3c09cda8d7d55625bb)


---

# 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://minara.ai/docs/minara-handbook/es/operar/agent-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.
