Node SDK
A copy also lives in sdks/pigeon in the Pigeon app repo.
github.com/pigeonfs/pigeon-node
All SDK libraries
API reference
Install
shell
npm install github:pigeonfs/pigeon-node
Send an email
JavaScript
import { Pigeon } from "pigeon"; const pigeon = new Pigeon("pg_your_key", { baseUrl: "http://localhost:4005" }); const email = await pigeon.emails.send({ from: "Ada <ada@yourdomain.com>", to: ["person@example.com"], subject: "Hello", html: "<p>Hello</p>" });