@postsider/node is the official Node.js client for the Volta API. It wraps every public API endpoint in a typed, async method, handles authentication and request encoding for you, and ships with full TypeScript declarations — so you get autocomplete and compile-time safety for all request and response shapes. The SDK is designed to work equally well in traditional Node.js backends, TypeScript applications, and AI agent runtimes like Claude Code or Codex that invoke it through tool calls.
Installation
Quick Start
Import the default export, instantiate the client with your API key, and start making calls:Configuration
ThePostsider constructor accepts two arguments:
Your organization’s API key. Generate one from Settings → API Keys in the Volta dashboard.
The base URL of your Volta instance, e.g.
"https://your-instance.com". Omit this argument when using the Volta hosted service — the SDK defaults to https://api.postsider.com./public/v1 automatically when constructing request paths.
The SDK is written in TypeScript and ships with
.d.ts declarations in the dist/ folder. You do not need to install a separate @types/ package. All request and response types (including CreatePostDto and GetPostsDto) are re-exported from the compiled output.Uploading Media
To attach an image to a post, upload it first and then reference the returned ID:Verifying Webhooks
Volta sends signed webhook payloads when posts are published. Use the staticverifyWebhookSignature method to validate inbound requests before processing them:
