Send an email
curl --request POST \
--url https://api.sendrealm.com/emails \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "jsmith@example.com",
"to": [
"jsmith@example.com"
],
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
],
"headers": {},
"attachments": [
{
"name": "<string>",
"type": "<string>",
"data": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: 'jsmith@example.com',
to: ['jsmith@example.com'],
subject: '<string>',
text: '<string>',
html: '<string>',
tags: [{name: '<string>', value: '<string>'}],
headers: {},
attachments: [{name: '<string>', type: '<string>', data: '<string>'}]
})
};
fetch('https://api.sendrealm.com/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendrealm.com/emails"
payload = {
"from": "jsmith@example.com",
"to": ["jsmith@example.com"],
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
],
"headers": {},
"attachments": [
{
"name": "<string>",
"type": "<string>",
"data": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": 123
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}Emails
Send Email
Send emails
POST
/
emails
Send an email
curl --request POST \
--url https://api.sendrealm.com/emails \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "jsmith@example.com",
"to": [
"jsmith@example.com"
],
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
],
"headers": {},
"attachments": [
{
"name": "<string>",
"type": "<string>",
"data": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: 'jsmith@example.com',
to: ['jsmith@example.com'],
subject: '<string>',
text: '<string>',
html: '<string>',
tags: [{name: '<string>', value: '<string>'}],
headers: {},
attachments: [{name: '<string>', type: '<string>', data: '<string>'}]
})
};
fetch('https://api.sendrealm.com/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendrealm.com/emails"
payload = {
"from": "jsmith@example.com",
"to": ["jsmith@example.com"],
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"tags": [
{
"name": "<string>",
"value": "<string>"
}
],
"headers": {},
"attachments": [
{
"name": "<string>",
"type": "<string>",
"data": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": 123
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}{
"status": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>"
}
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Select an authorized project for a multi-project or all-project API key. Omit it to use the key's default project.
Body
application/json
Send an email
Email address of the sender
List of recipient email addresses
Subject of the email
Plain text content of the email
HTML content of the email
Tags associated with the email
Show child attributes
Show child attributes
Custom headers for the email
Show child attributes
Show child attributes
Attachments included in the email
Show child attributes
Show child attributes
Response
Email sent successfully
HTTP response status code