Mailboxes

List mailbox policies

Returns every send policy on a mailbox, oldest first.

GET
/v1/mailboxes/{id}/policies

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

MailboxPolicyList

application/json
  1. response
items*array<>
Example Request
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"    }  ]}

Related documentation