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:
Per-call subaccount override
Pass theX-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.