Vectara · Example Payload

Vectara Query Corpus Example

Artificial IntelligenceAgentsCorporaEmbeddingsEnterprise SearchGenerative AIGrounded GenerationHallucination DetectionLLMMCPRAGRetrievalSearchSemantic SearchVector Search

Vectara Query Corpus Example is an example object payload from Vectara, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.vectara.io/v2/corpora/product-docs/query",
    "headers": {
      "x-api-key": "{VECTARA_API_KEY}",
      "Content-Type": "application/json"
    },
    "body": {
      "query": "How do I rotate API keys?",
      "search": {
        "limit": 5,
        "lexical_interpolation": 0.05,
        "reranker": { "type": "customer_reranker" }
      },
      "generation": {
        "max_used_search_results": 5,
        "response_language": "eng",
        "enable_factual_consistency_score": true,
        "citations": { "style": "markdown" }
      }
    }
  },
  "response": {
    "status": 200,
    "body": {
      "summary": "To rotate an API key, open the Vectara console, navigate to **Authentication > API Keys**, then click **Rotate** on the key you want to replace [1].",
      "factual_consistency_score": 0.94,
      "search_results": [
        {
          "text": "API keys can be rotated from the Authentication settings in the Vectara console...",
          "score": 0.832,
          "document_id": "auth-keys-guide",
          "document_metadata": { "section": "Authentication", "version": "v2" }
        }
      ]
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/vectara-query-corpus-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.