---
title: "Get Files Health"
method: GET
path: "/internal/files/health"
tags: ["internal"]
---

# Get Files Health

`GET /internal/files/health`

## Request

- Base URL: `https://api.kobaltlabs.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kobaltlabs.com/internal/files/health`
- Auth: none declared

Return FileVersions rows that are stuck in processing or have
failed / not-started embedding, for active companies only.

## Query parameters

- `processing_age_minutes` integer

## Response `200`

Successful Response

- FilesHealthResponse
  - `items` FileHealthItem[], required
    - `upload_id` string, uuid, required
    - `file_id` string, uuid, required
    - `filename` string, nullable, required
    - `company_id` string, uuid, required
    - `company_name` string, nullable, required
    - `status` 'processing' | 'deleted' | 'in_use' | 'in_progress' | 'failed' | 'processing_skipped', required
    - `embed_state` 'COMPLETED' | 'IN_PROGRESS' | 'NOT_STARTED' | 'FAILED' | 'NOT_SUPPORTED' | 'CLEANUP_IN_PROGRESS', required
    - `uploaded_at` string, date-time, required
    - `minutes_since_uploaded` integer, required
    - `reasons` string[], required
    - `ocr_confidence` OcrConfidence, required: OCR confidence metrics captured during file processing. Stored on ``FileVersions.ocr_confidence`` (JSONB) and computed in ``backend.utils.ocr_confidence``. ``avg_confidence`` is the token-weighted mean across the whole file.
      - `avg_confidence` number, nullable, required
      - `pages_processed` integer, required
  - `processing_age_minutes` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-04** `816d6dca5096`: 1 warning
  - added the new `processing_skipped` enum value to the `items/items/status` response property for the response status `200`

[Operation history](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/changes/internal/files/health/get.md)

---

[API](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api.md) - [All operations](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/revisions/8587332d5e43?raw)
