# API

Mindplug follows a REST API architecture which can be universally used in any language for any application.

Using the raw API ensures the fastest updates for new and existing endpoints. All the endpoints are listed in this documentation and use axios for making the call requests to Mindplug servers.

The documentation architecture:

## Setup

[**API Setup - Base**](https://docs.mindplug.io/api/api-setup-text)

* Base instance for axios used to interact with text storage and web.

[**API Setup - PDFs**](https://docs.mindplug.io/api/api-setup-pdfs)

* Base instance for axios used to interact with PDF files

[**API Setup - Audio**](https://docs.mindplug.io/api/api-setup-audio)

* Base instance for axios used to interact with audio

## Storing Data

[**Store basic text**](https://docs.mindplug.io/api/storing-data)

* Store basic text content given a string value.

[**Store PDF files**](https://docs.mindplug.io/api/store-pdf)

* To store files, you need a form instance for axios to pass formData.

[**Store webpage**](https://docs.mindplug.io/api/store-web)

* Pass in a URL for mindplug to crawl and read.

## Query Data

[**Query - semantic search**](https://docs.mindplug.io/api/query)

* To semantic search on stored data. Seach by meaning of text.

[**Query by vector ids**](https://docs.mindplug.io/api/query-by-ids)

* Search specific vectors by their ids

[**Query by collection**](https://docs.mindplug.io/api/query-by-collection)

* Returns the recent 10 vectors from a given collection

## Delete Data

[**Delete by vector ids**](https://docs.mindplug.io/api/delete-by-ids)

* Delete specific data based on vector ids

[**Delete collection**](https://docs.mindplug.io/api/delete-collection)

* Delete an entire collection, including all stored vectors within.

[**Delete Project**](https://docs.mindplug.io/api/delete-project)

* Delete an entire project, including all collections and vectors within.

## List Data

[**List projects**](https://docs.mindplug.io/api/list-projects)

* List all the projects you have on Mindplug

[**List collections**](https://docs.mindplug.io/api/list-collections)

* List all the collections you have on Mindplug

## Smart

[**Web search**](https://docs.mindplug.io/api/search-web)

* Returns the top 3 google results from select resources

###
