List a selection's files
The same listing with its fields in a JSON body, for id lists too long for a URL.
curl --request POST \
--url https://dev.simforge.ai/api/v1/datasets/{id}/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"filter": "<string>",
"sourceLog": "<string>",
"ids": "<string>",
"include": "<string>",
"passes": "<string>",
"cursor": "<string>",
"limit": 500,
"dryRun": true
}
'import requests
url = "https://dev.simforge.ai/api/v1/datasets/{id}/files"
payload = {
"q": "<string>",
"filter": "<string>",
"sourceLog": "<string>",
"ids": "<string>",
"include": "<string>",
"passes": "<string>",
"cursor": "<string>",
"limit": 500,
"dryRun": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
q: '<string>',
filter: '<string>',
sourceLog: '<string>',
ids: '<string>',
include: '<string>',
passes: '<string>',
cursor: '<string>',
limit: 500,
dryRun: true
})
};
fetch('https://dev.simforge.ai/api/v1/datasets/{id}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schema": "simforge.dataset-files/v1",
"dataset": {
"id": "<string>",
"name": "<string>"
},
"selection": {
"kind": "dataset"
},
"include": {
"renders": {
"presets": [
"training"
],
"modalities": [
"rgb"
]
},
"labels": true,
"groundTruth": true,
"recordings": true,
"generated": true
},
"scenarios": [
{
"id": "<string>",
"revisionId": "<string>",
"title": "<string>",
"dir": "<string>",
"map": {
"versionId": "<string>",
"name": "<string>",
"sourceMapId": "<string>",
"xodrSha256": "<string>"
},
"grade": {
"tier": "<string>",
"basis": "<string>"
},
"tags": [
"<string>"
],
"split": "<string>",
"lineage": {
"derivationKind": "<string>",
"parentId": "<string>",
"sourceRecordingSha256": "<string>",
"source": {
"dataset": "<string>",
"logId": "<string>",
"label": "<string>"
}
},
"licence": "<string>",
"simulation": {
"simKey": "<string>",
"engineSemVer": "<string>",
"resolvedInputDigest": "<string>"
},
"recording": "<string>",
"recordings": [
"<string>"
],
"renders": [
{
"id": "<string>",
"preset": "training",
"engine": "<string>",
"source": "studio",
"dir": "<string>",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 1,
"role": "<string>",
"mediaType": "<string>",
"sensorId": "<string>",
"actorId": "<string>",
"modality": "<string>"
}
]
}
],
"generated": [
{
"dir": "<string>",
"runId": "<string>",
"lookId": "<string>",
"seed": 1,
"verdict": "accepted",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 1,
"mediaType": "<string>"
}
]
}
],
"members": [
{
"path": "<string>",
"role": "document",
"sha256": "<string>",
"size": 1
}
]
}
],
"files": [
{
"path": "<string>",
"role": "document",
"mediaType": "<string>",
"state": "ready",
"sha256": "<string>",
"size": 1,
"url": "<string>",
"urlExpiresAt": "<string>",
"documentId": "<string>"
}
],
"excluded": [
{
"documentId": "<string>",
"title": "<string>",
"code": "<string>",
"reason": "<string>",
"path": "<string>"
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}Authorizations
A sfc_at_… access token from simforge login, or an sfk_… API key. An operation's security lists the scopes the credential must hold.
Path Parameters
Body
Free-text search, as in the library's search box.
Library filters: space-separated facet:value[,value] tokens, e.g. grade:A tag:cut-in.
Only the scenarios of one recorded drive (its recording digest or source id).
Exactly these scenarios (document ids); not with q, filter or sourceLog.
renders[:training|showcase|schematic], labels, gt, recordings, generated (Factory clips), or scenarios for none of them; default renders:training.
Keep only these render modalities: rgb, depth, semantic, instance, lidar, radar.
Files per page (whole scenarios, at least one); default 1000.
1 <= x <= 1000urls: the whole selection as an aria2c input file of 24-hour links (text/plain).
json, urls Counts and size of the whole selection; no links, nothing prepared.
Response
A page of files (each a signed GET of the stored object, range-capable; ask again for fresh links), the dry-run summary, or (format=urls) the link list.
- Option 1
- Option 2
simforge.dataset-files/v1 Show child attributes
Show child attributes
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Show child attributes
Show child attributes
This page's scenarios.jsonl rows, by document id.
Show child attributes
Show child attributes
Every file of this page's scenarios, and the recordings they bring.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
curl --request POST \
--url https://dev.simforge.ai/api/v1/datasets/{id}/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"filter": "<string>",
"sourceLog": "<string>",
"ids": "<string>",
"include": "<string>",
"passes": "<string>",
"cursor": "<string>",
"limit": 500,
"dryRun": true
}
'import requests
url = "https://dev.simforge.ai/api/v1/datasets/{id}/files"
payload = {
"q": "<string>",
"filter": "<string>",
"sourceLog": "<string>",
"ids": "<string>",
"include": "<string>",
"passes": "<string>",
"cursor": "<string>",
"limit": 500,
"dryRun": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
q: '<string>',
filter: '<string>',
sourceLog: '<string>',
ids: '<string>',
include: '<string>',
passes: '<string>',
cursor: '<string>',
limit: 500,
dryRun: true
})
};
fetch('https://dev.simforge.ai/api/v1/datasets/{id}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schema": "simforge.dataset-files/v1",
"dataset": {
"id": "<string>",
"name": "<string>"
},
"selection": {
"kind": "dataset"
},
"include": {
"renders": {
"presets": [
"training"
],
"modalities": [
"rgb"
]
},
"labels": true,
"groundTruth": true,
"recordings": true,
"generated": true
},
"scenarios": [
{
"id": "<string>",
"revisionId": "<string>",
"title": "<string>",
"dir": "<string>",
"map": {
"versionId": "<string>",
"name": "<string>",
"sourceMapId": "<string>",
"xodrSha256": "<string>"
},
"grade": {
"tier": "<string>",
"basis": "<string>"
},
"tags": [
"<string>"
],
"split": "<string>",
"lineage": {
"derivationKind": "<string>",
"parentId": "<string>",
"sourceRecordingSha256": "<string>",
"source": {
"dataset": "<string>",
"logId": "<string>",
"label": "<string>"
}
},
"licence": "<string>",
"simulation": {
"simKey": "<string>",
"engineSemVer": "<string>",
"resolvedInputDigest": "<string>"
},
"recording": "<string>",
"recordings": [
"<string>"
],
"renders": [
{
"id": "<string>",
"preset": "training",
"engine": "<string>",
"source": "studio",
"dir": "<string>",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 1,
"role": "<string>",
"mediaType": "<string>",
"sensorId": "<string>",
"actorId": "<string>",
"modality": "<string>"
}
]
}
],
"generated": [
{
"dir": "<string>",
"runId": "<string>",
"lookId": "<string>",
"seed": 1,
"verdict": "accepted",
"files": [
{
"path": "<string>",
"sha256": "<string>",
"size": 1,
"mediaType": "<string>"
}
]
}
],
"members": [
{
"path": "<string>",
"role": "document",
"sha256": "<string>",
"size": 1
}
]
}
],
"files": [
{
"path": "<string>",
"role": "document",
"mediaType": "<string>",
"state": "ready",
"sha256": "<string>",
"size": 1,
"url": "<string>",
"urlExpiresAt": "<string>",
"documentId": "<string>"
}
],
"excluded": [
{
"documentId": "<string>",
"title": "<string>",
"code": "<string>",
"reason": "<string>",
"path": "<string>"
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}{
"error": {
"code": "bad_request",
"reason": "<string>",
"retryable": true,
"requestId": "<string>",
"hint": "<string>",
"param": "<string>",
"detail": "<unknown>",
"path": "<string>"
}
}