Create
POST /v1/mailboxes
Programmable inboxes for automation
OceanInbox lets KaleFlow agents create a mailbox, wait for inbound mail, search the latest messages, and extract login codes through a private API.
curl -X POST https://api.oceaninbox.com/v1/mailboxes \
-H "x-api-key: $OCEANINBOX_API_KEY" \
-d '{"ttlSeconds":3600}'
{
"address": "kf-n7sq4r8m2p1d@oceaninbox.com",
"expiresAt": "2026-07-04T19:30:00.000Z"
}Mailbox lifecycle
POST /v1/mailboxes
Mail lands on the existing Postfix/Dovecot host
GET /v1/mailboxes/{address}/messages?search=code
GET /v1/mailboxes/{address}/otp
The API is designed around the current Postfix and Dovecot setup in the ScaleMule account. Mailbox administration stays behind a restricted server-side adapter, while agents only receive scoped API access.
Tests can query recent mail by sender, subject, or body text, then request the latest 4-8 digit OTP code for the mailbox they just created.
The service requires API keys, stores mailbox credentials server-side, and avoids putting internal platform tokens into customer-facing applications.