# Knowledge Base API

The AirOps REST API allows users to both read and write to their Knowledge Bases as needed.

## Using the REST API

You can call the Knowledge Bases REST API directly from the AirOps UI. To get started, simply navigate to the desired Knowledge Base and click on its "Rest API" tab as shown below:

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

## Supported API Calls

Currently, the AirOps Knowledge Bases API supports the following calls:

1. **Search** -- a read-only endpoint that performs a semantic search with filtering through the Knowledge Base. See our document on [Knowledge Bases Metadata](/context/memory-stores/memory-stores-metadata.md) for more details on filtering.
2. **Insert** -- a write endpoint to populate your Knowledge Base with additional content
3. **Update** -- a write endpoint that lets you edit the underlying information of your connected content
4. **Delete** -- a write endpoint to remove content from your Knowledge Bases

The "REST API" tab shown above walks through how to execute each of these calls, as well as the expected results.

If there are any additional functions that are critical to your business, but currently missing an API call to help you automate, we would love get your feedback!


---

# 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.airops.com/context/memory-stores/memory-stores-api.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.
