---
title: "Sync All Connections"
method: POST
path: "/api/cron/sync-all"
tags: ["cron"]
---

# Sync All Connections

`POST /api/cron/sync-all`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/cron/sync-all`
- Auth: none declared

Sync all bank connections for all active users.
Can be called independently of the notification cron.
Protected by X-Cron-Secret header.

## Headers

- `X-Cron-Secret` string
- `x-cron-secret` string

## Response `200`

Successful Response

- SyncCronResponse
  - `status` string, required
  - `users_synced` integer, required
  - `total_transactions` integer, required

## Other responses

- `422`: Validation Error

---

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