---
title: "Get Llm Proxy Import State"
method: GET
path: "/developer/llm-proxy-requests/import-state"
tags: ["Developer", "Developer - LLM Proxy"]
---

# Get Llm Proxy Import State

`GET /developer/llm-proxy-requests/import-state`

Importer health: watermark, ingestion lag, last error, orphan counts, table size.

The orphan counts are the point. A metrics line whose bodies never arrived and a
bodies line whose metrics never arrived are the two ways this importer can be
silently half-working, and neither shows up in a row count.

## Response `200`

Successful Response

- LLMProxyImportStateResponse — Importer health. The two orphan counts are how a silently half-working importer becomes visible.
  - `log_group` string, required
  - `last_event_at` string, date-time, nullable
  - `last_run_at` string, date-time, nullable
  - `last_run_status` string, nullable
  - `last_error` string, nullable
  - `last_events_scanned` integer, nullable
  - `last_rows_upserted` integer, nullable
  - `watermark_lag_seconds` number, nullable — now - last_event_at
  - `max_ingestion_lag_seconds` number, nullable — max(cw_ingested_at - logged_at) over the last 24h; must stay well under the overlap window
  - `rows_total` integer
  - `rows_missing_bodies` integer — Metrics line imported, bodies line never arrived
  - `rows_missing_metrics` integer — Bodies line imported, metrics line never arrived
  - `rows_unlinked` integer — Rows with a vapi_call_id that resolved to no call
  - `table_bytes` integer, nullable — pg_total_relation_size of llm_proxy_request
  - `import_enabled` boolean

---

[API](https://skmtc.dev/openintake/apis/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/4a81645b59f6/schema)
