Mailboxes
Get a mailbox policy
Returns one send policy. Use this endpoint to get a mailbox policy through the Samva email API.
GET
Returns one send policy.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$policyId*stringMatch
^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$MailboxPolicy
application/json- response
id*MailboxPolicyIdMatch
^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$name*stringoutcome*MailboxPolicyOutcomeKindValue in
"requireApproval""deny"reason*string|nullenabled*booleancreatedAt*stringupdatedAt*stringimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.mailboxes.getPolicy({ "id": "example", "policyId": "example"});Example Response
{ "id": "string", "name": "string", "outcome": "requireApproval", "reason": "string", "enabled": true, "createdAt": "string", "updatedAt": "string"}