Use the official Node.js SDK to call the MailGlyph API from server-side apps.Documentation Index
Fetch the complete documentation index at: https://docs.mailglyph.com/llms.txt
Use this file to discover all available pages before exploring further.
- npm package: mailglyph
- GitHub repository: MailGlyph Node SDK
Prerequisites
Before you start, make sure you have:- A MailGlyph secret API key (
sk_...) for server-side API requests - A MailGlyph public API key (
pk_...) for event tracking (/v1/track) - At least one verified sending domain for email sending
Install
Initialize clients
Create one SDK client for your secret key and one for your public key:Configure base URL and timeout
Use this when testing against staging or local environments:Check key type at runtime
The SDK exposeskeyType so you can enforce usage in your app:

