Skip to main content

Installation

Install the Sendly SDK using npm, yarn, or pnpm:

Basic setup

1. Get your API key

  1. Go to app.usesendly.com
  2. Sign in to your account
  3. Open SettingsAPI Keys
  4. Copy your API key

2. Initialize the client

Your first email

Key concepts

Sending domains

Before sending email, you need to verify a domain:

Delivery tracking

You can track the status of your emails:

Error handling

Always wrap your calls in try/catch:

Next steps

Send emails

Learn all sending options.

Webhooks

Receive event notifications.

Best practices

Improve your delivery rate.

Full reference

Explore the complete API.