Skip to content
Select themeSelect language

get_api_memories_closeouts

GET
/api/memories/closeouts
curl --request GET \
--url https://example.com/api/memories/closeouts
project_id
string format: uuid

Scope to ONE project’s closeout records (proposed_project_id); omitted = the whole workspace.

status
string

pending | approved | rejected | all (default all — history spans every decided state, unlike the review INBOX which defaults to pending).

limit
integer format: int64
offset
integer format: int64

Server-paginated, project-keyable closeout history

Media typeapplication/json

#708 C2 (CO-5) — one server-paginated page of closeout records + the total match count (drives the pager). Mirrors the {items, total} board contract.

object
items
required
Array<object>
object
action
required
string
applied_memory_id
string | null format: uuid
created_at
required
string format: date-time
created_by
string | null format: uuid
evidence
required
id
required
string format: uuid
proposed_importance
number | null format: double
proposed_memory_kind
string | null
proposed_pinned
boolean | null
proposed_project_id
string | null format: uuid
proposed_scope
string | null
proposed_text
string | null
reason
string | null
related_memory_id
string | null format: uuid
reviewed_at
string | null format: date-time
reviewed_by
string | null format: uuid
source_id
string | null format: uuid
source_type
required
string
status
required
string
target_memory_id
string | null format: uuid
updated_at
required
string format: date-time
workspace_id
required
string format: uuid
total
required
integer format: int64
Examplegenerated
{
"items": [
{
"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"
}
],
"total": 1
}

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

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"
}