---
title: "Get a list of repository file (or package) metadata."
method: GET
path: "/rest/manager/files/getfiles"
tags: ["Files APIs"]
---

# Get a list of repository file (or package) metadata.

`GET /rest/manager/files/getfiles`

## Request

- Base URL: `https://masonconsole.com`
- URL: `https://masonconsole.com/rest/manager/files/getfiles`
- Auth: HTTP bearer

This endpoint retrieves a list of repository file metadata. It first checks the user's permissions to ensure proper authorization. The API then retrieve the list of repository file metadata. The response is a JSON array containing information about each file (or package), including details such as file name, size, creation date, and other relevant metadata.

## Response `200`

Successful response

- GetFilesResponse[]
  - `repositoryFileMetaDataID` string
  - `fileID` string
  - `fileName` string
  - `fileLocation` string
  - `ownerUser` string
  - `ownerDomain` string
  - `lastEditorUser` string
  - `privateFile` boolean
  - `fileDesc` string
  - `fileAction` string
  - `arguments` string
  - `properties` FilePropertiesData
  - `color` string
  - `fontIcon` string
  - `creationDate` integer
  - `lastUpdate` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal server error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/bymason/apis/mason-device-console-api-docs.md) - [All operations](https://skmtc.dev/bymason/apis/mason-device-console-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/bymason/apis/mason-device-console-api-docs/revisions/d9cdcc14b7d1?raw)
