@surgeapi/node, sending your first request, paginating list endpoints, narrowing typed errors, and verifying webhook signatures in your handler.
SDKs
TypeScript SDK
Install the TypeScript SDK, send messages with full type safety, paginate, handle typed errors, and verify webhooks.
The TypeScript SDK ships full type definitions for every endpoint, request payload, and response object, so your editor catches mistakes before they hit production. It runs in Node.js 18+ and any modern bundler-based environment.
This page covers installing
Set your API key as an environment variable:
Page manually when you need cursor control: