1.0.2 • Published 11 months ago

microsoft-email-service v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

API Documentation

Overview

This API allows you to send emails by providing some details in the request body and authenticating with an API key.

Endpoints

POST /live/send-email    
  • Description: Simply sends an email with the specified details.

Authentication

All requests must include an API key in the headers for authentication.

Headers

KeyValueDescription
X-API-Keyyour-api-key-hereAPI key for authentication

Request Body

KeyTypeDescription
fromstringThe sender's email address (required) (club l address)
recipientsobjectObject containing recipient lists
recipients.toRecipientsarrayList of recipient email addresses (at least one required)
recipients.bccRecipientsarrayList of BCC recipient email addresses (optional)
recipients.ccRecipientsarrayList of CC recipient email addresses (optional)
contentstringObject containing email content
content.subjectstringThe subject of the email (max 125 characters, required)
content.bodyContentstringThe content of the email (required)
content.bodyContentTypestringThe content type of the email (HTML or Text, required)
attachmentsarrayList of attachments (optional) See below table

'attachments' Object:

KeyTypeDescription
contentNamestringThe name of the attached file (required)
contentTypestringThe MIME type of the attachment (required)
contentBytesstringThe base64-encoded content of the attachment (required)
1.0.2

11 months ago

1.0.1

12 months ago

1.0.0

12 months ago