What a test run on each recording would stage with a window: bytes of the cut, bytes whole, and whether it fits (the sample picker shows it before Run). Metadata only; nothing is created.
POST
/v1/algorithms/sample-runs/input-estimatescurl -X POST 'https://api.embodiflow.io/v1/algorithms/sample-runs/input-estimates' \
-H "Authorization: Bearer $EMBODIFLOW_PAT" \
-H 'Content-Type: application/json' \
-d '{
"recordingIds": [
"00000000-0000-0000-0000-000000000000"
],
"reads": "recording",
"window": {
"seconds": 0
},
"episodeIndex": 0,
"requires": {
"kind": "robot",
"format": "string"
}
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Request body
Content-Typeapplication/json
- recordingIdsarray<string (uuid)>required
The recordings to estimate, at most 50 (a page of the sample picker).
- readsstring
`raw`: estimate the uploaded files a run of an algorithm that reads them stages whole (`window` must be null).
Allowed valuesrecordingraw - windowobject | nullrequired
- secondsnumberrequired
- episodeIndexnumber
- requiresobject
The algorithm's `requires` on `kind` and `format`; a recording that does not meet them is `incompatible`.
- kindstringAllowed valuesrobothuman
- formatstring
Responses
One estimate per recording, in request order
- dataarray<AlgorithmSampleRunInputEstimateDto>required
- recordingIdstringrequired
- statusstringrequiredAllowed valuesoktoo_largenot_readyno_episodeincompatible
- unmetarray<AlgorithmSampleRunUnmetRequirementDto>required
- stageBytesnumber | nullrequired
- wholeBytesnumber | nullrequired
- windowedone ofrequired
- limitBytesnumberrequired
Response example
{
"data": [
{
"recordingId": "string",
"status": "ok",
"unmet": [
{
"fact": "kind",
"required": "string",
"actual": "string"
}
],
"stageBytes": 0,
"wholeBytes": 0,
"windowed": false,
"limitBytes": 0
}
]
}Servershttps://api.embodiflow.io/v1