ReceivingService class, which uses the same API key authentication as EmailService.
config.properties (APIKEY), the same file used by EmailService. Methods return the raw JSON response as a String.
Domains
List domains
Create a domain
null to auto-generate a slug.
Get a domain
Delete a domain
Mailboxes
List mailboxes
Create a mailbox
quotaBytes as a Long (pass null for no quota).
Get a mailbox
Delete a mailbox
Emails
List received emails
limit, after cursor, and before cursor; all are nullable.
Get a received email
Download an attachment
id from the received email’s attachments array. Returns raw bytes; save them with java.nio.file.Files.write.