Skip to content

Import an exact Hugging Face dataset commit server-side

POST
/v1/datasets/import-hf
curl --request POST \
--url https://example.com/v1/datasets/import-hf \
--header 'Content-Type: application/json' \
--data '{ "repo_id": "example", "revision": "example", "name": "example", "source_format": "lerobot_v2_1", "hf_token": "example" }'

Dispatch the import to the pipeline runner under this account.

The runner executes the public SDK flow (Hub download → staged direct-to-storage upload → atomic paired publication) with an ephemeral account-scoped key; dataset bytes never proxy through this route.

x-api-key
string | null
Media type application/json
HuggingFaceImportBody

Server-side import of one exact public Hugging Face dataset commit.

object
repo_id
required
string
>= 3 characters <= 200 characters /^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$/
revision
required
string
/^[0-9a-f]{40}$/
name
required
string
>= 1 characters <= 100 characters
source_format
required
string
Allowed values: lerobot_v2_1 lerobot_v3
hf_token
string | null
>= 1 characters <= 512 characters

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationError
object
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}