Python
pip install surge-sdk. Sync and async clients.TypeScript
npm install @surgeapi/node. Full TypeScript types.Ruby
gem "surge_api". Sorbet types included.Elixir
{:surge_api, "~> 0.2"}. Phoenix WebhookPlug and WebhookHandler.Authentication
All SDKs read the API key from theSURGE_API_KEY environment variable by default. You can also pass it directly to the client constructor.
Account scoping
All account-scoped SDK methods take theaccount_id as a parameter (or first positional argument). This maps to the account ID in the request path.