For agents
REST API
HTTP access for scripts, CI, and backends. Prefer MCP when the caller is a coding agent that needs to create projects.
Auth
Create an API key in Settings → API. Keys use the ss_live_ prefix. Send:
Authorization: Bearer ss_live_…
Keys support read and read_write abilities. See Keys & access.
Base paths
/api/v1/…— pinned version (use this in production)./api/…— latest version alias.
Examples below use https://staysecure.sh/api/v1.
Endpoints
| Method | Path | Notes |
|---|---|---|
GET |
/workspace |
Current workspace for the key. |
GET |
/projects |
List projects. |
GET |
/projects/{project} |
Project detail. |
PATCH |
/projects/{project} |
Update settings (read_write). |
DELETE |
/projects/{project} |
Delete project (read_write). |
GET |
/projects/{project}/scans |
List scans. |
POST |
/projects/{project}/scans |
Start a manual scan (read_write). |
GET |
/scans/{scan} |
Scan detail / status. |
GET |
/projects/{project}/findings |
List findings. |
GET |
/findings/{finding} |
Finding detail. |
PATCH |
/findings/{finding} |
Update status (read_write). |
GET |
/projects/{project}/reports |
List reports. |
GET |
/reports/{report} |
Report detail. |
GET |
/reports/{report}/download |
Download report payload. |
There is no POST /projects. To create a project from an agent, use MCP create_project.
curl examples
List projects
curl -sS https://staysecure.sh/api/v1/projects \
-H "Authorization: Bearer ss_live_…" \
-H "Accept: application/json"
Start a scan
curl -sS -X POST https://staysecure.sh/api/v1/projects/{project_id}/scans \
-H "Authorization: Bearer ss_live_…" \
-H "Accept: application/json"
Update a finding status
curl -sS -X PATCH https://staysecure.sh/api/v1/findings/{finding_id} \
-H "Authorization: Bearer ss_live_…" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"status":"resolved"}'
OpenAPI
When API docs are enabled for the environment, machine-readable schema is available via Scramble at /docs/api (and related export paths such as /docs/api.json). Use that for generated clients; use this page for the human overview.
Related: MCP, Keys & access, Findings & reports.