Skip to content

Vectara REST API API

by vectara.io

Open documentation ↗

Overview

Vectara is a neural search platform, built for developers to get the most out of their data. You can sign up for an account at [https://vectara.com](https://vectara.com).

Vectara REST API is a development API from vectara.io. Requests are authenticated with an API key. It is served over plain HTTP. Its OpenAPI description documents 9 endpoints.

At a glance

Authentication
API key
HTTPS
No
CORS
Unknown
Category
Development
Base URL
https://api.vectara.io
Version
1.0.0
Endpoints
9
Spec updated
2023-03-08

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X POST "https://api.vectara.io/v1/create-corpus" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.vectara.io/v1/create-corpus", {
  method: "POST",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "POST",
    "https://api.vectara.io/v1/create-corpus",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/v1/create-corpusCreate Corpus
POST/v1/delete-corpusDelete Corpus
POST/v1/delete-docDelete
POST/v1/indexIndex
POST/v1/list-corporaList Corpora
POST/v1/queryQuery
POST/v1/reset-corpusReset Corpus
POST/v1/stream-queryStream Query
POST/v1/uploadFile Upload

Questions

Does the Vectara REST API API need an API key?

Yes. The Vectara REST API API uses API key authentication; the documentation explains how to get credentials.

Does the Vectara REST API API support HTTPS?

The Vectara REST API API is listed as HTTP only, so avoid sending secrets to it.

How many endpoints does the Vectara REST API API have?

Its OpenAPI description lists 9 endpoints in version 1.0.0. All of them are shown on this page.

What are alternatives to the Vectara REST API API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).