Skip to main content
The receiving methods are on the same Paubox_Email_SDK object you use to send email. Call them as methods on an object created with new(), which loads apiKey from config.cfg:
Each method returns the raw JSON response as a string.

Domains

List domains

Create a domain

Pass an empty hashref or no argument to auto-generate a slug.

Get a domain

Delete a domain

Mailboxes

List mailboxes

Create a mailbox

Add quota_bytes to the hashref to set a storage quota.

Get a mailbox

Delete a mailbox

Emails

List received emails

after and before cursors are also accepted for pagination, along with search, sort, and ascending.

Get a received email

Download an attachment

Email and attachment IDs are UUIDs. Pass the attachment’s id from the email’s attachments array. The method returns the raw attachment bytes and dies on a non-2xx response.