Mailboxes
List mailbox policies
Returns every send policy on a mailbox, oldest first.
GET
Returns every send policy on a mailbox, oldest first. A mailbox holds at most 20 policies, so the list is never paged. Each enabled policy holds (requireApproval) or refuses (deny) every send from the mailbox; deny wins when both apply.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$MailboxPolicyList
application/json- response
items*array<>import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.mailboxes.listPolicies({ "id": "example"});Example Response
{ "items": [ { "id": "string", "name": "string", "outcome": "requireApproval", "reason": "string", "enabled": true, "createdAt": "string", "updatedAt": "string" } ]}