WindowsEnjoyer / zap-fork

The easiest email solution on the web, for developers.

Home Page:https://zap.up.railway.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZapMail ⚡

This is the repository for ZapMail which is the simplest email solution on the web

API

Errors

Here is an example error response:

{
  "error": {
    "code": "bad_input",
    "message": "email is a required argument"
  },
  "status": 400
}

Here are all the possible errors codes:

  • too_many_requests
  • bad_input
  • internal_error

GET /api/v1/email/validate

This endpoint validates an email address. It accepts a query parameter email containing the email address to validate.

The validation is done via a combination of domain lookup and a syntax check. Each result is stored within a redis database to prevent overloading of this function

{
  "data": {
    "email": "this@doesnt.exist",
    "valid": false,
    "format_valid": true,
    "domain_valid": false
  },
  "status": 200
}

POST /api/v1/email/send

Requires a JSON body

{
  "from": "aadv1k@outlook.com",
  "subject": "Hi to aadvik from aadvik 👋",
  "to": [
    {
      "name": "aadv1k",
      "email": "aadv1k@outlook.com"
    }
  ],
  "body": {
    "type": "html",
    "content": "<h1>All good?</h1>"
  }
}

Success

{
  "data": {
    "messageId": "<4ee7eb98-e39f-2ddd-792f-e7a04c299d38@outlook.com>"
  },
  "status": 200
}

About

The easiest email solution on the web, for developers.

https://zap.up.railway.app


Languages

Language:TypeScript 57.4%Language:CSS 18.1%Language:HTML 14.1%Language:JavaScript 10.5%