> ## Documentation Index
> Fetch the complete documentation index at: https://second.tech/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync mailbox only

> Triggers an immediate mailbox sync without running any of the other off-chain sync steps. Fetches any pending mailbox messages from the Ark server, processes them (incoming arkoor payments, lightning receive notifications), and returns the new mailbox checkpoint (tip). Useful in `daemon_manual_sync` mode where background mailbox subscription is disabled and the operator needs a granular way to pull incoming events.



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json post /api/v1/wallet/sync/mailbox
openapi: 3.1.0
info:
  title: barkd REST API
  description: >-
    A simple REST API for barkd, a wallet daemon for integrating bitcoin
    payments into your app over HTTP. Supports self-custodial Lightning, Ark,
    and on-chain out of the box.


    barkd is a long-running daemon best suited for always-on or
    high-connectivity environments like nodes, servers, desktops, and
    point-of-sale terminals.


    All endpoints return JSON. Amounts are denominated in satoshis.
  contact:
    name: Second Team
    email: hello@second.tech
  license:
    name: MIT
    identifier: MIT
  version: 0.1.4
servers: []
security:
  - bearer: []
tags:
  - name: boards
    description: Move on-chain bitcoin onto the Ark protocol.
  - name: exits
    description: Move bitcoin back on-chain without server cooperation.
  - name: fees
    description: Estimate fees for wallet operations before executing them.
  - name: lightning
    description: Create Lightning invoices and track receives.
  - name: onchain
    description: Manage barkd's on-chain bitcoin wallet.
  - name: wallet
    description: Manage Ark balances and VTXOs, send payments via Ark, LN, and on-chain.
  - name: bitcoin
    description: Query bitcoin network data.
  - name: notifications
    description: Receive real-time notifications from barkd.
paths:
  /api/v1/wallet/sync/mailbox:
    post:
      tags:
        - wallet
      summary: Sync mailbox only
      description: >-
        Triggers an immediate mailbox sync without running any of the other
        off-chain sync steps. Fetches any pending mailbox messages from the Ark
        server, processes them (incoming arkoor payments, lightning receive
        notifications), and returns the new mailbox checkpoint (tip). Useful in
        `daemon_manual_sync` mode where background mailbox subscription is
        disabled and the operator needs a granular way to pull incoming events.
      operationId: sync_mailbox
      responses:
        '200':
          description: Returns the mailbox tip after sync
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailboxSyncResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
components:
  schemas:
    MailboxSyncResponse:
      type: object
      required:
        - checkpoint
      properties:
        checkpoint:
          type: integer
          format: int64
          description: |-
            The mailbox checkpoint (tip) the wallet has consumed up to after
            the sync. Monotonically non-decreasing across successful syncs.
          minimum: 0
    InternalServerError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: AuthToken
      description: Base64url-encoded auth token

````