What an import would create, without creating anything: the pinned commit, licence, episodes, size, robot type and cameras.
POST
/v1/projects/{projectId}/hf-imports/previewscurl -X POST 'https://api.embodiflow.io/v1/projects/{projectId}/hf-imports/previews' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"repoId": "string",
"revision": "string",
"accessToken": "string"
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- projectIdstringrequired
Header parameters
- Idempotency-Keystring
Optional idempotency key, at most 255 characters (UUIDv4 recommended). A repeated key returns the first response byte-for-byte; a 5xx is not stored, so the same key runs the request again. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours.
Request body
Content-Typeapplication/json
- repoIdstringrequired
`owner/name`, optionally `owner/name@revision` or a dataset URL.
- revisionstring | null
Branch, tag or commit; default `main`.
- accessTokenstring | null
Read token for a private or gated dataset. Write-only: used for this request (preview) or handed once to the import Job, never stored.
Responses
Success
- dataobjectrequired
- repoIdstringrequired
- requestedRevisionstringrequired
- shastringrequired
- licensestring | nullrequired
- namestringrequired
- codebaseVersionstringrequired
- robotTypestring | nullrequired
- fpsnumber | nullrequired
- totalEpisodesnumberrequired
- camerasarray<string>required
- fileCountnumberrequired
- totalBytesnumberrequired
- maxBytesnumberrequired
- warningsarray<object>required
- tokenRequiredone ofrequired
Response example
{
"data": {
"repoId": "string",
"requestedRevision": "string",
"sha": "string",
"license": "string",
"name": "string",
"codebaseVersion": "string",
"robotType": "string",
"fps": 0,
"totalEpisodes": 0,
"cameras": [
"string"
],
"fileCount": 0,
"totalBytes": 0,
"maxBytes": 0,
"warnings": [
{
"code": "string",
"robotType": "string",
"missing": [
"string"
]
}
],
"tokenRequired": false
}
}Servershttps://api.embodiflow.io/v1