---
title: "List blocked email logs"
method: GET
path: "/v1/email/blocks/logs"
tags: ["Email"]
---

# List blocked email logs

`GET /v1/email/blocks/logs`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/blocks/logs`
- Auth: API key in header `x-api-key`

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.

## Query parameters

- `blockedEmailId` string
- `fromAddress` string, nullable
- `after` string, nullable
- `before` string, nullable
- `limit` string, nullable
- `cursor` string

## Response `200`

BlockLogPage

- BlockLogPage
  - `items` object[], required
    - `id` string, required
    - `fromAddress` string, required
    - `toAddress` string, required
    - `subject` string, nullable, required
    - `blockType` 'email' | 'domain', required
    - `blockValue` string, required
    - `blockReason` string, required
    - `spfResult` 'pass' | 'fail' | 'softfail' | 'neutral' | 'none' | 'policy' | 'temperror' | 'permerror', nullable, required
    - `dkimResult` 'pass' | 'fail' | 'softfail' | 'neutral' | 'none' | 'policy' | 'temperror' | 'permerror', nullable, required
    - `dmarcResult` 'pass' | 'fail' | 'softfail' | 'neutral' | 'none' | 'policy' | 'temperror' | 'permerror', nullable, required
    - `blockedAt` string, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
