GET
/api/v1/attachments/{attachment}Get an attachment
Retrieves an attachment by its identifier. Use the attachment path value to select the attachment you want to retrieve.
attachmentstringrequired
The identifier of the attachment to retrieve.
200Returns the attachment, including its name, filename, type, and available metadata.
namestringoptional
The name of the attachment.
Format: attachments/{attachment}
createTimestringoptional
Output only. The creation timestamp.
filenamestringrequired
The filename of the attachment.
contentstringoptional
Input only. The content of the attachment.
externalLinkstringoptional
Optional. The external link of the attachment.
typestringrequired
The MIME type of the attachment.
sizestringoptional
Output only. The size of the attachment in bytes.
memostringoptional
Optional. The related memo. Refer to `Memo.name`.
Format: memos/{memo}
motionMediaobjectoptional
Optional. Motion media metadata.
mediaMetadataobjectoptional
Optional. Immutable normalized media metadata explicitly supplied by the client at creation time.
creatorstringoptional
Output only. The user who uploaded this attachment, which may differ from
the creator of the linked memo. Format: users/{user}.
defaultReturned when the request fails; includes an error code, a developer-facing message, and optional structured details.
codeintegeroptional
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
messagestringoptional
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
detailsarray<object>optional
A list of messages that carry the error details. There is a common set of message types for APIs to use.
Error handling
The attachment path parameter must identify the attachment to retrieve.
