Vectara Postman Collection
The Vectara Postman Collection provides a convenient way to explore and test the Vectara REST API endpoints directly in Postman. It includes pre-configured requests for common operations such as:
- Creating and managing corpora
- Indexing documents
- Querying data using Retrieval-Augmented Generation (RAG)
- Managing Vectara resources
You can fork the collection into your own Postman workspace, customize it, and start sending authenticated requests without writing code.
Prerequisites
The Vectara collection uses Postman environment variables for authentication and configuration. Ensure that you have your API key, customer ID, and corpus ID.
| Variable | Description |
|---|---|
VECTARA_API_KEY | Your API key with the required permissions |
VECTARA_CUSTOMER_ID | Your Vectara customer ID |
VECTARA_CORPUS_ID | The corpus identifier where your data is stored |
1. Fork the Vectara Postman Collection
- Open the Vectara Postman Collection in your browser.
- Sign in to your Postman account.
- Click Fork at the top of the page.
- Select a workspace and optionally add a label or description.
- Click Fork Collection.
The collection will now appear in your Postman app under Collections.
Forking enables you to customize requests without affecting the public collection.
2. Set up authentication
Vectara supports API Key authentication for most endpoints and OAuth 2.0 for secure or automated workflows. Choose the method that fits your use case.
Option A: API Key authentication
- In Postman, open your forked collection and select the Variables tab.
- Add a variable named
api_keyand set its value to your Vectara API key (from the Vectara Console → API Keys). - Ensure requests use Bearer Token authentication with the token value
{{api_key}}.
Option B: OAuth 2.0 authentication
- In the collection’s Authorization tab, select OAuth 2.0.
- Configure:
- Grant Type: Client Credentials
- Client ID and Client Secret from the Vectara Console
- Access Token URL:
https://api.vectara.io/oauth2/token - Required scopes (e.g.,
corpus:read,index:write)
- Click Get New Access Token and use it for your requests.
For details about how to obtain credentials, see Choose the Right Authorization Method.