---
title: "getFiles"
method: GET
path: "/getFiles"
tags: ["Hotel"]
---

# getFiles

`GET /getFiles`

Returns a list of files attached to a hotel or group profile, ordered by creation date

## Query parameters

- `propertyID` string
- `groupCode` string
- `sortBy` 'name' | 'type' | 'source' | 'date'
- `orderBy` 'desc' | 'asc'
- `name` string
- `pageNumber` integer
- `pageSize` integer

## Response `200`

200 Response

- GetFilesResponse
  - `success` boolean — Returns if the request could be completed
  - `data` object[] — Files linked to the property
    - `fileID` string — File's unique identifier
    - `name` string — File Name
    - `type` string — File Type
    - `source` string — File Source
    - `dateCreated` string, date-time — File creation date
    - `url` string — File's URL to download
  - `count` integer — Number of results returned
  - `total` integer — Total number of results for supplied parameters
  - `message` string, nullable — To be used in case any error occurs (if success = false). If success = true, it does not exist.

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
