MemoService · MemoService_ListMemos
Access
Anonymous calls are allowed only when the instance permits public access. Authenticated calls remain subject to resource visibility and operation-specific filtering.
Feed scope and filters
This list excludes comments and defaults to NORMAL state. ARCHIVED returns only the caller's own archived memos. showDeleted is declared by the protocol but is not implemented as a recycle-bin query; deletion is permanent. Filter timestamps are created_ts/updated_ts, while orderBy uses create_time/update_time. A named space filter requires membership in that space. Use the returned pagination token without decoding or constructing it.
curl --fail-with-body --get \
-H "Authorization: Bearer $MEMOS_TOKEN" \
--data-urlencode "pageSize=20" \
--data-urlencode 'filter=pinned == true' \
--data-urlencode "orderBy=update_time desc" \
"$MEMOS_URL/api/v1/memos"Request
ListMemos lists readable non-comment memos with pagination and filter.
/api/v1/memosParameters
| Name / location | Type / requirement | Description |
|---|---|---|
pageSizequery | integer (int32) Not marked required in OpenAPI | Optional. The maximum number of memos to return. The service may return fewer than this value. If unspecified, at most 50 memos will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
pageTokenquery | string Not marked required in OpenAPI | Optional. A page token, received from a previous `ListMemos` call. Provide this to retrieve the subsequent page. |
statequery | string (enum)STATE_UNSPECIFIED · NORMAL · ARCHIVEDNot marked required in OpenAPI | Optional. The state of the memos to list. Default to `NORMAL`. Set to `ARCHIVED` to list archived memos. |
orderByquery | string Not marked required in OpenAPI | Optional. The order to sort results by. Default to "create_time desc". Supports comma-separated list of fields following AIP-132. Example: "pinned desc, create_time desc" or "update_time asc" Supported fields: pinned, create_time, update_time, name. Note: order_by uses create_time / update_time, while the filter expression uses created_ts / updated_ts for the same timestamps. |
filterquery | string Not marked required in OpenAPI | Optional. A CEL expression to filter memos. Combine terms with && and ||. Available fields: content (string), creator (string, e.g. "users/1"), created_ts / updated_ts (timestamp), pinned (bool), visibility (string: PRIVATE | PROTECTED | PUBLIC | SPACE), space (string resource name, or null when the memo has no space; supports == and comparisons against null, e.g. space != null), tags (list<string>; match with `"work" in tags`, not `tag == "work"`), has_task_list / has_link / has_code / has_incomplete_tasks (bool), has_location (bool; true when the memo has a location attached). Note: the time fields here are created_ts / updated_ts, which differ from the create_time / update_time names used by order_by. Examples: pinned == true && visibility == "PUBLIC" space == "spaces/team" or space == null tags.exists(t, t == "urgent") content.contains("roadmap") && created_ts > now - duration("168h") |
showDeletedquery | boolean Not marked required in OpenAPI | Optional. If true, show deleted memos in the response. |
Request body
No request body is declared.
Responses
200 · OK
application/json · ListMemosResponse
default · Default error response
application/json · Status
Complete operation definition
All declared constraints, media types and response details are retained below. Schema references link to their complete definitions.
Open JSON definition
{
"tags": [
"MemoService"
],
"description": "ListMemos lists readable non-comment memos with pagination and filter.",
"operationId": "MemoService_ListMemos",
"parameters": [
{
"name": "pageSize",
"in": "query",
"description": "Optional. The maximum number of memos to return.\n The service may return fewer than this value.\n If unspecified, at most 50 memos will be returned.\n The maximum value is 1000; values above 1000 will be coerced to 1000.",
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "pageToken",
"in": "query",
"description": "Optional. A page token, received from a previous `ListMemos` call.\n Provide this to retrieve the subsequent page.",
"schema": {
"type": "string"
}
},
{
"name": "state",
"in": "query",
"description": "Optional. The state of the memos to list.\n Default to `NORMAL`. Set to `ARCHIVED` to list archived memos.",
"schema": {
"enum": [
"STATE_UNSPECIFIED",
"NORMAL",
"ARCHIVED"
],
"type": "string",
"format": "enum"
}
},
{
"name": "orderBy",
"in": "query",
"description": "Optional. The order to sort results by.\n Default to \"create_time desc\".\n Supports comma-separated list of fields following AIP-132.\n Example: \"pinned desc, create_time desc\" or \"update_time asc\"\n Supported fields: pinned, create_time, update_time, name.\n Note: order_by uses create_time / update_time, while the filter\n expression uses created_ts / updated_ts for the same timestamps.",
"schema": {
"type": "string"
}
},
{
"name": "filter",
"in": "query",
"description": "Optional. A CEL expression to filter memos. Combine terms with && and ||.\n Available fields:\n content (string), creator (string, e.g. \"users/1\"),\n created_ts / updated_ts (timestamp), pinned (bool),\n visibility (string: PRIVATE | PROTECTED | PUBLIC | SPACE),\n space (string resource name, or null when the memo has no space;\n supports == and comparisons against null, e.g. space != null),\n tags (list<string>; match with `\"work\" in tags`, not `tag == \"work\"`),\n has_task_list / has_link / has_code / has_incomplete_tasks (bool),\n has_location (bool; true when the memo has a location attached).\n Note: the time fields here are created_ts / updated_ts, which differ from\n the create_time / update_time names used by order_by.\n Examples:\n pinned == true && visibility == \"PUBLIC\"\n space == \"spaces/team\" or space == null\n tags.exists(t, t == \"urgent\")\n content.contains(\"roadmap\") && created_ts > now - duration(\"168h\")",
"schema": {
"type": "string"
}
},
{
"name": "showDeleted",
"in": "query",
"description": "Optional. If true, show deleted memos in the response.",
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListMemosResponse"
}
}
}
},
"default": {
"description": "Default error response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Status"
}
}
}
}
}
}