Skip to content
post

Create email

Endpoint

posthttps://<REGION>.cloud.appwrite.io/v1/messaging/messages/email

Description

Required scopes

messages.write

Authentication

Initialize the Appwrite client with setProject() and a server API key (setKey()). For direct REST calls, send X-Appwrite-Project and X-Appwrite-Key.

Parameters

string
Required
string
Required
string
Required
array
array
array
array
array
array
string
string
boolean
boolean
string
Status
Content type
201
application/json

Message

Name
Type
Description
string
string
string
string
arrayof string
arrayof string
arrayof string
string
string
arrayof string
integer
object
draft | processing | scheduled | sent | failed
HTTP
POST /v1/messaging/messages/email HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.4.0
X-Appwrite-Project: <YOUR_PROJECT_ID>
{
"messageId": "<MESSAGE_ID>",
"subject": "<SUBJECT>",
"content": "<CONTENT>",
"topics": [],
"users": [],
"targets": [],
"cc": [],
"bcc": [],
"attachments": [],
"replyToEmail": "email@example.com",
"replyToName": "<REPLY_TO_NAME>",
"draft": false,
"html": false,
"scheduledAt": "2020-10-15T06:38:00.000+00:00"
}