---
title: "Get security scan history"
method: GET
path: "/api/v1/skills/{slug}/security/history"
tags: ["Security Scans"]
---

# Get security scan history

`GET /api/v1/skills/{slug}/security/history`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/api/v1/skills/{slug}/security/history`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Returns up to 50 past security scans for a skill, newest first. Public callers see grade, score, and finding count only; the skill's author or a platform admin also receives detailed findings.

## Path parameters

- `slug` string, required

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `scans` object[], required
    - `id` string, required
    - `skillId` string, required
    - `versionId` string, nullable, required
    - `grade` 'A' | 'B' | 'C' | 'D' | 'F', required
    - `score` number, required
    - `findingsCount` integer, required
    - `findings` object[]: Only present for the skill author or a platform admin.
      - `pattern` string, required
      - `severity` 'error' | 'warning' | 'info', required
      - `message` string, required
      - `matched` boolean, required
    - `scannedAt` string, date-time, required

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
