REST endpoints for mailboxes in ServFlo: 5 operations with parameters, request and response fields, permissions and curl examples.
Base URL: https://app.servflo.ai/api. Every call needs Authorization: Bearer sfk_… (Authentication); {organizationId} ($ORGANIZATION_ID in the examples) is your business's id.
POST /organizations/{organizationId}/mailboxes/me/connect
Starts connecting the signed-in person's own mailbox: answers Google's or Microsoft's consent page (authorizeUrl) for the person to open. Once connected, their mail with customers comes into the Inbox and their Inbox emails go out through it. Nothing changes until they allow it.
sensitive, OAuth scope servflo.sensitive. Sensitive: moves money, deletes, sends or shows something to a customer, or grants or revokes access.
MCP tool
mailboxes_connect (toolset marketing)
Approval
Waits for your approval in ServFlo when called with an API key or a connected app: the first call answers 428 APPROVAL_REQUIRED; once you approve it, repeat the call with the X-ServFlo-Approval header. See Approvals.
POST /organizations/{organizationId}/mailboxes/me/sync
Brings in the signed-in person's new mail with customers now, instead of waiting for the next check (every few minutes). Only email with a customer's address, or continuing an Inbox thread, comes in.