Skip to content
Select themeSelect language

post_api_memories_reviews_comprehensive

POST
/api/memories/reviews/comprehensive
curl --request POST \
--url https://example.com/api/memories/reviews/comprehensive \
--header 'Content-Type: application/json' \
--data '{ "limit": 1, "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
Media typeapplication/json

#708 C2 (CO-3) — request for the Tier-3 COMPREHENSIVE (multi-task retro) closeout.

object
limit

How many recent outcomes to consider. The proposer clamps to its own window (MAX_MERGED_OUTCOMES); omitted defaults to that window.

integer | null format: int64
project_id

Scope the retro to ONE project’s recent outcomes (proposed_project_id on the filed record); omitted = the whole workspace.

string | null format: uuid
Examplegenerated
{
"limit": 1,
"project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Comprehensive closeout proposal result

Media typeapplication/json

#708 C2 (CO-3) — the result of a comprehensive-closeout proposal. status is one of proposed | not_enough_outcomes | synthesis_unavailable; item is the created review row on proposed; reason names the degraded-synthesis cause otherwise.

object
item
One of:
null
reason
string | null
status
required
string
Examplegenerated
{
"item": {
"action": "example",
"applied_memory_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"created_at": "2026-04-15T12:00:00Z",
"created_by": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"evidence": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"proposed_importance": 1,
"proposed_memory_kind": "example",
"proposed_pinned": true,
"proposed_project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"proposed_scope": "example",
"proposed_text": "example",
"reason": "example",
"related_memory_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"reviewed_at": "2026-04-15T12:00:00Z",
"reviewed_by": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"source_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"source_type": "example",
"status": "example",
"target_memory_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"updated_at": "2026-04-15T12:00:00Z",
"workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
},
"reason": "example",
"status": "example"
}

Structured client error

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Authentication required

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Permission denied (admin + autonomy floor)

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Structured server error

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}