Skip to main content
Version: 2.0


While gRPC provides low latency and excellent scalability, REST APIs provide a traditional integration path for web-based applications. With the introduction of Vectara's REST API 2.0, developers can now leverage a more intuitive and user-friendly API design that follows RESTful principles and simplifies the getting started experience.


Review the REST API 1.0 to 2.0 migration guide which highlights important differences between the Vectara REST API v1 and REST API v2.

API formatting guidelines

You can find all of our APIs at<api-endpoint> The API endpoints are outlined in the various subsections of this API Reference section and are designed to be intuitive and follow a standard RESTful structure.

  • The current version is v2.
  • api-endpoint follows a hierarchical structure, using lowercase and hyphens. For example, /corpora/{corpus_key}/documents.

API authentication

All Vectara APIs are authenticated. Indexing and Search APIs can be authenticated via API Keys. The Personal API Key enables most Admin actions for creating and deleting corpora, but for deleting accounts and accessing billing data, you need to use OAuth 2.0.

API Reference and OpenAPI specifications

You can find up-to-date OpenAPI specifications at These specifications provide a comprehensive overview of the available endpoints, request/response formats, and authentication requirements.

You can use these with tools of your choosing like Insomnia or Postman.

  1. Download the OpenAPI YAML file.
  2. Import the file into Insomonia or Postman.
  3. Start making API calls directly from the tool.

Want to try the REST APIs live in your browser? Head over to our our API Reference and make real-time API calls from your browser.

List of Vectara REST 2.0 endpoints

Vectara provides the following REST 2.0 endpoints:


The following endpoints help you with queries:

  • Query API: Perform searches across one or more corpora using advanced filtering, pagination, and summarization options.
  • Simple Corpus Query API: Execute lightweight searches on a single corpus.
  • Advanced Corpus Query API: Perform advanced queries on a specific corpus with additional filtering and customization options.


The following endpoints enable you to programmatically manipulate corpora and perform many operations such as viewing corpus consumption, size, associated API keys, and more:

Index and upload documents

The following endpoints help you index, upload files, and manage documents:


The following endpoints provide a streamlined solution for integrating chatbot functionalities into domain-specific applications and websites using Retrieval Augmented Generation (RAG):

Encoders, rerankers, and large language models (LLMs)

The following endpoints help you manage encoders, rerankers, and LLMs:


The following endpoints help you manage background jobs:

  • Get Job API: Retrieve details about a specific background job.
  • List Jobs API: Get a list of all background jobs for the account.


The following endpoints help you manage users on your account:

API keys

The following endpoints help you manage the lifecycle and security of API keys:

Application Clients

The following endpoints help you manage OAuth 2.0 application clients on your account:


Not all REST API endpoints have long-form documentation in this API Reference. For example, information about Get Usage Metrics is in the API Reference.