polyvia npm package wraps the entire REST API in a fully-typed, ESM/CJS-compatible client.
Quick Start
POLYVIA_API_KEY in your environment and omit the argument:
REST API
Ingest
The SDK uploads file bytes directly to Polyvia’s storage backend (the API server is not in the upload path), so there is no practical file-size cap from the SDK side and large batches don’t fail on a request-body limit. Each file in a batch is uploaded and finalized independently — a failure on one file is captured inBatchIngestItem.error and does not affect
the others.
Query
Groups
Documents
Usage & Rate Limits
Error Handling
MCP & Agent Tools
MCP Server
Connect Polyvia to Claude, OpenAI, and other AI clients via MCP — including SDK helpers, programmatic agent tools, and Claude Desktop config.
Links
npm
npm install polyvia
GitHub
Source code and examples
