---
title: "Compact Job Get Endpoint"
method: GET
path: "/v1/compact/jobs/{job_id}"
---

# Compact Job Get Endpoint

`GET /v1/compact/jobs/{job_id}`

## Request

- Base URL: `https://api.codag.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.codag.ai/v1/compact/jobs/{job_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/codag/apis/infra-logs-templater/docs/v1/compact/jobs/:job_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `job_id` string, required

## Response `200`

Successful Response

- CompactJobResponse
  - `job_id` string, required
  - `status` string, required
  - `text` string, nullable
  - `stats` ParseStats
    - `llm_calls` integer, required
    - `cache_hits` integer, required
    - `unmatched` integer, required
    - `elapsed_ms` integer, required
    - `incident_family_hits` integer
    - `incident_induced_templates` integer
    - `global_cache_hits` integer
    - `global_shadow_hits` integer
    - `global_shadow_agreements` integer
    - `global_shadow_disagreements` integer
    - `total_patterns` integer
    - `candidate_patterns` integer
    - `dropped_patterns` integer
    - `cache_pattern_hits` integer
    - `global_cache_pattern_hits` integer
  - `error` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codag/apis/infra-logs-templater.md) - [All operations](https://skmtc.dev/codag/apis/infra-logs-templater/llms.txt) - [OpenAPI document](https://skmtc.dev/codag/apis/infra-logs-templater/revisions/debf0c8211bc?raw)
