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

# Sheet syncs logs

## GET /api/v1/public/sheet-syncs/:id/logs/

A sync's log, newest first (the last 200 entries): every value that moved, leads and rows created, values the Sheet overwrote, rows deleted from the Sheet, warnings and failed runs. Seleqt keeps the last 2000 entries per sync.

Standing problems (a missing column, an unknown Status value, repeated keys, leads without a key) are logged once when they first show up, not on every run; the current state is always in the sync's `last_stats`.

Auth: `X-API-Key`

### Path Parameters

* `id` (integer, required): Sync ID

### Query Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `level` | string | No | `warning`: warnings and errors only. `error`: errors only. Default: everything. |

### Response

```json theme={null}
{
  "success": true,
  "logs": [
    {
      "id": 77120,
      "level": "warning",
      "direction": "in",
      "prospect_id": 2001,
      "prospect_name": "Alex Doe",
      "row_number": 2,
      "column": "Job title",
      "old_value": "Head of Sales",
      "new_value": "VP Sales",
      "message": "Changed in both places — the Sheet's value replaced Seleqt's",
      "created_at": "2026-11-24T10:05:11Z"
    },
    {
      "id": 77119,
      "level": "info",
      "direction": "in",
      "prospect_id": 2002,
      "prospect_name": "Sam Lee",
      "row_number": 3,
      "column": "Status",
      "old_value": "Active",
      "new_value": "Closed lost",
      "message": "Updated from the Sheet",
      "created_at": "2026-11-24T10:05:11Z"
    },
    {
      "id": 77002,
      "level": "error",
      "direction": "",
      "prospect_id": null,
      "prospect_name": "",
      "row_number": null,
      "column": "",
      "old_value": "",
      "new_value": "",
      "message": "Google's rate limit was reached — the next run tries again.",
      "created_at": "2026-11-24T09:40:03Z"
    }
  ]
}
```

| Field | Type | Description |
| - | - | - |
| `level` | string | `info`, `warning` or `error`. |
| `direction` | string | `in` (Sheet → Seleqt), `out` (Seleqt → Sheet), or empty for the run itself. |
| `prospect_id` / `prospect_name` | integer \| null / string | The lead the entry is about. |
| `row_number` | integer \| null | The Sheet row. |
| `column` | string | The Sheet column. |
| `old_value` / `new_value` | string | The value before and after. For an overwrite, `old_value` is the Seleqt value the Sheet replaced. |
| `message` | string | What happened, e.g. "Written to the Sheet", "New row in the Sheet — lead added", "New lead in Seleqt — row added to the Sheet", "Row deleted in the Sheet — the lead stays in Seleqt". |
| `created_at` | string | ISO 8601 timestamp. |

### Error Responses

| Status | `error` | When |
| - | - | - |
| `404` | `Sync not found.` | No sync with this ID in your current workspace. |

### Example

```bash theme={null}
curl -H "X-API-Key: <key>" \
  "https://api.seleqt.ai/api/v1/public/sheet-syncs/42/logs/?level=warning"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.