---
title: "Changes to Compact context"
method: POST
path: "/v1/compact"
---

# Changes to Compact context

`POST /v1/compact`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 11 revisions.

- **2026-08-13** `b9a74274b2ab`: 2 warning, 21 info

## Changes

- **2026-08-13** `b9a74274b2ab`: 2 warning, 21 info
  - removed the optional property `error/type` from the response with the `400` status
  - removed the optional property `error/type` from the response with the `401` status
  - api operation id `createCompaction` was added
  - the endpoint scheme security `bearerAuth` was added to the API
  - api tag `compact` added
  - added the non-success response with the status `429`
  - added the non-success response with the status `500`
  - removed the non-success response with the status `503`
  - removed the non-success response with the status `504`
  - the response property `error/code` became required for the status `400`
  - the response property `error/code` became required for the status `401`
  - the response property `error/message` became required for the status `400`
  - the response property `error/message` became required for the status `401`
  - the response property `messages/items/compacted_line_ranges/items/end` became required for the status `200`
  - the response property `messages/items/compacted_line_ranges/items/start` became required for the status `200`
  - the response property `messages/items/content` became required for the status `200`
  - the response property `messages/items/kept_line_ranges/items/end` became required for the status `200`
  - the response property `messages/items/kept_line_ranges/items/start` became required for the status `200`
  - the response property `messages/items/role` became required for the status `200`
  - the response property `usage/compression_ratio` became required for the status `200`
  - the response property `usage/input_tokens` became required for the status `200`
  - the response property `usage/output_tokens` became required for the status `200`
  - the response property `usage/processing_time_ms` became required for the status `200`

---

[Operation](https://skmtc.dev/morphllm/apis/morph-api/docs/v1/compact/post.md) - [API](https://skmtc.dev/morphllm/apis/morph-api.md) - [Page](https://skmtc.dev/morphllm/apis/morph-api/changes/v1/compact/post)
