Send an Email
POST/email-svc/email
Send an email with attachments.
Request
- application/json
Body
required
Send Email Request
Array [
]
attachments
object[]
List of file attachments (optional)
content stringrequired
Base64-encoded content of the file
contentType stringrequired
MIME type of the file (e.g., "application/pdf")
filename stringrequired
Name of the attached file
bcc string[]
List of BCC recipient email addresses (optional)
body stringrequired
Email body content (plain text or HTML)
cc string[]
List of CC recipient email addresses (optional)
contentType stringrequired
Content type: "text/plain" or "text/html"
createdAt stringrequired
Timestamp of email creation
id string
Unique identifier
subject stringrequired
Email subject line
to string[]required
List of recipient email addresses
Responses
- 200
- 400
- 401
- 500
Successfully sent the email
- application/json
- Schema
- Example (from schema)
Schema
emailId string
Unique identifier for the sent email
status string
Status of the email send operation ("sent", "queued", etc.)
{
"emailId": "string",
"status": "string"
}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Loading...