Skip to main content
Version: 2.0
Version: 2.0.0

Vectara REST API v2

Vectara provides an end-to-end platform for creating GenAI products using a simple to use API.

You can sign up for an account and then view several API Recipes with example queries and parameter values.

The Vectara API Playground lets you experiment with REST endpoints from your browser. Select an endpoint to view its definition, including the required or optional headers, body, responses, and sample commands. On the right side of each endpoint page, like Get Corpus, you manually enter your API Key or OAuth Bearer Token, customer_id, and then any required body parameters like the corpusID before sending the API request.

note

Vectara supports two primary methods of authentication: API keys and OAuth 2.0, which are applicable to all endpoints. Query API Keys are used for read-only querying operations, while Index API Keys provide read and write access. The OAuth 2.0 operations authenticate with a Bearer Token via the OAuth 2.0 client credentials grant. Review the OAuth 2.0 section about how to generate the token.

Authentication

OAuth2 access to Vectara

Security Scheme Type:oauth2
OAuth Flow (clientCredentials):

Token URL: https://auth.vectara.io/oauth2/token

Scopes: