GET /files/{file_id}
Return one file's metadata and download link.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| GET | /v1/files/{file_id} |
Includes the gated dashboard URL and a short-lived presigned `download_url`. To fetch the bytes locally, call this and then GET download_url immediately — the JSON API never carries the file. The CLI's `agent file get` wraps exactly that two-step.
Path parameters
file_idstringrequired
curl "https://api.ellipsis.dev/v1/files/{file_id}" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.files.get("...")
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.files.get('...');
console.log(result);Request
Response
Example response · 200
{
"download_url": "string",
"url": "string"
}