---
title: "Queries the benchmark's HuggingFace sync attempts (empty when it has never been synced)."
method: GET
path: "/benchmark/{benchmarkId}/huggingface-sync/attempts"
tags: ["Benchmark", "HuggingFaceSync"]
---

# Queries the benchmark's HuggingFace sync attempts (empty when it has never been synced).

`GET /benchmark/{benchmarkId}/huggingface-sync/attempts`

## Path parameters

- `benchmarkId` string, required

## Query parameters

- `page` integer
- `page_size` integer
- `sort` string[]
- `id` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `status` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `outcome` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `repo_id` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `triggered_by` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `created_at` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `completed_at` object
  - `eq` string
  - `neq` string
  - `gt` string
  - `gte` string
  - `lt` string
  - `lte` string
  - `contains` string
  - `starts_with` string
  - `ends_with` string
  - `in` string[]
  - `not_contains` string
- `logic` 'and' | 'or'

## Response `200`

OK

- GetBenchmarkHuggingFaceSyncHistoryEndpointPagedResultOfOutput
  - `total` integer, required
  - `page` integer, required
  - `pageSize` integer, required
  - `items` GetBenchmarkHuggingFaceSyncHistoryEndpointOutput[], required
    - `id` string, required — The attempt id (also the correlation token for its export/sync jobs).
    - `status` 'NeverSynced' | 'Exporting' | 'Uploading' | 'Completed' | 'Failed', required
    - `outcome` 'CreatedPrivate' | 'UpdatedPrivate' | 'OpenedPullRequest' | 'Failed' | 'null', nullable — Outcome once completed, or null while still running or on failure.
    - `repoId` string, required — The HuggingFace repo this attempt targeted.
    - `repoUrl` string, nullable — URL of the HuggingFace repo, or null when not yet known.
    - `prUrl` string, nullable — URL of the review pull request opened by the attempt, or null.
    - `error` string, nullable — The error from a failed attempt, or null.
    - `triggeredBy` string, required — Provenance of the trigger (an admin's mail, or auto-sync).
    - `syncedRowCount` integer, nullable — Rows the worker synced, or null until it reports success.
    - `createdAt` string, date-time, required — When the attempt was started.
    - `completedAt` string, date-time, nullable — When the attempt reached a terminal state, or null while still running.
  - `totalPages` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/d779de93a5ee/schema)
