# Quickstart (/quickstart)

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.

<Steps>
<Step>
### Create a project [#create-a-project]

[Sign up]({{DASHBOARD_URL}}/auth/signup) 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.
</Step>

<Step>
### Verify your sending domain [#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.

<Callout type="warn" title="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](/verifying-domains).
</Callout>
</Step>

<Step>
### Copy your secret key [#copy-your-secret-key]

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

```bash title=".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](/api-keys).
</Step>

<Step>
### Send an email [#send-an-email]

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

<Tabs groupId="language" persist items={["cURL","Node.js","Python"]}>
<Tab value="cURL">
```bash
curl {{API_URL}}/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>"
  }'
```
</Tab>

<Tab value="Node.js">
```ts
const response = await fetch('{{API_URL}}/v1/send', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PLUNK_SECRET_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    to: 'ada@example.com',
    from: 'hello@example.com',
    subject: 'Welcome to Acme',
    body: '<p>Thanks for signing up, Ada.</p>',
  }),
});

const {success, data, error} = await response.json();
if (!success) throw new Error(`${error.code}: ${error.message}`);
```
</Tab>

<Tab value="Python">
```python
import os
import requests

response = requests.post(
    "{{API_URL}}/v1/send",
    headers={"Authorization": f"Bearer {os.environ['PLUNK_SECRET_KEY']}"},
    json={
        "to": "ada@example.com",
        "from": "hello@example.com",
        "subject": "Welcome to Acme",
        "body": "<p>Thanks for signing up, Ada.</p>",
    },
)
response.raise_for_status()
```
</Tab>
</Tabs>

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

```json
{
  "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.
</Step>
</Steps>

## Where to go next [#where-to-go-next]

<Cards>
<Card title="Send with a template" href="/templates">
Design the email once in the editor and send it by ID, with per-recipient variables.
</Card>

<Card title="Automate from events" href="/workflows">
Track events from your app with `POST /v1/track` and let workflows send the emails.
</Card>

<Card title="Get delivery events" href="/webhooks">
Receive deliveries, opens, bounces and complaints in your own backend.
</Card>

<Card title="Handle errors" href="/api-reference/errors">
Every error carries a code, a message and a request ID.
</Card>
</Cards>