Emails
Send email
POST
/
v1
/
emails
curl --request POST \
--url https://app.unsend.dev/api/v1/emails \
--header 'Content-Type: application/json' \
--data '{
"to": "<string>",
"from": "<string>",
"subject": "<string>",
"templateId": "<string>",
"variables": {},
"replyTo": "[email protected]",
"cc": "[email protected]",
"bcc": "[email protected]",
"text": "<string>",
"html": "<string>",
"attachments": [
{
"filename": "<string>",
"content": "<string>"
}
],
"scheduledAt": "2023-11-07T05:31:56Z",
"inReplyToId": "<string>"
}'
{
"emailId": "<string>"
}
Body
application/json
Response
200 - application/json
Retrieve the user
The response is of type object
.
curl --request POST \
--url https://app.unsend.dev/api/v1/emails \
--header 'Content-Type: application/json' \
--data '{
"to": "<string>",
"from": "<string>",
"subject": "<string>",
"templateId": "<string>",
"variables": {},
"replyTo": "[email protected]",
"cc": "[email protected]",
"bcc": "[email protected]",
"text": "<string>",
"html": "<string>",
"attachments": [
{
"filename": "<string>",
"content": "<string>"
}
],
"scheduledAt": "2023-11-07T05:31:56Z",
"inReplyToId": "<string>"
}'
{
"emailId": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.