GET /files/{file_id}

Return one file's metadata and download link.

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.

curl "https://api.ellipsis.dev/v1/files/{file_id}" \
  -H "Authorization: Bearer $ELLIPSIS_API_KEY"
{
  "download_url": "string",
  "file": {
    "content_type": "string",
    "created_at": "2026-01-01T00:00:00Z",
    "filename": "string",
    "id": "string",
    "session_id": "string",
    "size_bytes": 0
  },
  "url": "string"
}
No request body.
{
  "properties": {
    "download_url": {
      "type": "string"
    },
    "file": {
      "properties": {
        "content_type": {
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "type": "string"
        },
        "filename": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "session_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "size_bytes": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "filename",
        "content_type",
        "size_bytes",
        "created_at"
      ],
      "type": "object"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "file",
    "url",
    "download_url"
  ],
  "type": "object"
}

Request

Responses

On this page

No Headings
Schedule a demo