List blocked email logs
Returns inbound emails that were blocked, most recently blocked first, optionally filtered by block entry, sender, or block time (`after`, `before`).
GET
Returns inbound emails that were blocked, most recently blocked first, optionally filtered by block entry, sender, or block time (after, before). Pass nextCursor back as cursor for the next page; it is null on the last page.
apiKeyheader
x-api-key<token>blockedEmailId?stringMatch
^blk_[0-9a-hjkmnp-tv-z]{16,24}$fromAddress?stringafter?stringbefore?stringlimit?|nullcursor?stringBlockLogPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.email.getBlockLogs({});Example Response
{
"items": [
{
"id": "string",
"fromAddress": "string",
"toAddress": "string",
"subject": "string",
"blockType": "email",
"blockValue": "string",
"blockReason": "string",
"spfResult": "pass",
"dkimResult": "pass",
"dmarcResult": "pass",
"blockedAt": "string"
}
],
"nextCursor": "string"
}