Admin
Send Test Email
Send a test email using the specified template.
Args: template_id: Template ID to use for test email. test_request: Test email request with recipient and variables. request: FastAPI request object for accessing app state.
Returns: Success message with email details.
Raises: HTTPException: 404 if template not found, 400 if no email provider configured, 500 if sending fails.
POST
Send Test Email
Path Parameters
Body
application/json
Response
Successful Response
The response is of type Response Send Test Email Api V1 Admin Email Templates Template Id Test Post · object.
Previous
List Email LogsList email logs with optional filters and pagination.
Args:
status_filter: Optional filter by status ('sent', 'failed', 'pending').
template_type: Optional filter by template type.
start_date: Optional filter by start date (ISO format).
end_date: Optional filter by end date (ISO format).
page: Page number (default: 1).
page_size: Number of logs per page (default: 25, max: 100).
Returns:
Paginated list of email logs.
Next
Send Test Email