Get File
curl --request GET \
--url http://localhost:8080/namespaces/{namespace_name}/files/{file_id}import requests
url = "http://localhost:8080/namespaces/{namespace_name}/files/{file_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/namespaces/{namespace_name}/files/{file_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/namespaces/{namespace_name}/files/{file_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/namespaces/{namespace_name}/files/{file_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/namespaces/{namespace_name}/files/{file_id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/namespaces/{namespace_name}/files/{file_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"file": {
"file_id": "a1b2c3d4e5f67890",
"absolute_path": "/uploads/document.pdf",
"filename": "document.pdf",
"file_type": ".pdf",
"file_size": 125440,
"file_mtime": "2026-06-05T18:50:08Z",
"chunk_count": 3,
"summary_count": 1,
"status": "indexed",
"path_exists": true,
"ingested_at": "2026-06-05T18:50:20Z",
"last_error": null,
"metadata": { "department": "engineering" }
}
}
File storage
Get File
Get one indexed file record by file_id.
GET
/
namespaces
/
{namespace_name}
/
files
/
{file_id}
Get File
curl --request GET \
--url http://localhost:8080/namespaces/{namespace_name}/files/{file_id}import requests
url = "http://localhost:8080/namespaces/{namespace_name}/files/{file_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/namespaces/{namespace_name}/files/{file_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/namespaces/{namespace_name}/files/{file_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/namespaces/{namespace_name}/files/{file_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/namespaces/{namespace_name}/files/{file_id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/namespaces/{namespace_name}/files/{file_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"file": {
"file_id": "a1b2c3d4e5f67890",
"absolute_path": "/uploads/document.pdf",
"filename": "document.pdf",
"file_type": ".pdf",
"file_size": 125440,
"file_mtime": "2026-06-05T18:50:08Z",
"chunk_count": 3,
"summary_count": 1,
"status": "indexed",
"path_exists": true,
"ingested_at": "2026-06-05T18:50:20Z",
"last_error": null,
"metadata": { "department": "engineering" }
}
}
Overview
Returns a single file registry entry for a text namespace.Path parameters
Text namespace.
File id from List files or a file upload job.
Request example
curl "http://localhost:8080/namespaces/my-documents/files/a1b2c3d4e5f67890"
Response fields
"success" on success.Same fields as each entry in List files.
{
"status": "success",
"file": {
"file_id": "a1b2c3d4e5f67890",
"absolute_path": "/uploads/document.pdf",
"filename": "document.pdf",
"file_type": ".pdf",
"file_size": 125440,
"file_mtime": "2026-06-05T18:50:08Z",
"chunk_count": 3,
"summary_count": 1,
"status": "indexed",
"path_exists": true,
"ingested_at": "2026-06-05T18:50:20Z",
"last_error": null,
"metadata": { "department": "engineering" }
}
}
Errors
| HTTP | Cause |
|---|---|
| 404 | Namespace or file_id not found |
Related
Was this page helpful?
⌘I