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. Methods return the raw JSON response as a String.

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 as a Long (pass null for no quota).

Get a mailbox

Delete a mailbox

Emails

List received emails

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

Get a received email

Download an attachment

Pass the attachment id from the received email’s attachments array. Returns raw bytes; save them with java.nio.file.Files.write.