---
title: "Compact Job Create Endpoint"
method: POST
path: "/v1/compact/jobs"
---

# Compact Job Create Endpoint

`POST /v1/compact/jobs`

## Request body

- CapsuleRequest
  - `lines` LineRecord[], required
    - `line_id` integer, required
    - `message` string, required
    - `level` string, nullable
    - `timestamp` string, nullable
    - `service` string, nullable
  - `metadata` object, nullable

## Response `200`

Successful Response

- CompactJobCreateResponse
  - `job_id` string, required
  - `status` string, required
  - `poll_url` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-12** `8540ec6c1778` — 1 warning
  - removed the request property `engine`

[Change history](https://skmtc.dev/codag/apis/infra-logs-templater/changes/v1/compact/jobs/post.md)

---

[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-service-production.skmtc.workers.dev/v1/apis/codag/infra-logs-templater/revisions/debf0c8211bc/schema)
