Skip to main content
The official TypeScript SDK provides a fully typed client for the Polar API.
The new SDK is currently in public preview. Install it from the next tag to try it before the stable release.

Installation

Terminal

Quickstart

Create an organization access token for server-side use, keep it out of browser bundles, store it in POLAR_ACCESS_TOKEN, and make your first request:
index.js
The import path pins your client to the 2026-04 API version.

Sandbox environment

The client uses production by default. Pass environment: "sandbox" to use the isolated sandbox environment:
View the source code on GitHub.

Framework adapters

Implement Checkout & Webhook handlers in few lines of code.