Monitor ingestion freshness for Kalshi and Polymarket. The response aggregates table row counts, current backfill state, and the most recent successful or failed runs.
Sync monitoring endpoints are rate limited to 60 requests per minute per API key.
Number of historical runs to embed for each source.
Example Response
{
"sources": {
"polymarket": {
"status": "syncing",
"last_sync": "2025-10-24T15:28:42.123Z",
"backfill_state": "idle",
"backfill_offsets": null,
"recent_runs": [
{
"run_id": "550e8400-e29b-41d4-a716-446655440000",
"started_at": "2025-10-24T15:28:30.000Z",
"completed_at": "2025-10-24T15:28:42.123Z",
"status": "success",
"rows_inserted": 1247,
"sync_type": "incremental"
}
]
},
"kalshi": {
"status": "idle",
"last_sync": "2025-10-24T15:27:15.456Z",
"backfill_state": "idle",
"backfill_offsets": null,
"recent_runs": [
{
"run_id": "660e8400-e29b-41d4-a716-446655440001",
"started_at": "2025-10-24T15:27:00.000Z",
"completed_at": "2025-10-24T15:27:15.456Z",
"status": "success",
"rows_inserted": 823,
"sync_type": "incremental"
}
]
}
},
"table_counts": {
"polymarket_events": 8456782,
"polymarket_markets": 15234567,
"kalshi_events": 4567890,
"kalshi_markets": 9876543
},
"sync_lag_seconds": {
"polymarket": 102,
"kalshi": 189
}
}
Response highlights
sources..status shows syncing, backfilling, error, or idle.
sources..backfill_offsets exposes backlog progress when replaying history.
table_counts includes up-to-date row counts for every physical table.
recent_runs mirrors /api/sync/history for quick access to recent results.
Use this endpoint to power health dashboards or alerting. Pair it with /sync/metrics for long-term cadence trends.