Import an exact Hugging Face dataset commit server-side
POST
/v1/datasets/import-hf
const url = 'https://example.com/v1/datasets/import-hf';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"repo_id":"example","revision":"example","name":"example","source_format":"lerobot_v2_1","hf_token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” x-api-key
string | null
Request Body required
Section titled “Request Body required ” Media type application/json
HuggingFaceImportBody
Server-side import of one exact public Hugging Face dataset commit.
object
repo_id
required
string
revision
required
string
name
required
string
source_format
required
string
hf_token
string | null
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationErrorobject
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": {} } ]}