Skip to Content

Quickstart

Verify a domain, take your secret key, and send your first email from code

This takes about ten minutes, most of it waiting for DNS. You need a Plunk account and access to the DNS settings of the domain you want to send from.

Create a project

Sign up and create a project. A project holds your contacts, templates, domains and API keys. Projects start on the free tier, which sends up to 1,000 emails a month.

Verify your sending domain

Open Settings → Domains and add the domain you send from, such as example.com. Plunk shows the DNS records to add at your DNS provider: three DKIM CNAME records, one SPF TXT record and one MX record for bounces.

Plunk checks the records in the background. The domain turns Verified once they have propagated, which usually takes minutes but can take longer at some providers.

One SPF record per domain

If the domain already has an SPF record, merge Plunk's include: into it instead of adding a second one. Two SPF records make both fail. See Verifying domains.

Copy your secret key

Open Settings → API Keys and copy the secret key (sk_…). Keep it on your server, in an environment variable:

.env
PLUNK_SECRET_KEY=sk_your_secret_key

The public key (pk_…) only works with POST /v1/track. Everything else, sending included, takes the secret key. See API keys.

Send an email

Call POST /v1/send with a from address on your verified domain:

curl https://next-api.useplunk.com/v1/send \
  -H "Authorization: Bearer $PLUNK_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "ada@example.com",
    "from": "hello@example.com",
    "subject": "Welcome to Acme",
    "body": "<p>Thanks for signing up, Ada.</p>"
  }'

A successful send returns the email's ID and status. Plunk also creates or updates ada@example.com as a contact:

{
  "success": true,
  "data": {
    "emails": [
      {
        "contact": { "id": "cnt_abc123", "email": "ada@example.com" },
        "email": "ac32f08e-c6b9-45d3-9824-a73dff1e3bbf",
        "status": "queued"
      }
    ],
    "timestamp": "2026-12-03T10:30:00.000Z"
  }
}

The email shows up under Activity in the dashboard as it is sent, delivered and opened.

Where to go next

On this page