List Workspace Connector Sync Logs
/v1/workspace-connector-sync-logsReturns sync run logs for the authenticated workspace, newest first. Each log records one execution of a workspace connector sync, including timing, trigger, status, and any error. Read only, cursor paginated. ## Filtering & sorting Filter via `POST /v1/records/query` (root `workspace_connector_sync_logs`) or the `filters` model; operators are gated by each field's data type. See [Filtering & sorting](../filtering-and-sorting). **Filterable fields** | Field | Type | Allowed operators | |---|---|---| | `cloud_task_id` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `completed_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `created_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `deleted_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `duration_ms` | number | `eq` `neq` `gt` `gte` `lt` `lte` `is_null` `is_not_null` | | `error` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | | `pk` | number | `eq` `neq` `gt` `gte` `lt` `lte` `is_null` `is_not_null` | | `started_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `status` | enum | `eq` `neq` `in` `is_null` `is_not_null` | | `trigger_type` | enum | `eq` `neq` `in` `is_null` `is_not_null` | | `updated_at` | date | `eq` `lt` `gt` `is_null` `is_not_null` | | `workspace_connector_sync_log_id` | text | `contains` `eq` `neq` `starts_with` `ends_with` `is_null` `is_not_null` | **Sortable fields:** `cloud_task_id`, `completed_at`, `created_at`, `deleted_at`, `duration_ms`, `error`, `pk`, `started_at`, `status`, `trigger_type`, `updated_at`, `workspace_connector_sync_log_id` (via `orderBy` / `sort`, `asc`|`desc`).
Requires a bearer token: Authorization: Bearer <token>.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| cursor | string | No | Opaque pagination cursor returned in links.next of a previous page. Omit to fetch the first page.e.g. eyJwayI6NzAxfQ |
| limit | integer | No | Maximum number of sync logs to return per page.e.g. 25 |
Request
curl -X GET https://api.wellapp.ai/v1/workspace-connector-sync-logs \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
200 — A page of sync logs.
{
"data": [
{
"type": "workspace_connector_sync_log",
"id": "5c6d7e8f-9012-43a4-b5c6-d7e8f9012a3b",
"attributes": {
"status": "success",
"trigger_type": "cloud_task",
"started_at": "2026-06-07T08:00:00.000Z",
"completed_at": "2026-06-07T08:00:42.000Z",
"duration_ms": 42000,
"error": null,
"cloud_task_id": "task_mercury_0607_0800",
"metadata": {
"records_synced": 128
},
"created_at": "2026-06-07T08:00:00.000Z",
"updated_at": "2026-06-07T08:00:42.000Z"
},
"relationships": {
"workspaceConnector": {
"data": {
"type": "workspace_connector",
"id": "00000000-0000-4000-8000-000000000001"
}
}
}
}
],
"meta": {
"total": 1,
"count": 1
},
"links": {
"next": null
}
}400 — Invalid pagination parameters.
{
"code": "BAD_REQUEST",
"status": 400,
"title": "Bad Request",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}401 — Missing or invalid bearer token.
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}Filtering & sorting on related objects
This resource's related objects (the ones you can include) and how to filter or sort on each:
| Relationship | Cardinality | Filter on a field | Sort by a field |
|---|---|---|---|
workspaceConnector | to-one (workspace_connector) | { "workspaceConnector": { "name": { "_eq": … } } } | "field": "workspaceConnector.name" ✅ |
workspace | to-one (workspace) | { "workspace": { "name": { "_eq": … } } } | "field": "workspace.name" ✅ |
Replace field_name with any field of the related object. See its object-reference page for the full field list.
Filter by a to-one relation (and sort by it):
{
"root": "workspace_connector_sync_logs",
"whereClause": { "workspaceConnector": { "name": { "_ilike": "%acme%" } } },
"orderBy": { "field": "workspaceConnector.name", "direction": "asc" }
}