List malware held outside Spam threads
Lists isolated messages, newest first. Only metadata is stored.
GET
Lists isolated messages, newest first. Only metadata is stored. Use the thread list with folder=spam to read Spam. The after and before filters apply to when the message was held.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringafter?stringbefore?stringMailboxSpamHeldPage
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.listSpamHeld({
"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"
}