Mailboxes

Get a mailbox policy

Returns one send policy. Use this endpoint to get a mailbox policy through the Samva email API.

GET
/v1/mailboxes/{id}/policies/{policyId}

Returns one send policy.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

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

Response Body

MailboxPolicy

application/json
  1. response
id*MailboxPolicyId
Match^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$
name*string
outcome*MailboxPolicyOutcomeKind
Value in"requireApproval""deny"
reason*string|null
enabled*boolean
createdAt*string
updatedAt*string
Example Request
import { 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"}

Related documentation