Skip to main content

cURL

You can send emails using any HTTP client by making a POST request to the API.

Endpoint

POST
https://api.simpleemailapi.dev/v1/v1.EmailService/SendEmail

Headers

Authorization
string
required
Bearer sea_live_...
Content-Type
string
required
application/json

Request Body

{
  "from": "[email protected]",
  "to": ["[email protected]"],
  "subject": "Hello via cURL",
  "body": "This is the plain text body.",
  "html": "<p>This is the <b>HTML</b> body.</p>",
  "async": true
}

Example

curl -X POST https://api.simpleemailapi.dev/v1/v1.EmailService/SendEmail \
  -H "Authorization: Bearer sea_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "from": "[email protected]",
    "to": ["[email protected]"],
    "subject": "Hello!",
    "body": "Sent from cURL",
    "async": true
  }'

Response

{
  "id": "em_kb83...",
  "status": "QUEUED",
  "messageId": "0100018..."
}