---
title: "Get security status"
method: GET
path: "/api/spaces/{namespace}/{repo}/scan"
tags: ["spaces"]
---

# Get security status

`GET /api/spaces/{namespace}/{repo}/scan`

Get the security status of a repo

## Path parameters

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

## Response `200`

The security status of the repo

- object
  - `scansDone` boolean, required
  - `filesWithIssues` object[], required
    - `path` string, required
    - `level` 'unscanned' | 'safe' | 'queued' | 'error' | 'caution' | 'suspicious' | 'unsafe', required

## Changes

- **2026-09-08** `bd17546f47b8` — 1 breaking
  - the `filesWithIssues/items/level` response's property type changed from no type to `string` for status `200`

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/spaces/:namespace/:repo/scan/get.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/2be5f0669ac6?raw)
