---
title: "GET /api/v1/attachments/{attachment}"
method: GET
path: "/api/v1/attachments/{attachment}"
tags: ["AttachmentService"]
---

# GET /api/v1/attachments/{attachment}

`GET /api/v1/attachments/{attachment}`

GetAttachment returns an attachment by name.

## Path parameters

- `attachment` string, required

## Response `200`

OK

- Attachment
  - `name` string — The name of the attachment. Format: attachments/{attachment}
  - `createTime` string, date-time — Output only. The creation timestamp.
  - `filename` string, required — The filename of the attachment.
  - `content` string, bytes — Input only. The content of the attachment.
  - `externalLink` string — Optional. The external link of the attachment.
  - `type` string, required — The MIME type of the attachment.
  - `size` string — Output only. The size of the attachment in bytes.
  - `memo` string — Optional. The related memo. Refer to `Memo.name`. Format: memos/{memo}
  - `motionMedia` MotionMedia
    - `family` 'MOTION_MEDIA_FAMILY_UNSPECIFIED' | 'APPLE_LIVE_PHOTO' | 'ANDROID_MOTION_PHOTO', enum
    - `role` 'MOTION_MEDIA_ROLE_UNSPECIFIED' | 'STILL' | 'VIDEO' | 'CONTAINER', enum
    - `groupId` string
    - `presentationTimestampUs` string
    - `hasEmbeddedVideo` boolean
  - `mediaMetadata` MediaMetadata
    - `width` integer
    - `height` integer
    - `photo` PhotoMetadata
      - `captureTime` MediaCaptureTime
        - `localDateTime` string
        - `utcOffset` string
      - `location` MediaLocation
        - `latitude` number, double
        - `longitude` number, double
        - `altitudeMeters` number, double
      - `sourceExifOrientation` integer
      - `cameraMake` string
      - `cameraModel` string
      - `lensModel` string
      - `fNumber` number, double
      - `exposureTimeSeconds` number, double
      - `iso` integer
      - `focalLengthMm` number, double
    - `video` VideoMetadata
      - `durationSeconds` number, double

## Other responses

- `default` — Default error response

---

[API](https://skmtc.dev/usememos/apis/untitled-api.md) · [All operations](https://skmtc.dev/usememos/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usememos/untitled-api/revisions/9f2688df7c2e/schema)
