> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/es/contexto/knowledge-bases/knowledge-base-api.md).

# API de base de conocimiento

Interactúa directamente con tus bases de conocimiento

La API REST de AirOps permite a los usuarios leer y escribir en sus bases de conocimientos según sea necesario.

## Uso de la API REST

Puedes llamar directamente a la API REST de bases de conocimientos desde la interfaz de AirOps. Para empezar, solo tienes que ir a la base de conocimientos que quieras y hacer clic en la pestaña «API REST», como se muestra a continuación:

{% @arcade/embed url="<https://app.arcade.software/share/1qOMDldFNqFWJ15cm6Wb>" flowId="1qOMDldFNqFWJ15cm6Wb" %}

## Llamadas a la API compatibles

Actualmente, la API de bases de conocimientos de AirOps admite las siguientes llamadas:

1. **Buscar** -- un endpoint de solo lectura que realiza una búsqueda semántica con filtros en la base de conocimientos. Consulta nuestro documento sobre [Metadatos de bases de conocimientos](https://docs.airops.com/docs/es/contexto/knowledge-bases/knowledge-base-metadata.md) para obtener más información sobre los filtros.
2. **Insertar** -- un endpoint de escritura para añadir contenido a tu base de conocimientos
3. **Actualizar** -- un endpoint de escritura que te permite editar la información subyacente de tu contenido conectado
4. **Eliminar** -- un endpoint de escritura para eliminar contenido de tus bases de conocimientos

La pestaña «API REST» que se muestra arriba explica cómo ejecutar cada una de estas llamadas y cuáles son los resultados esperados.

Si hay otras funciones esenciales para tu negocio para las que aún no existe una llamada a la API que te ayude a automatizarlas, ¡nos encantaría conocer tu opinión.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/es/contexto/knowledge-bases/knowledge-base-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
