---
title: "Get Attachments"
method: GET
path: "/attachments"
tags: ["provider", "scribe", "attachments"]
---

# Get Attachments

`GET /attachments`

Return all attachments for a single local day, with optional patient filtering.

If patient_id is provided, returns attachments for that patient only.
Otherwise, returns all attachments.
Returns attachments grouped by day with pagination support.

## Query parameters

- `tz` string, required
- `date` string, date, nullable
- `patient_id` string, nullable

## Headers

- `TENANT` string, required
- `API-KEY` string, required

## Response `200`

Successful Response

- AttachmentDayPage — Represents a single day page of attachments for infinite scrolling by date. - date: The local day these attachments belong to (based on provided tz) - data: All attachments created on that day - next_date: The previous day (if any) that contains at least one attachment under the same inclusion rules, to be used as the cursor for the next page.
  - `date` string, date, required
  - `data` NoteAttachmentResponse[], required
    - `id` string, required
    - `noteId` string, nullable
    - `gcsPath` string, required
    - `originalFilename` string, required
    - `signedUrl` string, required
    - `thumbnailSignedUrl` string, nullable
    - `annotations` object[], nullable
    - `name` string, required
    - `createdDate` string, date-time, required
    - `patient` PatientSummary
      - `id` string, required — The unique identifier for the user.
      - `firstName` string, nullable — The user's first name.
      - `lastName` string, nullable — The user's last name.
      - `phoneNumber` string, nullable — The user's phone number.
      - `email` string, nullable — The user's email address.
      - `type` 'PROVIDER' | 'PATIENT' | 'ASSISTANT', required
      - `locationId` string, nullable — The location of the user.
      - `externalId` string, nullable — The user's external identifier if available.
      - `address` string, nullable — The user's primary address.
      - `addressLineTwo` string, nullable — Additional address information.
      - `city` string, nullable — The city of the user's address.
      - `state` string, nullable — The state of the user's address.
      - `zipCode` string, nullable — The postal code of the user's address.
      - `country` string, nullable — The country of the user's address.
      - `createdDate` string, date-time, required — The date and time when the user was created.
      - `addressValid` boolean, nullable — Whether the user's address is valid.
      - `meta` object, nullable — Any additional metadata about the user relevant to your system.
      - `isArchived` boolean, nullable — Whether the user is archived.
      - `primaryLocationId` string, nullable — The primary location of the user.
      - `gender` string, nullable — The gender of the patient.
      - `dateOfBirth` string, date, nullable — The date of birth of the patient.
      - `patientMedications` string[], nullable — List of patient's self-reported medications.
      - `onSchedulingBlacklist` boolean, nullable — Whether the patient is on the scheduling blacklist.
      - `surchargeDisabled` boolean, nullable — Whether surcharges are disabled for this patient.
      - `tags` PatientTagSummary[], nullable — List of patient tags
        - `id` string, required — Unique identifier for the patient tag
        - `name` string, required — Name of the patient tag
        - `emoji` string, nullable — Emoji associated with the tag
        - `color` string, nullable — Color code for the tag (hex format)
        - `isActive` boolean, required — Whether the tag is active
        - `createdDate` string, date-time, required — Date and time when the tag was created
        - `updatedDate` string, date-time, nullable — Date and time when the tag was last updated
      - `creditBalance` integer, nullable — Patient's credit balance in cents.
      - `preferredProviderId` string, nullable — The preferred provider ID for this patient.
    - `note` NoteAttachmentNote
      - `id` string, required
      - `createdDate` string, date-time, required
  - `nextDate` string, date, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/decodahealth/apis/decoda-api.md) · [All operations](https://skmtc.dev/decodahealth/apis/decoda-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decodahealth/decoda-api/revisions/4939a65a89d2/schema)
