curl --request POST \
--url https://api.varg.ai/v2/lineage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_id": "file_abc123"
}
'{
"file_id": "<string>",
"job_id": "<string>",
"tool": "<string>",
"input": {}
}{
"error": {
"code": "model_not_found",
"message": "Unknown model: flux-shnell",
"details": "<unknown>"
}
}Files
Resolve a file to the job that created it
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”.
POST
/
lineage
curl --request POST \
--url https://api.varg.ai/v2/lineage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_id": "file_abc123"
}
'{
"file_id": "<string>",
"job_id": "<string>",
"tool": "<string>",
"input": {}
}{
"error": {
"code": "model_not_found",
"message": "Unknown model: flux-shnell",
"details": "<unknown>"
}
}Authorizations
varg API key (varg_...). Get one at app.varg.ai
or run bunx vargai login. App sessions may alternatively send a
Supabase JWT.
Was this page helpful?