Skip to main content

Send a message

URL-encode the mailbox address. The credential needs project access and an Owner or Sender grant on the mailbox. OAuth credentials also need the mailboxes:send scope. A mailbox can send with or without an inbound route.
Each personalization produces a message with its own recipients. It can include cc, bcc, and an override for subject. When supplied, from.email must match the mailbox address. Use from.name to set a display name. Attachments use base64 content and a filename, with optional MIME type, disposition, and content_id. The headers object accepts In-Reply-To and References. Requests can include up to 100 recipients and 10 MiB of decoded attachments. The JSON body limit is 16 MiB, and the total encoded message limit is 32 MiB.

Response

The API returns 202 Accepted after the relay accepts at least one recipient. Results are ordered by personalization. Use message IDs to find provider events when mailbox delivery tracking is enabled.