Vectara REST API
vectara · Company
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).
Authentication
Sample Requests
File Upload
Hover any highlighted part to learn what it does
curl -X POST "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/upload?c=1&d=true&o=1"
import requests
params = {
"c": "1",
"d": "true",
"o": "1"
}
response = requests.post(
"https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/upload",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/upload');
url.searchParams.set('c', '1');
url.searchParams.set('d', 'true');
url.searchParams.set('o', '1');
const response = await fetch(url, {
method: 'POST',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/upload")
q := baseURL.Query()
q.Set("c", "1")
q.Set("d", "true")
q.Set("o", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/upload")
uri.query = URI.encode_www_form({
"c" => "1",
"d" => "true",
"o" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/upload?" . http_build_query([
"c" => "1",
"d" => "true",
"o" => "1"
]);
$opts = ["http" => [
"method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Create Corpus
Hover any highlighted part to learn what it does
| customer-id | 1 |
curl -X POST "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/create-corpus" \ -H "customer-id: 1"
import requests
headers = {
"customer-id": "1"
}
response = requests.post(
"https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/create-corpus",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/create-corpus';
const response = await fetch(url, {
method: 'POST',
headers: {
'customer-id': '1'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/create-corpus"
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("customer-id", "1")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/create-corpus")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["customer-id"] = "1"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/create-corpus";
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"customer-id: 1"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Delete Corpus
Hover any highlighted part to learn what it does
| customer-id | 1 |
curl -X POST "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/delete-corpus" \ -H "customer-id: 1"
import requests
headers = {
"customer-id": "1"
}
response = requests.post(
"https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/delete-corpus",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/delete-corpus';
const response = await fetch(url, {
method: 'POST',
headers: {
'customer-id': '1'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/delete-corpus"
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("customer-id", "1")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/delete-corpus")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["customer-id"] = "1"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/vectara.io/1.0.0/v1/delete-corpus";
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"customer-id: 1"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Vectara REST API?
Vectara REST API is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Vectara REST API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide