Skip to main content

Install

npm
pnpm
bun

Initialize

Or with explicit options:

Surface

Errors

Verifying webhooks

See webhook security for the full pattern.

TypeScript types

Every method returns fully-typed responses — imports don’t need a separate types package. If you use tsc --strict, the SDK respects it.

Edge / serverless runtimes

The SDK uses the platform fetch when available — so it works on:
  • Cloudflare Workers — drop in, no config.
  • Vercel Edge Functions — drop in.
  • Deno / Bun — drop in.
  • Browser — technically works, but never use a live key in a browser. Route through your server.