Lineage

Resolve a file to the job that created it

Changed on

Given a file_id or a varg URL, returns the job that produced the file together with its recipe (prompt, model, tool, cost) — so an agent can "create something similar". Send file_id or url; file_id wins when both are present.

post/lineage

Request

  • Base URL: https://api.varg.ai/v2
  • URL: https://api.varg.ai/v2/lineage
  • Auth: HTTP bearer

Request body

OR

Response

Lineage

file_idstring required
job_idstring required
toolstring required

Readable tool key (image, video, ...)

modelstring nullable required
promptstring nullable required

The main human-readable prompt (prompt, text or render code)

providerstring nullable required
cost_centsinteger nullable required
parent_job_idstring nullable required
root_job_idstring nullable required
children_countinteger required
total_cost_centsinteger nullable required

This job plus every descendant

output_countinteger required
output_indexinteger nullable required

1-based position among the job's outputs

primary_file_idstring nullable required
created_atstring date-time required
inputobject required

The job's input with internal keys (options, webhook_url, _*) removed

Changes