Get file details
const url = 'https://firma.company-gpt.com/companygpt/rag/api/files/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://firma.company-gpt.com/companygpt/rag/api/files/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Get metadata and full job history for a specific file
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“File UUID
Responses
Abschnitt betitelt „Responses“File details and job history
Response for GET /files/{fileId} (handlers.FileDetailResponse)
object
File metadata (mirrors handlers.FileInfo)
object
Unique file identifier
Original file name
Path in blob storage
File size in bytes
MIME type
File processing status
Associated collection ID
Associated collection name
ISO 8601 creation timestamp
ISO 8601 last update timestamp
ISO 8601 last indexing timestamp
Source-specific metadata (ACL fields, SharePoint item info, etc.); omitted/empty for files with no metadata
object
Full job history for this file (newest first)
Indexing job information (handlers.JobInfo)
object
Unique job identifier
Associated file ID
Name of the file being processed (list endpoint only)
Associated collection ID (list endpoint only)
Associated collection name (list endpoint only)
Job action type (JSON key is “type”; the Go field is named Action)
Current job status
Number of retries attempted
Maximum allowed retries
Error message if job failed
ISO 8601 creation timestamp
ISO 8601 start timestamp
ISO 8601 completion timestamp
1-based position in the global FIFO queue; present only for jobs currently in ‘queued’ status (list endpoint only)
Example
{ "file": { "status": "pending" }, "jobs": [ { "type": "index", "status": "queued" } ]}Unauthorized
object
Error message
Examplegenerated
{ "error": "example"}Access denied
object
Error message
Examplegenerated
{ "error": "example"}File not found
object
Error message
Examplegenerated
{ "error": "example"}