Skip to main content

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.

MethodPathSummary
GET/skill-scansList 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:

NameInTypeRequiredDescription
subject_typequeryenum: "skill", "plugin" or nullNoOnly uploaded skills (skill) or marketplace plugins (plugin)
subject_idquerystring or nullNoOnly the scans of this skill or plugin id
statusqueryenum: "passed", "manifest_only", "blocked", "failed_closed", "failed_open", "no_guardrails" or nullNoOnly scans that ended with this status
limitqueryintegerNoMost scans to return

Example request:

curl -X GET "http://localhost:4000/skill-scans" \
-H "Authorization: Bearer $SPANWAY_API_KEY"

Responses:

StatusDescriptionBody
200Scan results, newest firstapplication/json SkillScanList
401No valid key or Admin UI session was presentedapplication/json ProxyError
403The key is not a proxy admin or admin viewer key and no custom role grants the routeapplication/json ErrorDetail
422Validation Errorapplication/json HTTPValidationError
500The gateway runs without a databaseapplication/json ErrorDetail

Response fields (200):

FieldTypeRequiredDescription
scansarray of SkillScanRecordYesScans, newest first