VectorMethods

Docs / API reference

Auth and API keys

Authenticate to the VideoVector REST API with API keys or JWT bearer tokens, manage API keys, and understand scope requirements.

api/middleware.pyapi/api_key_controllers.pyapi/routes.py

Search documentation

Search pages, API reference sections, and guide headings.

Summary

The public API accepts either API keys or JWT bearer tokens for most workflow endpoints. API key management endpoints require JWT bearer auth, and `/mcp/config` requires a verified JWT session.

Supported auth modes

Most workflow endpoints support either:

  • X-API-Key: sk_...
  • Authorization: Bearer <jwt>

Use API keys for server-to-server integrations. Use JWT bearer tokens for browser-backed or operator-driven workflows.

Scope model

The platform enforces four public scopes:

ScopeTypical capability
searchSearch, retrieval, and chat retrieval workflows
readRead workflow resources and inspect results
writeCreate or update prompts, runs, connectors, jobs, and webhooks
adminDelete higher-risk resources

The hierarchy is documented in the API key controller as admin > write > read > search.

Scope requirements by workflow

Endpoint familyRequirement
/indexes/*/search, /search/*, /chat/*search
Most GET workflow resourcesread
Most create or update workflow resourceswrite
Destructive deletesadmin
/api-keys/*JWT bearer only
/mcp/configverified JWT bearer only

Request headers

HeaderWhen to use
X-API-KeyPreferred for programmatic API clients
Authorization: Bearer ...JWT sessions and operator workflows
Idempotency-KeySafe retry for create, update, execute, cancel, and retry-style writes

Example: call a search-scoped endpoint

curl /api/v2/indexes/idx_archive/search \
  -H "X-API-Key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "reporter at station entrance",
    "top_k": 10
  }'

Example: create an API key

curl -X POST /api/v2/api-keys \
  -H "Authorization: Bearer <jwt>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Production search key",
    "scopes": ["read", "search"],
    "expires_in_days": 90
  }'

API key lifecycle endpoints

MethodPathNotes
POST/api/v2/api-keysCreate a key and return the full secret once
GET/api/v2/api-keysList masked keys
GET/api/v2/api-keys/{key_id}Retrieve one masked key
POST/api/v2/api-keys/{key_id}/rotateReturn a new full secret and revoke the old one
POST/api/v2/api-keys/{key_id}/revokeSoft-disable the key
DELETE/api/v2/api-keys/{key_id}Remove the key

Related documentation

API keys are the primary credential for public workflow access. This guide shows how to create them, scope them, and rotate them without breaking integrations.

Use this page to initialize the Python SDK for media ingestion, extraction, search, delivery, and automation flows, then configure credentials and runtime behavior as needed.

The VideoVector MCP docs show how AI clients can browse indexes, run prompts, search media evidence, inspect workflow resources, and validate available tools.