Mailboxes

List quarantined messages

List quarantined messages. View request and response details for this Samva email API endpoint.

GET
/v1/mailboxes/{id}/quarantine

Returns the messages this mailbox holds instead of delivering, most recently held first: suspected spam, phishing, fraud, or prompt injection (quarantined), and malware (isolated). Each is metadata only; a held message appears in no thread, search, or mailbox.message.received event until a person releases it. after and before filter by when the message was held. Needs quarantine.read.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

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

Query Parameters

limit?|null
cursor?string
after?string
before?string

Response Body

MailboxQuarantinePage

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.mailboxes.listQuarantine({  "id": "example"});
Example Response
{  "items": [    {      "id": "string",      "disposition": "quarantined",      "reason": "spam",      "source": "receipt",      "from": {        "address": "string",        "name": "string"      },      "subject": "string",      "receivedAt": "string",      "heldAt": "string",      "releasedAt": "string",      "threadId": "string",      "discardedAt": "string"    }  ],  "nextCursor": "string"}

Related documentation