Memos

List Attachments

ListAttachments lists attachments linked to memos the caller can read, plus the caller's unlinked uploads.

GET
/api/attachments

Query Parameters

pageSize?integer

Optional. The maximum number of attachments to return. The service may return fewer. If unspecified, at most 50 attachments are returned. Values above 1000 are coerced to 1000.

Formatint32
pageToken?string

Optional. A page token from a previous call. Provide it to retrieve the next page.

filter?string

Optional. A CEL filter over the results. Example: mime_type == "image/png" or filename.contains("test"). Supported operators: ==, !=, <, <=, >, >=, : (contains), in. Supported fields: creator, filename, mime_type, create_time, memo_id, space. creator is the linked memo's creator, or the uploader for an unlinked attachment. It supports equality with a User resource name. space is the linked memo's Space resource name, or null when the attachment is unlinked or its memo has no space. It supports only a non-negated == comparison with a Space resource name or null.

orderBy?string

Optional. The order to sort results by, such as "create_time desc" or "filename asc". The service does not apply it yet.

Response Body

application/json

application/json

curl -X GET "https://example.com/api/attachments"
{  "attachments": [    {      "name": "string",      "creator": "string",      "filename": "string",      "type": "string",      "content": "string",      "externalLink": "string",      "motionMedia": {        "family": "MOTION_MEDIA_FAMILY_UNSPECIFIED",        "role": "MOTION_MEDIA_ROLE_UNSPECIFIED",        "groupId": "string",        "presentationTimestampUs": "string",        "hasEmbeddedVideo": true      },      "mediaMetadata": {        "width": 0,        "height": 0,        "photo": {          "captureTime": {            "localDateTime": "string",            "utcOffset": "string"          },          "location": {            "latitude": 0.1,            "longitude": 0.1,            "altitudeMeters": 0.1          },          "sourceExifOrientation": 0,          "cameraMake": "string",          "cameraModel": "string",          "lensModel": "string",          "fNumber": 0.1,          "exposureTimeSeconds": 0.1,          "iso": 0,          "focalLengthMm": 0.1        },        "video": {          "durationSeconds": 0.1        }      },      "memo": "string",      "size": "string",      "createTime": "2019-08-24T14:15:22Z"    }  ],  "nextPageToken": "string"}