Skip to main content
Send an email using Antryk email service.
curl --request POST \
  --url https://ses.antryk.com/api/v1/email/send \
  --header 'Content-Type: application/json' \
  --data '{
    "accessKey": "YOUR_ACCESS_KEY",
    "secretKey": "YOUR_SECRET_KEY",
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Otp For Antryk Sign up",
    "html": "<h1>Welcome</h1><p>Your OTP code: 123456</p>"
  }'

Request Parameters

accessKey
string
required
The access key for authentication.
secretKey
string
required
The secret key for authentication.
from
string
required
The sender’s email address.
to
string | array
required
The recipient’s email address. Can be a single email string or an array of emails for multiple recipients.
subject
string
required
The email subject line.
html
string
The HTML content of the email body.
text
string
The plain text content of the email body (alternative to HTML).
The to field supports sending to multiple recipients by passing an array of email addresses: ["[email protected]", "[email protected]"]
Either html or text must be provided when sending an email. You can send both, but at least one is required.

Examples

accessKey
string
required
Example: YOUR_ACCESS_KEY
secretKey
string
required
Example: YOUR_SECRET_KEY
from
string
required
to
string | array
required
subject
string
required
Example: Otp For Antryk Sign up
html
string
Example: <h1>Welcome to Antryk</h1><p>This is your OTP code: 123456</p>
text
string
Example: Welcome to Antryk. This is your OTP code: 123456

Response

Returns a JSON object confirming the email was sent successfully.
{
  "success": true,
  "messageId": "msg_123456",
  "to": "[email protected]",
  "subject": "Otp For Antryk Sign up"
}