---
title: "Get file or package repository items by their IDs."
method: POST
path: "/rest/manager/files/getrepoitems"
tags: ["Files APIs"]
---

# Get file or package repository items by their IDs.

`POST /rest/manager/files/getrepoitems`

## Request

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

This endpoint retrieves repository items based on their IDs. It expects a list of repository item IDs (repos) in the request body. The method first checks the user's permissions to ensure proper authorization. It then retrieves the list of repository file metadata. The response contains a JSON array of repository file metadata representing the requested items.

## Request body

- string[]: names of the repository items to retrieve

## Response `200`

Successful response

- GetRepoItemsResponse
  - `data` GetRepoItemsData
    - `packages` RepositoryFileMetaData[]
      - `repositoryFileMetaDataID` string
      - `fileID` string
      - `fileName` string
      - `fileLocation` string
      - `ownerUser` string
      - `ownerDomain` string
      - `lastEditorUser` string
      - `privateFile` boolean
      - `fileDesc` string
      - `fileAction` string
      - `arguments` string
      - `properties` object
      - `color` string
      - `fontIcon` string
      - `creationDate` string, date-time
      - `lastUpdate` string, date-time
  - `@class` string, required

## 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)
