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
Headers
Body
application/json
Send an email
Plain text content of the email