Skip to main content
POST
/
v1.0
/
message
/
email
/
send
Send Email
curl --request POST \
  --url https://api.lofty.com/v1.0/message/email/send \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "subject": "Welcome to our service",
  "content": "Hello, this is a test email",
  "leadId": 563172647619608,
  "toEmail": "recipient@example.com"
}
'
{
  "messageId": "<string>",
  "toEmail": "<string>",
  "subject": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developer.lofty.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Email send request payload.

subject
string
required

Email subject

Example:

"Welcome to our service"

content
string
required

Email content

Example:

"Hello, this is a test email"

leadId
integer<int64>
required

Lead ID. When toEmail is not provided or no matching email is found for the lead, the system will use the primary email address of this lead. At least one of toEmail or leadId must be provided.

Example:

563172647619608

toEmail
string

Recipient email address.

Example:

"recipient@example.com"

Response

Email delivered. Response contains the message ID, subject and destination.

messageId
string

The ID of the email message

toEmail
string

Recipient email address

subject
string

Email subject