Loading...
Loading...
Schedule emails to be sent at a specific time in the future.
Required permission: sendEmails
/api/v1/emails/scheduleSchedule an email for future delivery
| to * | Recipient email address or array of addresses |
| subject * | Email subject line |
| html or text * | Email content |
| scheduledFor * | ISO 8601 datetime for when to send |
| from | Sender email (defaults to organisation setting) |
| replyTo | Reply-to email address |
curl -X POST "https://yourapp.com/api/v1/emails/schedule" \
-H "Authorization: Bearer ntfn_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"subject": "Happy New Year! 🎉",
"html": "<h1>Happy 2025!</h1><p>Wishing you a great year ahead.</p>",
"scheduledFor": "2025-01-01T00:00:00Z"
}'{
"success": true,
"scheduledEmail": {
"id": "507f1f77bcf86cd799439011",
"to": "user@example.com",
"subject": "Happy New Year! 🎉",
"scheduledFor": "2025-01-01T00:00:00.000Z",
"status": "pending",
"createdAt": "2024-12-15T10:30:00.000Z"
}
}/api/v1/emails/scheduleList all scheduled emails
| page | Page number (default: 1) |
| limit | Items per page (default: 20, max: 100) |
| status | Filter by status: pending, sent, cancelled, failed |
curl -X GET "https://yourapp.com/api/v1/emails/schedule?status=pending" \ -H "Authorization: Bearer ntfn_your_api_key"
{
"success": true,
"scheduledEmails": [
{
"id": "507f1f77bcf86cd799439011",
"to": "user@example.com",
"subject": "Happy New Year!",
"scheduledFor": "2025-01-01T00:00:00.000Z",
"status": "pending",
"createdAt": "2024-12-15T10:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 5,
"pages": 1
}
}/api/v1/emails/scheduleCancel a scheduled email
| id * | The scheduled email ID to cancel |
curl -X DELETE "https://yourapp.com/api/v1/emails/schedule?id=507f1f77bcf86cd799439011" \ -H "Authorization: Bearer ntfn_your_api_key"
{
"success": true,
"message": "Scheduled email cancelled successfully"
}scheduledFor time must be in the future