Send emails using Antryk Email Service with a secure, scalable, and developer-friendly API. This endpoint allows you to send transactional emails, OTPs, notifications, or bulk emails by providing recipient details, subject, and content. Authentication is handled via headers, making the request more secure and aligned with modern API standards.Documentation Index
Fetch the complete documentation index at: https://docs.antryk.com/llms.txt
Use this file to discover all available pages before exploring further.
For Node.js applications, it is recommended to use the official
@antryk/sdk. The SDK simplifies
email sending by handling authentication, validation, and error handling
internally.Authentication is handled via headers (
x-access-key, x-secret-key). The
request body should only contain email-related fields such as sender,
recipient, subject, and content.New Email Sending Approach (Recommended)
This is the recommended and modern approach for sending emails:- Authentication is passed via headers instead of request body.
- Request body contains only email-related fields.
- Cleaner, more secure, and easier to maintain.
⚠️ The older approach (sending
accessKey and secretKey in the body) may
still work for backward compatibility, but it is strongly recommended to
migrate to header-based authentication.Request Parameters
Your Antryk access key used for authentication.
Your Antryk secret key used for authentication.
The sender’s email address.
The recipient’s email address. Can be a single email or an array for multiple
recipients.
The subject line of the email.
The HTML content of the email body.
Plain text version of the email body (fallback if HTML is not supported).
Optional reply-to email address. Useful for directing responses to a support
or no-reply inbox.
Optional list of attachments. Each item must include: -
filename: Name of
the file - content: Base64-encoded file contentExamples
Example:
YOUR_ACCESS_KEY Example:
YOUR_SECRET_KEY Example:
admin@example.com Example:
ds1@gmail.com or ["ds1@gmail.com", "ds2@gmail.com"] Example:
Otp For Antryk Sign up Example:
<h1>Welcome to Antryk</h1><p>This is your OTP code: 123456</p> Example:
Welcome to Antryk. This is your OTP code: 123456 Example:
support@example.com Example:
[{"filename": "invoice.pdf", "content": "<base64>"}] 
