Request
UID of the email to forward
Email account to send from
Folder where the original email is located
Body
to
string | string[]
required
Recipient(s) to forward to
Optional message to include before the forwarded content
Whether to include the original email content
Response
Indicates if the forward was sent successfully
Message-ID of the forwarded email
Forward subject (with Fwd: prefix)
Whether saved to Sent folder
curl -X POST "https://api.jasni.ai/api/v1/emails/12345/[email protected]" \
-H "Authorization: Bearer jsk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"to": "[email protected]",
"text": "FYI - see the email below.",
"includeOriginal": true
}'
How It Works
When you forward an email, Jasni:
- Fetches the original email: Retrieves the full content from the specified folder
- Formats the forward:
- Adds
Fwd: prefix to the subject
- Includes forwarded message header with original sender, date, subject
- Wraps the original content
- Adds your message: Your
text or html appears before the forwarded content
- Sends to new recipients: Delivers to the specified To/CC/BCC addresses
- Saves to Sent: Stores a copy in your Sent folder
Forward with Custom Message
// Forward with a detailed HTML message
const response = await fetch(
'https://api.jasni.ai/api/v1/emails/12345/[email protected]',
{
method: 'POST',
headers: {
'Authorization': 'Bearer jsk_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: ['[email protected]'],
bcc: ['[email protected]'],
html: `
<p>Hi Team Lead,</p>
<p>Please review the customer inquiry below. I think we should:</p>
<ul>
<li>Schedule a call this week</li>
<li>Prepare a proposal</li>
</ul>
<p>Let me know your thoughts.</p>
<p>Thanks!</p>
`,
includeOriginal: true,
}),
}
);
Notes
- The
to parameter is required - you must specify at least one recipient
- All recipient emails are validated before sending
- The original email content is preserved including any formatting
forwardedFrom in the response contains metadata about the original email