AtServiceTech

EMAIL API · GUIDE

Send email with the Email API

Submit an HTTPS POST request from your server to queue a message from a verified sender domain.

Endpoint and authentication

The sender address must use a connected, verified domain with an active Email API subscription. Publish and verify the exact MX, SPF, DKIM, and DMARC records shown under Business Email → Domains. DKIM is the displayed TXT selector and public key; DNS authentication improves deliverability but does not guarantee inbox placement.

A valid request returns after the message is added to the send queue. Queued does not mean the SMTP relay accepted the message or that it reached the recipient.

POST

Send an email

/api/v1/email/send

The generated cURL command includes the API key you entered. Do not share it.

cURL Request
curl --request POST \
  --url 'https://atservicetech.com/api/v1/email/send' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{
  "from": { "name": "Sales", "email": "sales@example.com" },
  "domain": "example.com",
  "template_id": "order-confirmation",
  "recipients": [{
    "to": [{ "name": "Customer", "email": "customer@example.net" }],
    "cc": [{ "name": "Account Team", "email": "accounts@example.com" }],
    "bcc": [{ "email": "audit@example.com" }],
    "variables": { "name": "Asha", "order_id": "A-1042" }
  }],
  "reply_to": [{ "email": "support@example.com" }],
  "attachments": [{
    "fileName": "order-details.pdf",
    "filePath": "https://files.example.com/orders/A-1042.pdf"
  }]
}'
POST · HTTPS

Response

Enter your API key and request details, then select Try it to see the response.