Messages
Create message
Create/append a new message to a folder. This endpoint accepts standard Nodemailer message format and allows you to specify the target folder, initial flags, and labels. If the target folder doesn't exist, it will be created automatically.
post/v1/messages
Request
- Base URL: https://api.forwardemail.net
- URL: https://api.forwardemail.net/v1/messages
- Auth: HTTP basic
Request body
Response
Message created successfully
Example response
{
"id": "message123",
"root_id": "root123",
"folder_id": "folder123",
"folder_path": "INBOX",
"thread_id": "thread123",
"header_message_id": "<message123@example.com>",
"is_unread": true,
"is_flagged": false,
"is_deleted": false,
"is_draft": false,
"is_junk": false,
"is_copied": false,
"is_encrypted": false,
"is_searchable": true,
"is_expired": false,
"has_attachment": false,
"retention_date": null,
"internal_date": "2025-01-01T00:00:00.000Z",
"header_date": "2025-01-01T00:00:00.000Z",
"subject": "Test Message",
"flags": [
"\\Seen"
],
"size": 1024,
"uid": 1,
"modseq": 1,
"transaction": "API",
"remote_address": "127.0.0.1",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"object": "message"
}Changes
No recorded changes to this operation across all 1 revision of this API.