Authentication
This endpoint requires API key authentication.
Query Parameters
Optional. If provided, sends a test login notification email to this address instead of to actual users.
Response
Indicates whether the operation was successful
Number of emails sent
Indicates if the endpoint was run in test mode
Status message about the operation
200 OK (Test Mode)
200 OK (Production Mode)
400 Bad Request
401 Unauthorized
Example Usage
Email Template
The login notification email is designed to inform users about recent login activity on their accounts. It includes:- Personalized greeting with the user’s first name
- Details of the recent login (time, location, device)
- Instructions on what to do if they don’t recognize the login activity
- Security recommendations
- Link to account security settings
- Support contact information
Implementation Notes
- This endpoint is designed to be called by a scheduled task (cron job)
- When called without a
testEmail
parameter, it will find all users who logged in since the last run - The endpoint is rate limited to prevent accidental mass emails
- In production, authentication via API key is required
- Email sending is logged for audit purposes
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Test email address to which the email will be sent