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

# Get latest security scan

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

## Request

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

Returns the most recent security scan for a skill with its letter grade (`A`-`F`), score, and finding count. Public callers see summary data only; the skill's author or a platform admin also receives the detailed findings. Returns `null` if the skill has never been scanned.

## 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, nullable: Latest security scan, or null if the skill has never been scanned. Public callers receive the summary only (no findings); the skill author or a platform admin also receives the findings array.
  - `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)
