Skip to main content
Receiving endpoints are exposed through the ReceivingService class, which uses the same API key authentication as EmailService.
The API key is read from config.properties (APIKEY), the same file used by EmailService.

Domains

List domains

Create a domain

Pass null to auto-generate a slug.

Get a domain

Delete a domain

Mailboxes

List mailboxes

Create a mailbox

The fourth argument is quotaBytes (pass null for no quota).

Get a mailbox

Delete a mailbox

Emails

List received emails

Arguments are limit, after cursor, and before cursor — all nullable.

Get a received email

Download an attachment

Returns raw bytes. Use java.nio.file.Files.write to save to disk.