AhaSend

Three more ways to use AhaSend from your own stack: Terraform, Dart and Node.js

Mark Kraakman
Mark Kraakman
Product Update
On this page

Not every team writes Go, and not every team wants to set up a sending domain by clicking through a dashboard. There are now three more ways to work with AhaSend from the tools you already use: a Terraform provider, a Dart SDK, and our own SDK for Node.js and TypeScript. Two of the three were built by teams outside AhaSend.

Terraform: your email setup as code

The team at Open Social built a Terraform provider for AhaSend. It manages sending domains, API keys, webhooks and SMTP credentials, and for platform partners also sub-accounts and their API keys.

That means a new environment gets its sending domain and credentials from the same plan as the rest of your infrastructure, and every change goes through code review. The provider works with OpenTofu too.

It is maintained by Open Social and is not an official AhaSend product. You find it in the Terraform Registry as goalgorilla/ahasend, with the source on GitHub.

Dart: for Serverpod and other Dart backends

The Team at Asertion built a Dart SDK. It covers the whole Management API: messages, domains, templates, campaigns, contacts, lists, suppressions, webhooks, inbound routes, SMTP credentials, API keys, sub-accounts and statistics.

It verifies webhook signatures, and it retries failed requests with an idempotency key, so a retry never sends a message twice. The README has a separate guide for Serverpod.

Install it with dart pub add ahasend. This SDK is maintained by Asertion and is not an official AhaSend product either. The source is available on Github.

Node.js and TypeScript: the official SDK

@ahasend/sdk on npm is our own SDK for JavaScript and TypeScript. It covers the whole Management API and ships its own types, and it works just as well from plain JavaScript, as an ES module or with require.

It runs on Node.js 22 and up, and also on Bun, Deno, Cloudflare Workers and Vercel Edge. A separate import, @ahasend/sdk/webhooks, verifies webhook signatures and comes with adapters for Express, Fastify and Next.js.

Install it with npm install @ahasend/sdk. The source is on GitHub.

Thank you

Thank you to Open Social and Asertion for building these and sharing them. Are you building something on AhaSend yourself? Let us know at [email protected], we are happy to point other developers to it.