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
| Output | What it is | When it is made |
|---|---|---|
pii_blur | The video with personal data blurred, and a mask for each frame. | For every job. |
depth | A depth picture for every frame. | When the batch sent "depth": true. |
trajectory | The 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.
| Field | What it holds |
|---|---|
object | Always "egocentric.batch". |
id | The batch id. |
job_count | The number of jobs, which is the number of inputs. |
options | The 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. |
counts | The number of jobs in each status: queued, submitted, processing, completed and failed. |
done | true when every job is completed or failed. |
created_at | The time the batch was accepted. |
started_at | The time the first job started processing. Null until then. |
execution_finished_at | The latest time a job of the batch ended its processing. Set when the batch is done. Null when no job started. |
finished_at | The 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.
| Field | What it holds |
|---|---|
object | Always "egocentric.job". |
id | The job id. |
batch_id | The id of the job's batch. |
status | One of the job statuses. |
input_metadata | Facts about the input. See below. |
error | Null, or the error of a failed job. |
created_at | The time the batch was accepted. |
started_at | The time processing started. Null before. |
execution_finished_at | The time processing ended. Null before. |
finished_at | The time the job became completed or failed. Null before. For a job that failed at acceptance, it equals created_at. |
expires_at | The time the result expires. Null until the job finishes. See How long results are kept. |
usage | An 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:
filename: the input'sfilename, or null when the input had none, or after the result was deleted or removed at its expiry.file_extension: the text after the last dot offilename, in lower case. It is null when there is no dot, or when the dot is the first or the last character.container: null until the service has read the video.video_codec: null until the service has read the video.
The values of container and video_codec are not published yet.
Job statuses
| Status | What it means | It can move to |
|---|---|---|
queued | The job was accepted. It waits for its video to be downloaded and read. | submitted, failed |
submitted | The video was read and the job's credit is held. The job waits for processing. | processing, failed |
processing | The job is being processed. | completed, failed |
completed | The job has a result. This status is final. | none |
failed | The 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
| Field | What it holds |
|---|---|
code | The job error code. |
message | A sentence that says what went wrong. |
fault | user_error when the input caused the failure, system_error when the service did. |
retryable | true 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.
| Field | What it holds |
|---|---|
object | Always "egocentric.result". |
job_id | The job id. |
expires_at | The job's expires_at. |
spec_version | The version of the delivered file's description, as a string: "1". It may be absent. |
outputs | An object with the status of each output: pii_blur, depth and trajectory. |
output_frame | The pictures and the clock of the delivered file. It may be absent. |
files | The 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:
| Status | What it means |
|---|---|
completed | The output was made, and the job's file holds it. |
failed | The batch asked for the output, but it could not be made. |
not_requested | The batch did not ask for the output. |
pii_bluris alwayscompleted.trajectoryiscompletedonly whendepthiscompleted.- A completed job can still hold a
failedoutput. - Only
completedoutputs are charged. Afailedoutput has no charge.
Files
| Field | What it holds |
|---|---|
id | The file id. Use it to get a file link. |
name | The file's name. |
media_type | The file's media type. |
bytes | The file's size in bytes. |
sha256 | The file's SHA-256, as 64 lower-case hexadecimal digits. |
md5 | The file's MD5, as 32 lower-case hexadecimal digits. It is hexadecimal, not base64. |
outputs | A 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:
| Case | Status | Code | Message |
|---|---|---|---|
| The result was deleted. | 410 | result_deleted | The result was deleted. |
| The job has not completed, or it failed. | 409 | result_unavailable | The job has no result: it has not completed, or it failed. |
| The result has expired. | 410 | result_expired | The result has expired. |
So a failed job gets 409, also after its expires_at.
File links
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.
| Field | What it holds |
|---|---|
object | Always "egocentric.file_link". |
url | The download link. It starts with https://storage.googleapis.com/. |
expires_at | The time the link stops working. |
bytes | The file's size in bytes. |
sha256 | The file's SHA-256. |
- The link is a signed GET link. It works for 900 seconds (15 minutes).
- Download it without your API key. The file downloads as an attachment.
- Ask for a new link when one has expired.
- Your organisation may get 20 links for each file within any 24 hours, by default. One more gets 429
rate_limit_errorwith aRetry-Afterheader. Limits lists the default. - The file link route answers 409 or 410 in the same cases as the result route. While a pause is open, it answers 403 or 503
operation_pausedbefore it looks up the job, so an unknown id gets the pause too.
Lists
| Route | Query parameters | limit | Order |
|---|---|---|---|
GET /batches | limit, after, order, created_after | 1 to 100 | Newest first, unless order is asc. |
GET /jobs | limit, after, order, created_after | 1 to 1,000 | Newest first, unless order is asc. |
GET /batches/{batch_id}/jobs | limit, after | 1 to 1,000 | Always in input order. |
Each list answers with a page:
| Field | What it holds |
|---|---|
object | Always "list". |
data | The items of the page. |
first_id | The id of the first item. An empty string on an empty page. |
last_id | The id of the last item. An empty string on an empty page. |
has_more | true when more items follow this page. |
List parameters
limitis the number of items on a page. The default is 100.afteris the id of an item of this list. The page starts after that item. To read the next page, send thelast_idof this page.orderisdescfor newest first, the default, orascfor oldest first. Lists are sorted bycreated_at.created_afteris a time. The page holds only items created at that time or later.- Parameter names are case-sensitive.
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.
| Problem | Message |
|---|---|
limit on GET /batches | limit must be a whole number from 1 to 100. |
limit on a job list | limit must be a whole number from 1 to 1000. |
order | order must be asc or desc. |
after | after must be the id of an item of this list. |
created_after | created_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 /jobs | This path accepts only the query parameters limit, after, order, created_after. |
Another parameter on GET /batches/{batch_id}/jobs | This path accepts only the query parameters limit, after. |
| A parameter twice | A 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.
- Every job that is not finished and not
processingbecomesfailedwith the codecancelled. Its reserved credit is released. - Jobs that are
processinggo on, and they may still complete. - The answer is 200 with the batch. A repeat also gets 200.
- The body must be empty or
{}, at most 1,024 bytes. Another body gets 400 with the parambodyand the messageThe request body must be empty or {}.
Delete a result
DELETE /jobs/{job_id}/result deletes the result of a finished job, completed or failed.
- From then on, the result route answers 410
result_deleted. - The job's
expires_atmoves to the time of the delete, when it was later. - The job's
input_metadata.filenamebecomes null. - The answer is 200 with the job, not the result. A repeat also gets 200.
- A job that has not finished gets 409
result_unavailable. - The body follows the same rule as for cancel: empty or
{}, at most 1,024 bytes.
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
- Ids are lower-case UUIDs.
- Times end in
+00:00and have 0 to 6 digits after the seconds, such as2026-11-30T12:00:00.123456+00:00. - The one exception is the
expires_atof a file link. It has exactly three digits after the seconds and ends inZ, such as2026-11-30T12:00:00.000Z.