---
title: "List mailbox events"
method: GET
path: "/v1/mailboxes/{id}/events"
tags: ["Mailboxes"]
---

# List mailbox events

`GET /v1/mailboxes/{id}/events`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/events`
- Auth: API key in header `x-api-key`

Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `endpoint.attached`, `endpoint.detached`, `message.received`, `message.released`, `message.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.

## Path parameters

- `id` string, required

## Query parameters

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

## Response `200`

MailboxEventPage

- MailboxEventPage
  - `items` MailboxEvent[], required
    - `id` string, required
    - `type` 'mailbox.created' | 'endpoint.attached' | 'endpoint.detached' | 'message.received' | 'message.released' | 'message.sent' | 'thread.created' | 'action.proposed' | 'action.policy_decided' | 'action.approval_requested' | 'action.approval_resolved' | 'action.accepted' | 'action.executed' | 'action.failed', required
    - `threadId` string, required
    - `actionId` string, required
    - `actor` object, required
      - `kind` 'user' | 'apiKey' | 'extension' | 'externalAgent' | 'samvaAgent' | 'system', required
      - `id` string, required
      - `displayName` string, nullable
    - `payload` object, required
    - `occurredAt` string, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `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)
