Skip to main content
@parlayx/sdk is the official TypeScript client for the ParlayX API. It provides typed request and response models generated from the API contract, a small client wrapper over the REST endpoints, typed errors, and cursor-following pagination helpers.

Install

The package ships both ESM and CommonJS builds with bundled type declarations, and runs anywhere there is a global fetch (Node.js 18+, modern browsers, edge runtimes). The WebSocket streaming client is included in this same package at the @parlayx/sdk/stream subpath — there’s no separate install. See the streaming Introduction.

Source

The SDK is published on npm. The bundled OpenAPI document is available at @parlayx/sdk/openapi/v1.json.