> 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/pt/contexto/memory-stores/memory-stores-api.md).

# API da Base de Conhecimento

Interaja diretamente com as suas Bases de Conhecimento

A API REST do AirOps permite aos utilizadores ler e লিখեր nas suas Bases de Conhecimento conforme necessário.

## Usando a API REST

Pode chamar a API REST das Bases de Conhecimento diretamente a partir da interface do AirOps. Para começar, basta navegar até à Base de Conhecimento desejada e clicar no separador "Rest API", como mostrado abaixo:

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

## Chamadas de API suportadas

Atualmente, a API das Bases de Conhecimento do AirOps suporta as seguintes chamadas:

1. **Pesquisar** -- um endpoint apenas de leitura que realiza uma pesquisa semântica com filtragem na Base de Conhecimento. Consulte o nosso documento sobre [Metadados das Bases de Conhecimento](/docs/pt/contexto/memory-stores/memory-stores-metadata.md) para mais detalhes sobre a filtragem.
2. **Inserir** -- um endpoint de escrita para preencher a sua Base de Conhecimento com conteúdo adicional
3. **Atualizar** -- um endpoint de escrita que lhe permite editar a informação subjacente do seu conteúdo ligado
4. **Eliminar** -- um endpoint de escrita para remover conteúdo das suas Bases de Conhecimento

O separador "REST API" mostrado acima explica como executar cada uma destas chamadas, bem como os resultados esperados.

Se existirem funções adicionais que sejam críticas para o seu negócio, mas para as quais esteja atualmente a faltar uma chamada de API que o ajude a automatizar, adoraríamos receber o seu feedback!


---

# 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/pt/contexto/memory-stores/memory-stores-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.
