API docs

Outputs

This page describes what the API returns: batches, jobs, results, files and file links. It also describes lists, cancelling a batch, deleting a result, and how long results are kept.

The three outputs

OutputWhat it isWhen it is made
pii_blurThe video with personal data blurred, and a mask for each frame.For every job.
depthA depth picture for every frame.When the batch sent "depth": true.
trajectoryThe pose of the camera for every frame.When the batch sent "trajectory": true.

The frames page describes how the delivered file holds each output: its topics, units, axes and clock.

Batches

POST /batches answers 202 with the batch object and a Location header, /v1/egocentric/batches/{batch_id}. That answer also holds jobs: a list of objects with one id each, one for each input, in input order. GET /batches/{batch_id} and the cancel route return the batch object without jobs.

FieldWhat it holds
objectAlways "egocentric.batch".
idThe batch id.
job_countThe number of jobs, which is the number of inputs.
optionsThe outputs asked for. hand_tracking and hand_activity are always false. depth and trajectory are present, with true, only when the batch asked for them.
countsThe number of jobs in each status: queued, submitted, processing, completed and failed.
donetrue when every job is completed or failed.
created_atThe time the batch was accepted.
started_atThe time the first job started processing. Null until then.
execution_finished_atThe latest time a job of the batch ended its processing. Set when the batch is done. Null when no job started.
finished_atThe time the last job finished. Set when the batch is done, null before.

Jobs

Each input of a batch becomes one job. GET /jobs/{job_id} returns it.

FieldWhat it holds
objectAlways "egocentric.job".
idThe job id.
batch_idThe id of the job's batch.
statusOne of the job statuses.
input_metadataFacts about the input. See below.
errorNull, or the error of a failed job.
created_atThe time the batch was accepted.
started_atThe time processing started. Null before.
execution_finished_atThe time processing ended. Null before.
finished_atThe time the job became completed or failed. Null before. For a job that failed at acceptance, it equals created_at.
expires_atThe time the result expires. Null until the job finishes. See How long results are kept.
usageAn object with credits_pending_micro: the 30-minute reservation that the job holds from acceptance, in millionths of a credit. It is 0 from the moment the service has read the video, or once the job has ended. After the read, the hold for the billable length stays on your balance until the job finishes. See Credits.

input_metadata holds four fields:

The values of container and video_codec are not published yet.

Job statuses

StatusWhat it meansIt can move to
queuedThe job was accepted. It waits for its video to be downloaded and read.submitted, failed
submittedThe video was read and the job's credit is held. The job waits for processing.processing, failed
processingThe job is being processed.completed, failed
completedThe job has a result. This status is final.none
failedThe job has no result. error says why. This status is final.none

A job can fail at acceptance: its link broke a link rule. Such a job is failed from the start.

The error of a failed job

FieldWhat it holds
codeThe job error code.
messageA sentence that says what went wrong.
faultuser_error when the input caused the failure, system_error when the service did.
retryabletrue when the same input may succeed in a new batch.

The errors page lists every job error code.

Results

GET /jobs/{job_id}/result returns the result of a completed job.

FieldWhat it holds
objectAlways "egocentric.result".
job_idThe job id.
expires_atThe job's expires_at.
spec_versionThe version of the delivered file's description, as a string: "1". It may be absent.
outputsAn object with the status of each output: pii_blur, depth and trajectory.
output_frameThe pictures and the clock of the delivered file. It may be absent.
filesThe job's files, ordered by name.

output_frame holds eight fields: path, width, height, frames, base_time_ns, source_start_ns, first_frame_ns and last_frame_ns. The frames page explains each one.

Output statuses

Each field of outputs is one of these:

StatusWhat it means
completedThe output was made, and the job's file holds it.
failedThe batch asked for the output, but it could not be made.
not_requestedThe batch did not ask for the output.

Files

FieldWhat it holds
idThe file id. Use it to get a file link.
nameThe file's name.
media_typeThe file's media type.
bytesThe file's size in bytes.
sha256The file's SHA-256, as 64 lower-case hexadecimal digits.
md5The file's MD5, as 32 lower-case hexadecimal digits. It is hexadecimal, not base64.
outputsA list of the outputs this file holds, in the order pii_blur, depth, trajectory.

When there is no result

The result route checks these cases in this order:

CaseStatusCodeMessage
The result was deleted.410result_deletedThe result was deleted.
The job has not completed, or it failed.409result_unavailableThe job has no result: it has not completed, or it failed.
The result has expired.410result_expiredThe result has expired.

So a failed job gets 409, also after its expires_at.

GET /jobs/{job_id}/files/{file_id} returns a download link for one file of a completed job. The answer is JSON, not a redirect.

FieldWhat it holds
objectAlways "egocentric.file_link".
urlThe download link. It starts with https://storage.googleapis.com/.
expires_atThe time the link stops working.
bytesThe file's size in bytes.
sha256The file's SHA-256.

Lists

RouteQuery parameterslimitOrder
GET /batcheslimit, after, order, created_after1 to 100Newest first, unless order is asc.
GET /jobslimit, after, order, created_after1 to 1,000Newest first, unless order is asc.
GET /batches/{batch_id}/jobslimit, after1 to 1,000Always in input order.

Each list answers with a page:

FieldWhat it holds
objectAlways "list".
dataThe items of the page.
first_idThe id of the first item. An empty string on an empty page.
last_idThe id of the last item. An empty string on an empty page.
has_moretrue when more items follow this page.

List parameters

Jobs of one batch share the batch's created_at. In asc order, GET /jobs lists them in input order.

A broken parameter gets 400 with the parameter's name as the param. When the name is not a plain name, the param is query, as the errors page explains.

ProblemMessage
limit on GET /batcheslimit must be a whole number from 1 to 100.
limit on a job listlimit must be a whole number from 1 to 1000.
orderorder must be asc or desc.
afterafter must be the id of an item of this list.
created_aftercreated_after must be a time with seconds and an offset, such as 2026-11-01T00:00:00Z. The year must be 0001 to 9999, the seconds 00 to 59, the fraction at most nine digits, and the offset at most 15:59. In the query string, send + as %2B.
Another parameter on GET /batches or GET /jobsThis path accepts only the query parameters limit, after, order, created_after.
Another parameter on GET /batches/{batch_id}/jobsThis path accepts only the query parameters limit, after.
A parameter twiceA query parameter may appear only once.

A route that is not a list accepts no query parameters. A query parameter there gets 400 with the message This path accepts no query parameters.

Cancel a batch

POST /batches/{batch_id}/cancel stops the jobs of a batch that have not started.

Delete a result

DELETE /jobs/{job_id}/result deletes the result of a finished job, completed or failed.

How long results are kept

A job's result is kept for 30 days after its finished_at. Its expires_at says when. After that time, the result route answers 410 result_expired. Failed jobs have an expires_at too.

Times and ids