---
title: "Incrementally synchronize one mailbox"
method: GET
path: "/api/email/changes"
tags: ["Email"]
---

# Incrementally synchronize one mailbox

`GET /api/email/changes`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/email/changes`
- Auth: HTTP bearer

Call without a cursor to capture a baseline before a bounded full snapshot. Then pass `next_cursor` to replay mutations that happened during and after that snapshot. Cursors are opaque, signed, mailbox-bound, and expire after 30 days. Push notifications are only invalidation hints; this journal is the durable recovery source. An entry about a work item made from authentication mail carries its `title` and `ask` redacted for a token without `email:auth_secrets`.

## Query parameters

- `mailbox_id` string, required
- `cursor` string
- `limit` integer

## Response `200`

Incremental changes or a baseline requiring a full snapshot

- object
  - `changes` MailboxChange[], required
    - `sequence` string, required: Monotonic sequence serialized as a string
    - `type` string, required
    - `resource_type` string, required
    - `resource_id` string, nullable, required
    - `resource_version` integer, nullable, required
    - `actor` object, nullable, required
      - `type` string, required
      - `id` string, required
      - `label` string, nullable, required
    - `operation_id` string, nullable, required
    - `data` object, required
    - `created_at` string, date-time, required
  - `next_cursor` string, required
  - `has_more` boolean, required
  - `requires_full_sync` boolean, required
  - `reason` 'cursor_required' | 'cursor_expired'

## Other responses

- `401`: Missing or invalid API key
- `409`: Cursor expired; take next_cursor, perform a bounded full snapshot, then replay from it
- `429`: Rate limit exceeded - wait and retry

---

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