Skill scanning API
This page documents the 1 gateway endpoint tagged skill_scanning in the gateway's OpenAPI document. Every example targets a gateway on http://localhost:4000 and authenticates with the SPANWAY_API_KEY environment variable, which holds the master key or a virtual key that has access to the route. Request and response fields are taken from the schema the running gateway publishes at /openapi.json, and the same document is bundled with this site as openapi.json.
| Method | Path | Summary |
|---|---|---|
| GET | /skill-scans | List skill and plugin scan results |
Endpoints
GET /skill-scans
List skill and plugin scan results
The guardrail scan of every uploaded skill and marketplace plugin, newest first: which guardrails ran, the result for each file (SKILL.md, each bundled script and each form field) and whether the item was stored or refused. Refused uploads are listed too, with no skill id. Proxy admins, admin viewers and custom roles granted guardrails.read may call it, and it changes nothing.
Docs (https://docs.spanway.ai/docs/proxy/guardrails/skill_scanning)
Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
subject_type | query | enum: "skill", "plugin" or null | No | Only uploaded skills (skill) or marketplace plugins (plugin) |
subject_id | query | string or null | No | Only the scans of this skill or plugin id |
status | query | enum: "passed", "manifest_only", "blocked", "failed_closed", "failed_open", "no_guardrails" or null | No | Only scans that ended with this status |
limit | query | integer | No | Most scans to return |
Example request:
curl -X GET "http://localhost:4000/skill-scans" \
-H "Authorization: Bearer $SPANWAY_API_KEY"
Responses:
| Status | Description | Body |
|---|---|---|
| 200 | Scan results, newest first | application/json SkillScanList |
| 401 | No valid key or Admin UI session was presented | application/json ProxyError |
| 403 | The key is not a proxy admin or admin viewer key and no custom role grants the route | application/json ErrorDetail |
| 422 | Validation Error | application/json HTTPValidationError |
| 500 | The gateway runs without a database | application/json ErrorDetail |
Response fields (200):
| Field | Type | Required | Description |
|---|---|---|---|
scans | array of SkillScanRecord | Yes | Scans, newest first |