Skip to main content
POST
/
v1
/
emails
/
batch
Send a batch (up to 100)
curl --request POST \
  --url https://api.drin.run/v1/emails/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "emails": [
    {
      "from": {
        "email": "jsmith@example.com",
        "name": "<string>"
      },
      "to": [
        {
          "email": "jsmith@example.com",
          "name": "<string>"
        }
      ],
      "cc": [
        {
          "email": "jsmith@example.com",
          "name": "<string>"
        }
      ],
      "bcc": [
        {
          "email": "jsmith@example.com",
          "name": "<string>"
        }
      ],
      "replyTo": [
        {
          "email": "jsmith@example.com",
          "name": "<string>"
        }
      ],
      "subject": "<string>",
      "html": "<string>",
      "text": "<string>",
      "templateId": "<string>",
      "data": {},
      "headers": {},
      "tags": [
        {
          "name": "<string>",
          "value": "<string>"
        }
      ],
      "attachments": [
        {
          "filename": "<string>",
          "content": "<string>",
          "contentType": "<string>"
        }
      ],
      "scheduledAt": "2023-11-07T05:31:56Z"
    }
  ]
}
'
{
  "data": [
    {
      "id": "<string>",
      "error": {
        "message": "<string>",
        "code": "<string>",
        "param": "<string>"
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://drin.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Drin API key, sent as Authorization: Bearer <key>.

Headers

X-Drin-Product
string

Names the sending project for account-wide keys (alias: X-Drin-Sender). Project-scoped keys may omit it.

Body

application/json
emails
object[]
required
Maximum array length: 100

Response

207 - application/json

Multi-status — each item succeeds or fails individually.

data
object[]