{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"varg","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/logo/light.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=0cceec4fdf0144f327c9e64745254c58","dark":"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/logo/dark.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=4e6978fc37965c951f846ee3fefc382b"},"favicon":"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/favicon.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=8e374ac9e94bd40c3f7f07507a704dd8","navbar":{"links":[{"href":"https://app.varg.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.varg.ai"}},"footer":{"socials":{"x":"https://x.com/vaborsh","github":"https://github.com/vargHQ"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/vargHQ/sdk"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/VAecJay7R9"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vargai","hasAudioNarration":false,"actualSubdomain":"vargai","customDomains":["docs.varg.ai"],"gitSource":{"type":"github","owner":"varghq","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{},"buildId":"6ad7966a0b9b371cf43481a1","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API Reference","count":90},{"language":"default","tag":"Documentation","count":44},{"language":"default","tag":"Models","count":27},{"language":"default","tag":"Files","count":17},{"language":"default","tag":"Templates","count":14},{"language":"default","tag":"Account","count":11},{"language":"default","tag":"Jobs","count":10},{"language":"default","tag":"Image","count":9},{"language":"default","tag":"Generation","count":9},{"language":"default","tag":"Video","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/files/get-a-file-with-lineage","slug":"/api-reference/files/get-a-file-with-lineage","pageMetadata":{"title":"Get a file with lineage","description":"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /resources/files/{id}","href":"/api-reference/files/get-a-file-with-lineage","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get a file with lineage","description":"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.","deprecated":null,"version":null,"openapi":"/openapi.yaml get /resources/files/{id}","href":"/api-reference/files/get-a-file-with-lineage","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Files"],"operationId":"getResourceFile","summary":"Get a file with lineage","description":"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.","parameters":["37283fca-85d3-4bcb-bca5-af44f9e07254"],"responses":{"200":"c3ba1b63-f0ba-4a4f-926a-e9f9bbc76ed5","401":"6af3bee5-7efb-4b4b-81d9-139c14cbc57d","404":"597bddc9-0018-4e17-b66b-e57432f69ac4"},"method":"get","type":"path","servers":["6415ef2b-ead3-41a4-9bec-7b332113d6a8"],"security":["c13fd0ff-12c7-44c9-806d-968e1ae74c2d"],"path":"/resources/files/{id}","baseUrlOptions":["https://api.varg.ai/v2"],"title":"Get a file with lineage","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"37283fca-85d3-4bcb-bca5-af44f9e07254":{"name":"id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"},"example":"file_abc123"}},"responses":{"c3ba1b63-f0ba-4a4f-926a-e9f9bbc76ed5":{"description":"The file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","uniqueKey":"id","typeLabel":"string"},"source":{"type":"string","enum":["attachment","gateway"],"description":"`gateway` for generated files, `attachment` for uploads.","uniqueKey":"source","typeLabel":"enum\u003cstring>"},"url":{"type":"string","uniqueKey":"url","typeLabel":"string"},"filename":{"oneOf":[{"type":"string","uniqueKey":"filename.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"filename","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"subtitle":{"oneOf":[{"type":"string","uniqueKey":"subtitle.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"subtitle.oneOf.1","typeLabel":"null"}],"uniqueKey":"subtitle","typeLabel":"string | null"},"media_type":{"oneOf":[{"type":"string","uniqueKey":"media_type.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"media_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"media_type","typeLabel":"string | null"},"size":{"oneOf":[{"type":"integer","uniqueKey":"size.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"size.oneOf.1","typeLabel":"null"}],"uniqueKey":"size","typeLabel":"integer | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"hash":{"oneOf":[{"type":"string","uniqueKey":"hash.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"hash.oneOf.1","typeLabel":"null"}],"uniqueKey":"hash","typeLabel":"string | null"},"thumbnail_url":{"oneOf":[{"type":"string","uniqueKey":"thumbnail_url.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"thumbnail_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"thumbnail_url","typeLabel":"string | null"},"origin":{"type":"string","enum":["upload","generated"],"uniqueKey":"origin","typeLabel":"enum\u003cstring>"},"created_by":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"created_by.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"created_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by","typeLabel":"string\u003cuuid> | null"},"created_by_profile":{"oneOf":[{"type":"object","properties":{"display_name":{"oneOf":[{"type":"string","uniqueKey":"created_by_profile.oneOf.0.display_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"created_by_profile.oneOf.0.display_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by_profile.oneOf.0.display_name","typeLabel":"string | null"},"avatar_url":{"oneOf":[{"type":"string","uniqueKey":"created_by_profile.oneOf.0.avatar_url.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"created_by_profile.oneOf.0.avatar_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by_profile.oneOf.0.avatar_url","typeLabel":"string | null"}},"uniqueKey":"created_by_profile.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"display_name":{"oneOf":[{"type":"string"},{"type":"null"}]},"avatar_url":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"created_by_profile.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by_profile","typeLabel":"object | null"},"creator_type":{"oneOf":[{"type":"string","enum":["user","api_key","system",null],"uniqueKey":"creator_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["user","api_key","system",null],"uniqueKey":"creator_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"creator_type","typeLabel":"enum\u003cstring> | null"},"created_by_api_key":{"oneOf":[{"type":"object","description":"The API key the file was created through. Only set when `creator_type` is `api_key`.","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"created_by_api_key.oneOf.0.id","typeLabel":"string\u003cuuid>"},"key_preview":{"type":"string","example":"varg_a1b2...c3d4","uniqueKey":"created_by_api_key.oneOf.0.key_preview","typeLabel":"string"},"name":{"oneOf":[{"type":"string","uniqueKey":"created_by_api_key.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"created_by_api_key.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by_api_key.oneOf.0.name","typeLabel":"string | null"}},"uniqueKey":"created_by_api_key.oneOf.0","typeLabel":"object"},{"type":"null","description":"The API key the file was created through. Only set when `creator_type` is `api_key`.","properties":{"id":{"type":"string","format":"uuid"},"key_preview":{"type":"string","example":"varg_a1b2...c3d4"},"name":{"oneOf":[{"type":"string"},{"type":"null"}]}},"uniqueKey":"created_by_api_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_by_api_key","typeLabel":"object | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"lineage":{"oneOf":[{"type":"object","description":"The job that produced a file. Detail responses carry extra fields (`provider`, `breakdown`, `created_at`, `file`).","properties":{"job_id":{"type":"string","uniqueKey":"lineage.oneOf.0.job_id","typeLabel":"string"},"tool":{"type":"string","example":"image","uniqueKey":"lineage.oneOf.0.tool","typeLabel":"string"},"model":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.model.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.model.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.model","typeLabel":"string | null"},"prompt":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.prompt.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.prompt","typeLabel":"string | null"},"provider":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.provider.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.provider","typeLabel":"string | null"},"cost_cents":{"oneOf":[{"type":"integer","uniqueKey":"lineage.oneOf.0.cost_cents.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"lineage.oneOf.0.cost_cents.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.cost_cents","typeLabel":"integer | null"},"parent_job_id":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.parent_job_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.parent_job_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.parent_job_id","typeLabel":"string | null"},"root_job_id":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.root_job_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.root_job_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.root_job_id","typeLabel":"string | null"},"children_count":{"type":"integer","uniqueKey":"lineage.oneOf.0.children_count","typeLabel":"integer"},"total_cost_cents":{"oneOf":[{"type":"integer","description":"Cost of this job plus every sub-generation it spawned.","uniqueKey":"lineage.oneOf.0.total_cost_cents.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Cost of this job plus every sub-generation it spawned.","uniqueKey":"lineage.oneOf.0.total_cost_cents.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.total_cost_cents","typeLabel":"integer | null"},"children_by_tool":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string","uniqueKey":"lineage.oneOf.0.children_by_tool.items.[INDEX].tool","typeLabel":"string"},"count":{"type":"integer","uniqueKey":"lineage.oneOf.0.children_by_tool.items.[INDEX].count","typeLabel":"integer"},"cost_cents":{"type":"integer","uniqueKey":"lineage.oneOf.0.children_by_tool.items.[INDEX].cost_cents","typeLabel":"integer"}},"uniqueKey":"lineage.oneOf.0.children_by_tool.items.[INDEX]","typeLabel":"object"},"uniqueKey":"lineage.oneOf.0.children_by_tool","typeLabel":"object[]"},"breakdown":{"type":"array","description":"Per-job cost lines behind `total_cost_cents`. Only on the detail endpoint, and only when the job has children.","items":{"type":"object","properties":{"job_id":{"type":"string","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].job_id","typeLabel":"string"},"tool":{"type":"string","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].tool","typeLabel":"string"},"model":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].model.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].model.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].model","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].status.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].status.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].status","typeLabel":"string | null"},"cost_cents":{"type":"integer","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].cost_cents","typeLabel":"integer"},"is_root":{"type":"boolean","uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX].is_root","typeLabel":"boolean"}},"uniqueKey":"lineage.oneOf.0.breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"lineage.oneOf.0.breakdown","typeLabel":"object[]"},"output_count":{"type":"integer","description":"Total files the job produced.","uniqueKey":"lineage.oneOf.0.output_count","typeLabel":"integer"},"output_index":{"oneOf":[{"type":"integer","description":"1-based position of this file among the job's outputs.","uniqueKey":"lineage.oneOf.0.output_index.oneOf.0","typeLabel":"integer"},{"type":"null","description":"1-based position of this file among the job's outputs.","uniqueKey":"lineage.oneOf.0.output_index.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.output_index","typeLabel":"integer | null"},"primary_file_id":{"oneOf":[{"type":"string","uniqueKey":"lineage.oneOf.0.primary_file_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"lineage.oneOf.0.primary_file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage.oneOf.0.primary_file_id","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","uniqueKey":"lineage.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"input":{"type":"object","additionalProperties":true,"uniqueKey":"lineage.oneOf.0.input","typeLabel":"object"},"file":{"type":"object","additionalProperties":true,"uniqueKey":"lineage.oneOf.0.file","typeLabel":"object"}},"additionalProperties":true,"uniqueKey":"lineage.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"lineage.oneOf.1","typeLabel":"null"}],"uniqueKey":"lineage","typeLabel":"object | null"},"is_favorite":{"type":"boolean","uniqueKey":"is_favorite","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","source":"attachment","url":"\u003cstring>","filename":"\u003cstring>","title":"\u003cstring>","subtitle":"\u003cstring>","media_type":"\u003cstring>","size":123,"created_at":"2023-11-07T05:31:56Z","hash":"\u003cstring>","thumbnail_url":"\u003cstring>","origin":"upload","created_by":"3c90c3cc-0d44-4b50-8888-8dd25736052a","created_by_profile":{"display_name":"\u003cstring>","avatar_url":"\u003cstring>"},"creator_type":"user","created_by_api_key":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","key_preview":"varg_a1b2...c3d4","name":"\u003cstring>"},"metadata":{},"lineage":{"job_id":"\u003cstring>","tool":"image","model":"\u003cstring>","prompt":"\u003cstring>","provider":"\u003cstring>","cost_cents":123,"parent_job_id":"\u003cstring>","root_job_id":"\u003cstring>","children_count":123,"total_cost_cents":123,"children_by_tool":[{"tool":"\u003cstring>","count":123,"cost_cents":123}],"breakdown":[{"job_id":"\u003cstring>","tool":"\u003cstring>","model":"\u003cstring>","status":"\u003cstring>","cost_cents":123,"is_root":true}],"output_count":123,"output_index":123,"primary_file_id":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","input":{},"file":{}},"is_favorite":true}}},"exampleType":"generated"}},"exampleType":"generated"},"6af3bee5-7efb-4b4b-81d9-139c14cbc57d":{"description":"Missing or invalid API key / JWT","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unauthorized":{"title":"unauthorized","value":{"error":{"code":"unauthorized","message":"Invalid or missing API key or JWT"}}}},"exampleType":"examples"}},"exampleType":"examples"},"597bddc9-0018-4e17-b66b-e57432f69ac4":{"description":"Unknown file (or not owned by the caller)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"model_not_found","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Unknown model: flux-shnell","uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{}],"uniqueKey":"error.details","typeLabel":"any"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"model_not_found","message":"Unknown model: flux-shnell","details":"\u003cunknown>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"c13fd0ff-12c7-44c9-806d-968e1ae74c2d":{"bearerAuth":{"type":"http","scheme":"bearer","description":"varg API key (`varg_...`). Get one at [app.varg.ai](https://app.varg.ai)\nor run `bunx vargai login`. App sessions may alternatively send a\nSupabase JWT.\n","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"6415ef2b-ead3-41a4-9bec-7b332113d6a8":{"url":"https://api.varg.ai/v2"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"varg API key (`varg_...`). Get one at [app.varg.ai](https://app.varg.ai)\nor run `bunx vargai login`. App sessions may alternatively send a\nSupabase JWT.\n","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"varg API key (`varg_...`). Get one at [app.varg.ai](https://app.varg.ai)\nor run `bunx vargai login`. App sessions may alternatively send a\nSupabase JWT.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"vargai","siteName":"varg","title":"Get a file with lineage - varg","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T16:27:18.042Z","originalFileLocation":"api-reference/files/get-a-file-with-lineage.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"varg\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a file with lineage - varg\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"varg\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vargai.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=Get+a+file+with+lineage\u0026amp;description=Returns+one+file+with+its+full+lineage%2C+including+the+cost+breakdown+of+the+job+tree+when+the+job+spawned+sub-generations.\u0026amp;theme=8e4322200b2c6ec3222c2f2d\u0026amp;signature=698313d46daf8f81490f636b4b61cbcd14a70c2bdd0687fe2fc293df0b6b0751\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get a file with lineage - varg\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vargai.mintlify.site/_mintlify/api/og/v2?division=Files\u0026amp;title=Get+a+file+with+lineage\u0026amp;description=Returns+one+file+with+its+full+lineage%2C+including+the+cost+breakdown+of+the+job+tree+when+the+job+spawned+sub-generations.\u0026amp;theme=8e4322200b2c6ec3222c2f2d\u0026amp;signature=698313d46daf8f81490f636b4b61cbcd14a70c2bdd0687fe2fc293df0b6b0751\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/vargai/LJMR_3vGQnsy6v-B/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"varg\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/files/get-a-file-with-lineage.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.varg.ai/#organization\",\"name\":\"varg\",\"url\":\"https://docs.varg.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vargai/zXqiSRlI6Ucs30SP/logo/light.svg?fit=max\u0026auto=format\u0026n=zXqiSRlI6Ucs30SP\u0026q=85\u0026s=0cceec4fdf0144f327c9e64745254c58\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.varg.ai#website\",\"name\":\"varg\",\"url\":\"https://docs.varg.ai\",\"publisher\":{\"@id\":\"https://docs.varg.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage#webpage\",\"url\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage\",\"name\":\"Get a file with lineage\",\"description\":\"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.\",\"dateModified\":\"2026-10-20T16:27:18.042Z\",\"isPartOf\":{\"@id\":\"https://docs.varg.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Files\",\"item\":\"https://docs.varg.ai/api-reference/files/upload-a-file\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get a file with lineage\",\"item\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage#apireference\",\"headline\":\"Get a file with lineage\",\"name\":\"Get a file with lineage\",\"description\":\"Returns one file with its full lineage, including the cost breakdown of the job tree when the job spawned sub-generations.\",\"url\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage\",\"mainEntityOfPage\":{\"@id\":\"https://docs.varg.ai/api-reference/files/get-a-file-with-lineage#webpage\"},\"dateModified\":\"2026-10-20T16:27:18.042Z\",\"publisher\":{\"@id\":\"https://docs.varg.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.varg.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"varg\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"varg","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/vargHQ/sdk"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/VAecJay7R9"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"varg API","href":"/api"},{"title":"OpenAPI spec","href":"/api/openapi"},{"title":"Folders","href":"/api/folders"},{"title":"Render API","href":"/render-api/index"}]},{"group":"Presets","pages":[{"title":"Presets","href":"/api/presets"},{"title":"List presets","deprecated":null,"version":null,"openapi":"/openapi.yaml get /presets","href":"/api-reference/presets/list-presets"},{"title":"Get preset filter axes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /presets/filters","href":"/api-reference/presets/get-preset-filter-axes"},{"title":"Get a preset","deprecated":null,"version":null,"openapi":"/openapi.yaml get /presets/{id}","href":"/api-reference/presets/get-a-preset"},{"title":"Apply presets to a request body","deprecated":null,"version":null,"openapi":"/openapi.yaml post /presets/apply","href":"/api-reference/presets/apply-presets-to-a-request-body"},{"title":"Recommend presets for an intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /presets/recommend","href":"/api-reference/presets/recommend-presets-for-an-intent"}]},{"group":"Generation","pages":[{"title":"Generate an image","deprecated":null,"version":null,"openapi":"/openapi.yaml post /image","href":"/api-reference/generation/generate-an-image"},{"title":"Generate a video","deprecated":null,"version":null,"openapi":"/openapi.yaml post /video","href":"/api-reference/generation/generate-a-video"},{"title":"Analyze a video","deprecated":null,"version":null,"openapi":"/openapi.yaml post /video/analyze","href":"/api-reference/generation/analyze-a-video"},{"title":"Generate speech (TTS)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /speech","href":"/api-reference/generation/generate-speech-tts"},{"title":"Generate music","deprecated":null,"version":null,"openapi":"/openapi.yaml post /music","href":"/api-reference/generation/generate-music"},{"title":"Transcribe audio","deprecated":null,"version":null,"openapi":"/openapi.yaml post /transcription","href":"/api-reference/generation/transcribe-audio"},{"title":"Run an ffmpeg operation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /ffmpeg","href":"/api-reference/generation/run-an-ffmpeg-operation"},{"title":"Render TSX to video","deprecated":null,"version":null,"openapi":"/openapi.yaml post /render","href":"/api-reference/generation/render-tsx-to-video"},{"title":"Run a custom pipeline","deprecated":null,"version":null,"openapi":"/openapi.yaml post /pipeline","href":"/api-reference/generation/run-a-custom-pipeline"}]},{"group":"Tools","pages":[{"title":"List tools","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tools","href":"/api-reference/tools/list-tools"},{"title":"Get tool metadata","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tools/{tool_key}","href":"/api-reference/tools/get-tool-metadata"},{"title":"Call a tool generically","deprecated":null,"version":null,"openapi":"/openapi.yaml post /tools/{tool_key}/call","href":"/api-reference/tools/call-a-tool-generically"},{"title":"List a tool's models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /tools/{tool_key}/models","href":"/api-reference/tools/list-a-tools-models"},{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.yaml get /models","href":"/api-reference/tools/list-models"}]},{"group":"Jobs","pages":[{"title":"List jobs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs","href":"/api-reference/jobs/list-jobs"},{"title":"Get a job","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}","href":"/api-reference/jobs/get-a-job"},{"title":"Get job status (lightweight)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}/status","href":"/api-reference/jobs/get-job-status-lightweight"},{"title":"Get job pricing breakdown","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}/price","href":"/api-reference/jobs/get-job-pricing-breakdown"},{"title":"Refresh a job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/refresh","href":"/api-reference/jobs/refresh-a-job"},{"title":"Cancel a job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/cancel","href":"/api-reference/jobs/cancel-a-job"},{"title":"Retry a failed job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/retry","href":"/api-reference/jobs/retry-a-failed-job"},{"title":"Get what a job and its run were charged","deprecated":null,"version":null,"openapi":"/openapi.yaml get /jobs/{id}/cost","href":"/api-reference/jobs/get-what-a-job-and-its-run-were-charged"},{"title":"Approve, retry or reject a paused job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/confirm","href":"/api-reference/jobs/approve-retry-or-reject-a-paused-job"},{"title":"Re-run a finished pipeline job from a later step","deprecated":null,"version":null,"openapi":"/openapi.yaml post /jobs/{id}/rerun","href":"/api-reference/jobs/re-run-a-finished-pipeline-job-from-a-later-step"}]},{"group":"Files","pages":[{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files","href":"/api-reference/files/upload-a-file"},{"title":"List files","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files","href":"/api-reference/files/list-files"},{"title":"Import a file by URL","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/import","href":"/api-reference/files/import-a-file-by-url"},{"title":"Probe a URL's media metadata","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/probe","href":"/api-reference/files/probe-a-urls-media-metadata"},{"title":"Check for an existing file by hash","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files/check","href":"/api-reference/files/check-for-an-existing-file-by-hash"},{"title":"Get file metadata","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files/{id}","href":"/api-reference/files/get-file-metadata"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /files/{id}","href":"/api-reference/files/delete-a-file"},{"title":"Rate or comment on a file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/{id}/feedback","href":"/api-reference/files/rate-or-comment-on-a-file"},{"title":"List feedback for a file","deprecated":null,"version":null,"openapi":"/openapi.yaml get /files/{id}/feedback","href":"/api-reference/files/list-feedback-for-a-file"},{"title":"Remove your rating on a file","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /files/{id}/feedback","href":"/api-reference/files/remove-your-rating-on-a-file"},{"title":"Start a large file upload","deprecated":null,"version":null,"openapi":"/openapi.yaml post /files/upload-session","href":"/api-reference/files/start-a-large-file-upload"},{"title":"Upload bytes to an upload session","deprecated":null,"version":null,"openapi":"/openapi.yaml put /files/upload/{session_id}","href":"/api-reference/files/upload-bytes-to-an-upload-session"},{"title":"List files with lineage","description":"Lists uploads and generated files in one list, newest first, each with\nits lineage (tool, model, prompt, cost) and favorite flag. Compared to\n`GET /files` it can filter by folder, creator and favorites. Uploads\nhave `lineage: null`.\n\nMulti-value filters (`kind`, `tool`) accept repeated parameters or a\ncomma-separated value and are OR-combined. A malformed `created_by` or\n`creator_api_key_id` is ignored rather than rejected.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml get /resources/files","href":"/api-reference/files/list-files-with-lineage"},{"title":"Get a file with lineage","deprecated":null,"version":null,"openapi":"/openapi.yaml get /resources/files/{id}","href":"/api-reference/files/get-a-file-with-lineage"},{"title":"Rename a file","description":"Sets the file's title and/or subtitle. Fields you omit keep their current value.","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /resources/files/{id}","href":"/api-reference/files/rename-a-file"},{"title":"Favorite or unfavorite a file","deprecated":null,"version":null,"openapi":"/openapi.yaml post /resources/files/{id}/favorite","href":"/api-reference/files/favorite-or-unfavorite-a-file"},{"title":"Resolve a file to the job that created it","deprecated":null,"version":null,"openapi":"/openapi.yaml post /lineage","href":"/api-reference/lineage/resolve-a-file-to-the-job-that-created-it"}]},{"group":"Folders","pages":[{"title":"List folders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workspaces","href":"/api-reference/folders/list-folders"},{"title":"Create a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workspaces","href":"/api-reference/folders/create-a-folder"},{"title":"Get a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workspaces/{id}","href":"/api-reference/folders/get-a-folder"},{"title":"Rename a folder or change its slug","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /workspaces/{id}","href":"/api-reference/folders/rename-a-folder-or-change-its-slug"},{"title":"List files in a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml get /workspaces/{id}/files","href":"/api-reference/folders/list-files-in-a-folder"},{"title":"Add files to a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml post /workspaces/{id}/files","href":"/api-reference/folders/add-files-to-a-folder"},{"title":"Remove a file from a folder","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /workspaces/{id}/files/{file_id}","href":"/api-reference/folders/remove-a-file-from-a-folder"}]},{"group":"Templates","pages":[{"title":"Browse and search templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates","href":"/api-reference/templates/browse-and-search-templates"},{"title":"List template tags","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/tags","href":"/api-reference/templates/list-template-tags"},{"title":"Get a template","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/{id}","href":"/api-reference/templates/get-a-template"},{"title":"Increment the use counter","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates/{id}/use","href":"/api-reference/templates/increment-the-use-counter"},{"title":"Render a template to video","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates/{id}/render","href":"/api-reference/templates/render-a-template-to-video"},{"title":"Publish a document as a template","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates","href":"/api-reference/templates/publish-a-document-as-a-template"},{"title":"Withdraw a template","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /templates/{id}","href":"/api-reference/templates/withdraw-a-template"},{"title":"List your templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/my","href":"/api-reference/templates/list-your-templates"},{"title":"List your favorite templates","deprecated":null,"version":null,"openapi":"/openapi.yaml get /templates/favorites","href":"/api-reference/templates/list-your-favorite-templates"},{"title":"Toggle favorite","deprecated":null,"version":null,"openapi":"/openapi.yaml post /templates/{id}/favorite","href":"/api-reference/templates/toggle-favorite"}]},{"group":"Pricing \u0026 Billing","pages":[{"title":"Estimate a price without creating a job","deprecated":null,"version":null,"openapi":"/openapi.yaml post /estimate","href":"/api-reference/pricing/estimate-a-price-without-creating-a-job"},{"title":"Get the price catalog (public)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /pricing","href":"/api-reference/pricing/get-the-price-catalog-public"},{"title":"Get balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /billing/balance","href":"/api-reference/billing/get-balance"},{"title":"Get usage records","deprecated":null,"version":null,"openapi":"/openapi.yaml get /billing/usage","href":"/api-reference/billing/get-usage-records"},{"title":"Get transaction ledger","deprecated":null,"version":null,"openapi":"/openapi.yaml get /billing/transactions","href":"/api-reference/billing/get-transaction-ledger"}]},{"group":"Analytics","pages":[{"title":"Spend summary","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/summary","href":"/api-reference/analytics/spend-summary"},{"title":"Spend over time","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/timeseries","href":"/api-reference/analytics/spend-over-time"},{"title":"Spend breakdown","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/breakdown","href":"/api-reference/analytics/spend-breakdown"},{"title":"List charges or runs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/activity","href":"/api-reference/analytics/list-charges-or-runs"},{"title":"Files generated over time","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/files","href":"/api-reference/analytics/files-generated-over-time"},{"title":"Analytics definitions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /analytics/meta","href":"/api-reference/analytics/analytics-definitions"}]},{"group":"Account","pages":[{"title":"Get the authenticated account","deprecated":null,"version":null,"openapi":"/openapi.yaml get /me","href":"/api-reference/account/get-the-authenticated-account"},{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api-keys","href":"/api-reference/account/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api-keys","href":"/api-reference/account/create-an-api-key"},{"title":"Rename an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /api-keys/{id}","href":"/api-reference/account/rename-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /api-keys/{id}","href":"/api-reference/account/revoke-an-api-key"},{"title":"Reveal an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api-keys/{id}/reveal","href":"/api-reference/account/reveal-an-api-key"},{"title":"List who an API key is shared with","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api-keys/{id}/shares","href":"/api-reference/account/list-who-an-api-key-is-shared-with"},{"title":"Share an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api-keys/{id}/shares","href":"/api-reference/account/share-an-api-key"},{"title":"Remove someone from an API key","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /api-keys/{id}/shares/{userId}","href":"/api-reference/account/remove-someone-from-an-api-key"},{"title":"Get a connection's team binding","deprecated":null,"version":null,"openapi":"/openapi.yaml get /me/connection","href":"/api-reference/account/get-a-connections-team-binding"},{"title":"Set a connection's team binding","deprecated":null,"version":null,"openapi":"/openapi.yaml put /me/connection","href":"/api-reference/account/set-a-connections-team-binding"}]}]}]},"basePath":"","title":"Get a file with lineage - varg","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}