Skip to main content
The TypeScript SDK wraps every v3 endpoint as a typed function, generated from the same OpenAPI spec that powers the API Reference. Install it, call configure() once, and use the operation functions.

Configure

configure() sets Authorization: Bearer <apiKey> and (when provided) X-Subaccount-Id on every request.

Make a request

Every operation returns the full v3 envelope — { data, error, request_id } — typed, so destructure what you need:
Path parameters are positional; query params and bodies are typed objects:

Per-call subaccount override

Pass the X-Subaccount-Id header argument to target a different subaccount for a single call (without changing the global default):
The typed surface (operation functions + models) is generated from spec/openapi.json and kept in lockstep with the API. See the API Reference tab for the full list of operations and their shapes.