Quick start

Create an API key, then send a JSON request containing your sender, recipient, subject, and HTML content.

Replace YOUR_API_KEY and the example API base URL with your actual AuthyEngine credentials and production endpoint.

API endpoint

POST/api/v1/emails/YOUR_API_KEY
POST https://authyengine.com/api/v1/emails/YOUR_API_KEY
Content-Type: application/json
{
  "name": "John Deo",
  "email": "hello@yourdomain.com",
  "subject": "Welcome to your app",
  "html": {
    "message": "<h1>Welcome!</h1>"
  }
}

Send using a form

This browser demo shows how form values can be collected and sent to the email endpoint. Set your real API URL before deploying.

JavaScript endpoint example

const response = await fetch('https://authyengine.com/api/v1/emails/YOUR_API_KEY', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'John Deo',
    email: 'hello@yourdomain.com',
    subject: 'Welcome to your app',
    html: {
      message: '<h1>Welcome!</h1>'
    }
  })
});

const data = await response.json();
console.log(data);

Example response

{
  "id": "em_01...",
  "status": "queued"
}

The response format shown here follows the landing-page example. Configure your integration according to the actual API implementation.