V

Vectara REST API v2

REST discovered

Details
URL
https://api.vectara.io/v2
Spec
https://docs.vectara.com/vectara-oas-v2.yaml
Docs
https://docs.vectara.com/docs/rest-api
Authentication
Vectara API key api_key discovered Get key ↗
x-api-key: <credential>

In the Vectara Console, create an API key under API Keys. Choose the least-privileged key type for your use case: Personal (zut_), QueryService (zqt_), or IndexService (zwt_). The docs recommend creating a new corpus-scoped key when you create a new corpus. See API key management and Choose authentication method.

Vectara OAuth application client oauth2_cc discovered Set up OAuth ↗
Authorization: Bearer <credential>

In the Vectara Console, create an application client for OAuth 2.0 client-credentials flow and store its client_id and client_secret securely. Exchange them for a JWT access token at https://auth.vectara.io/oauth2/token, then send that token as Authorization: Bearer <token>. Tokens expire after about 30 minutes. See Use OAuth 2.0.