@vantageconnections/sdk
v0.14.0
Published
TypeScript SDK for the VantageConnections platform.
Readme
@vantageconnections/sdk
TypeScript client for the VantageConnections platform. Use it to provision and manage client websites from any Node script.
import { VantageClient } from "@vantageconnections/sdk";
const vc = new VantageClient({ token: process.env.VANTAGE_TOKEN! });
const { websites } = await vc.websites.list();
const site = await vc.websites.create({
name: "Joe's Plumbing",
slug: "joes-plumbing",
features: { openrouter: false, resend: false, bookings: false, seo: false },
});
await vc.seo.setTier(site.websiteId, "growth");Install
npm install @vantageconnections/sdkAuth
Create a token in the portal at Settings → API keys. Tokens look like
vc_pat_<16 hex chars>_<32 hex chars>. Pass it to the client:
new VantageClient({ token: "vc_pat_..." });You can also set the environment variable VANTAGE_TOKEN and let the bundled
CLI / MCP packages pick it up.
Surface
vc.websites— list / create / get / delete / setFeaturesvc.content— read + write the live site's content JSONvc.blueprint— read the service graph, set node positionsvc.domains— list / add / removevc.bookings— enable / disable Cal.com bookingsvc.seo— set tier, run scans, run GEO probes, AI suggestions, etc.vc.me— manage your own API keys
See the VantageClient type for the full surface; every
endpoint is strictly typed.
Errors
Non-2xx responses throw VantageApiError:
import { VantageApiError } from "@vantageconnections/sdk";
try {
await vc.websites.get("missing");
} catch (err) {
if (err instanceof VantageApiError && err.status === 404) {
// gracefully handle
}
}See also
@vantageconnections/cli— terminal wrapper@vantageconnections/mcp— MCP server for Claude Code / Cursor
