Mailboxes
List quarantined messages
List quarantined messages. View request and response details for this Samva email API endpoint.
GET
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.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringafter?stringbefore?stringMailboxQuarantinePage
application/json- response
items*array<>nextCursor*string|nullimport { 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"}