API DOCS

Developer-Friendly Email API

Integrate our powerful email delivery API into your application with just a few lines of code. Support for multiple programming languages and frameworks.

QUICK START

Send Your First Email

Below are examples to send email using your personal API token.

Choose your preferred programming language to see the API integration example.

curl -X POST https://app.whyemails.com/api/send-email \\n  -H "Content-Type: application/json" \\n  -H "X-API-Key: your-api-key-here" \\n  -d '{
    "to": "recipient@example.com",
    "from": "your@verified-domain.com",
    "subject": "Test Email",
    "body": "This is a test email from WhyEmails Platform."
  }'

Note: Replace the fields with your values. Make sure from is a verified domain you own. Get your API key from the dashboard after signing up.

API REFERENCE

API Endpoints

Complete reference for all available API endpoints and parameters.

Send Email

POST
https://app.whyemails.com/api/send-email

Request Parameters

to

Recipient email address (required)

Type: string

from

Sender email address (must be verified domain)

Type: string

subject

Email subject line

Type: string

body

Email body content (HTML supported)

Type: string

Authentication

All API requests must include your API key in the headers:

X-API-Key: your-api-key-here

You can find your API key in your dashboard after signing up for a WhyEmails account.

Ready to Start Sending Emails?

Join thousands of developers who trust WhyEmails for their email delivery needs.

Get Your API Key

Free tier available. No credit card required.