Skip to main content
POST
CLI

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
Example:

"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"

objectiveId
string
required

The ID of the objective. Supports "external_id:" prefix for external IDs.

Example:

"obj_01HXKD2E5NQM3T9AYWCFQAZGFV"

Body

application/json

Compact objective request — triggers compaction on a running objective.

compactionConfig
object

Optional compaction config override. When not set, uses the variation's compaction_config.

Response

OK

Compact objective response

contextWindow
object

The new context window created by the compaction