LOOMAL
SDK / API Reference

Messages

Send, read, reply to, label, and delete email messages

The messages API is the SDK surface for everything an agent does with mail: send a new message, read the inbox, reply on a thread, mark messages with labels, or delete them. Every endpoint here is also available via loomal.mail.* in the Node and Python SDKs, the loomal mail CLI, and as MCP tools — see each endpoint page for the per-channel snippets.

EndpointWhat it does
Send a messagePOST /v0/messages/send — send a new email
ReplyPOST /v0/messages/:id/reply — reply on the same thread
List messagesGET /v0/messages — list the inbox, filter by labels
Get messageGET /v0/messages/:id — fetch one parsed message
Update labelsPATCH /v0/messages/:id/labels — add or remove labels
Delete messageDELETE /v0/messages/:id — delete a message
AttachmentsGET /v0/messages/:id/attachments/:attachmentId — download bytes