List Memos
ListMemos lists memos with pagination and filter.
Query Parameters
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.
int32Optional. A page token, received from a previous ListMemos call.
Provide this to retrieve the subsequent page.
Optional. The state of the memos to list.
Default to NORMAL. Set to ARCHIVED to list archived memos.
enum"STATE_UNSPECIFIED" | "NORMAL" | "ARCHIVED"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.
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),
tags (list; match with "work" in tags, not tag == "work"),
has_task_list / has_link / has_code / has_incomplete_tasks (bool).
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"
tags.exists(t, t == "urgent")
content.contains("roadmap") && created_ts > now - duration("168h")
Optional. If true, show deleted memos in the response.
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/memos"{
"memos": [
{
"name": "string",
"state": "STATE_UNSPECIFIED",
"creator": "string",
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z",
"content": "string",
"visibility": "VISIBILITY_UNSPECIFIED",
"tags": [
"string"
],
"pinned": true,
"attachments": [
{
"name": "string",
"createTime": "2019-08-24T14:15:22Z",
"filename": "string",
"content": "string",
"externalLink": "string",
"type": "string",
"size": "string",
"memo": "string",
"motionMedia": {
"family": "MOTION_MEDIA_FAMILY_UNSPECIFIED",
"role": "MOTION_MEDIA_ROLE_UNSPECIFIED",
"groupId": "string",
"presentationTimestampUs": "string",
"hasEmbeddedVideo": true
}
}
],
"relations": [
{
"memo": {
"name": "string",
"snippet": "string"
},
"relatedMemo": {
"name": "string",
"snippet": "string"
},
"type": "TYPE_UNSPECIFIED"
}
],
"reactions": [
{
"name": "string",
"creator": "string",
"contentId": "string",
"reactionType": "string",
"createTime": "2019-08-24T14:15:22Z"
}
],
"property": {
"hasLink": true,
"hasTaskList": true,
"hasCode": true,
"hasIncompleteTasks": true,
"title": "string"
},
"parent": "string",
"snippet": "string",
"location": {
"placeholder": "string",
"latitude": 0.1,
"longitude": 0.1
}
}
],
"nextPageToken": "string"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}List Memo Shares
ListMemoShares lists all share links for a memo. Requires authentication as the memo creator.
Set Memo Attachments
SetMemoAttachments replaces the full set of attachments on a memo with the provided list (not an append). Pass the complete desired set; an empty list clears all attachments. Idempotent.