---
title: "List paths info"
method: POST
path: "/api/models/{namespace}/{repo}/paths-info/{rev}"
tags: ["models"]
---

# List paths info

`POST /api/models/{namespace}/{repo}/paths-info/{rev}`

## Path parameters

- `namespace` string, required
- `repo` string, required
- `rev` string, required

## Request body

- object
  - `paths` union, required
    - string[]
    - string
  - `expand` union, required — Expand the response with the last commit and security file status
    - boolean
    - boolean

## Response `200`

List of paths in the repository

- object[]
  - `type` 'file' | 'directory' | 'unknown', required
  - `oid` string, required
  - `size` number, required
  - `lfs` object
    - `pointerSize` number, required
  - `xetHash` string
  - `path` string, required
  - `lastCommit` object
    - `id` string, required
    - `title` string, required
    - `date` string, required
  - `securityFileStatus` object
    - `status` 'unscanned' | 'safe' | 'queued' | 'error' | 'caution' | 'suspicious' | 'unsafe', required
    - `jFrogScan` object
      - `status` 'unscanned' | 'safe' | 'queued' | 'error' | 'caution' | 'suspicious' | 'unsafe', required
      - `message` string
      - `reportLink` string
      - `reportLabel` string
      - `pickleImports` object[]
        - `module` string, required
        - `name` string, required
        - `safety` 'innocuous' | 'suspicious' | 'dangerous', required
      - `version` string
    - `protectAiScan` object
      - `status` 'unscanned' | 'safe' | 'queued' | 'error' | 'caution' | 'suspicious' | 'unsafe', required
      - `message` string
      - `reportLink` string
      - `reportLabel` string
      - `pickleImports` object[]
        - `module` string, required
        - `name` string, required
        - `safety` 'innocuous' | 'suspicious' | 'dangerous', required
      - `version` string
    - `avScan` object, required
      - `status` 'unscanned' | 'safe' | 'queued' | 'error' | 'caution' | 'suspicious' | 'unsafe', required
      - `message` string
      - `reportLink` string
      - `reportLabel` string
      - `pickleImports` object[]
        - `module` string, required
        - `name` string, required
        - `safety` 'innocuous' | 'suspicious' | 'dangerous', required
      - `version` string
    - `pickleImportScan` object, required
      - `status` 'unscanned' | 'safe' | 'queued' | 'error' | 'caution' | 'suspicious' | 'unsafe', required
      - `message` string
      - `reportLink` string
      - `reportLabel` string
      - `pickleImports` object[]
        - `module` string, required
        - `name` string, required
        - `safety` 'innocuous' | 'suspicious' | 'dangerous', required
      - `version` string
    - `virusTotalScan` object
      - `status` 'unscanned' | 'safe' | 'queued' | 'error' | 'caution' | 'suspicious' | 'unsafe', required
      - `message` string
      - `reportLink` string
      - `reportLabel` string
      - `pickleImports` object[]
        - `module` string, required
        - `name` string, required
        - `safety` 'innocuous' | 'suspicious' | 'dangerous', required
      - `version` string

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/6ab9f7d9cfb5/schema)
