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
Integration key for backend workloads, or a scoped personal key (sr_user_) for account discovery and supported project operations. MCP accepts only personal keys.
Headers
Explicit project context. Required for personal-key project resource calls; integration keys retain their configured default. MCP clients supply project_id in each tool call instead.
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