Skip to main content

Quickstart

This guide will walk you through sending your first notification with Zyphr in under 5 minutes.

Prerequisites

  • A Zyphr account (Sign up free)
  • An API key (created in the Dashboard)

Step 1: Create an Account

  1. Go to app.zyphr.dev/signup
  2. Create your account with email/password or OAuth
  3. Create your first workspace

Step 2: Get Your API Key

  1. Navigate to SettingsAPI Keys in the dashboard
  2. Click Create API Key
  3. Give it a name (e.g., "Development")
  4. Copy your API key - you'll only see it once!
Test Mode

Use zy_test_* prefixed keys during development. Test mode messages are stored but never delivered to actual recipients.

Step 3: Send Your First Email

curl -X POST https://api.zyphr.dev/v1/emails \
-H "X-API-Key: zy_test_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"to": "test@example.com",
"subject": "Hello from Zyphr!",
"html": "<h1>It works!</h1><p>You just sent your first email with Zyphr.</p>"
}'

Response:

{
"data": {
"id": "msg_abc123",
"to": "test@example.com",
"subject": "Hello from Zyphr!",
"status": "queued",
"is_test": true,
"created_at": "2024-01-15T10:30:00Z"
},
"meta": {
"request_id": "req_xyz789"
}
}

Step 4: Verify Domain (for Production)

Before sending production emails, you need to verify your domain:

  1. Go to SettingsDomains
  2. Click Add Domain
  3. Enter your domain (e.g., notifications.yourapp.com)
  4. Add the DNS records shown to your DNS provider
  5. Click Verify once records are propagated

Step 5: Go Live

Once your domain is verified, swap your test key for a live key:

curl -X POST https://api.zyphr.dev/v1/emails \
-H "X-API-Key: zy_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"to": "real-user@example.com",
"from": "hello@notifications.yourapp.com",
"subject": "Welcome!",
"html": "<h1>Welcome to our app!</h1>"
}'

Next Steps