Before you send
You need:- A Dugble team and a team token with the
email:sendpermission - A verified sender domain
- A
fromsender address - At least one
torecipient - A subject
- An HTML body, a plain-text body, or both
Keep team tokens on your server. Never expose them in browser or mobile application code.
Send an email
202 Accepted with the Dugble message ID:
202 Accepted means Dugble accepted the message for delivery. It does not mean the recipient’s mail server has delivered it.
Address formats
The requiredfrom field and the to, cc, bcc, and reply_to fields accept friendly-name strings:
to, cc, and bcc.
Message content
Provide at least one of:htmlfor the HTML versiontextfor the plain-text version
Track a message
Retrieve the message using the ID returned by the send request:last_event field reports the latest known state, including queued, processing, submitted, delivered, delayed, bounced, complained, rejected, failed, or canceled.
Next steps
Sending email
Learn the request fields and recommended sending workflow.
Attachments
Attach Base64-encoded files to an email.
Schedule email
Send later, reschedule, or cancel a scheduled email.
Delivery status
Understand the email delivery lifecycle.