@plainrouter/sdk is the generated TypeScript client for the signed PlainRouter OpenAPI contract. It exposes typed request and response models, API methods, and Zod schemas for all ten Conversion API operations.
The current npm release is 0.5.0 and targets signed API contract 0.5.0. The source is in plainrouter/sdk. Review release notes before upgrading while the SDK remains in the 0.x series.
Version
0.5.0 includes the required event consent fields and verifySignalIngestion.Requirements
- Node.js
22.22.2or later in the Node 22 release line. - A per-Signal tracker secret.
- Server-side code. Do not use the tracker secret in a browser bundle.
Install
Configure the client
Configure the shared client once when your server starts:Configure another API origin
The default API base URL ishttps://plainrouter.com/api/v1. Override it only for a PlainRouter-provided region or a controlled test environment:
fetch implementation through the same configuration object.
Available methods
The package also exports the generated TypeScript models and Zod schemas. Use the schemas when you need runtime validation at an application boundary.
Verify Signal ingestion
duplicate: true.