> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vigolium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vigolium API Reference

> Base URL: http://localhost:9002 (default). For detailed documentation on each endpoint category, see the individual reference pages below.

## Endpoint Index

### [Overview](https://docs.vigolium.com/api-references/overview.md)

Server startup, authentication, and general endpoints. The following routes are public (no auth):

| Method | Endpoint | Description |
| - | - | - |
| GET | `/` | Static UI |
| GET | `/health` | Health check |
| GET | `/server-info` | Server info (uptime, queue depth, totals) |
| GET | `/swagger/*` | Swagger UI |
| GET | `/metrics` | Prometheus metrics (response gated by `server.enable_metrics`) |
| POST | `/api/auth/login` | File-based login → bearer token |
| GET | `/api/info` | App info / build metadata |
| GET | `/api/user/info` | Current user |

### [HTTP Records](https://docs.vigolium.com/api-references/http-records.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/http-records` | List HTTP records (paginated, filterable) |
| GET | `/api/http-records/:uuid` | Get HTTP record detail |
| DELETE | `/api/http-records/:uuid` | Delete HTTP record |

### [Findings](https://docs.vigolium.com/api-references/findings.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/findings` | List findings (paginated, filterable) |
| GET | `/api/findings/:id` | Get finding detail |
| PATCH | `/api/findings/:id/status` | Update finding status (open/triaged/closed) |
| DELETE | `/api/findings/:id` | Delete finding |

### [Ingestion](https://docs.vigolium.com/api-references/ingestion.md)

| Method | Endpoint | Description |
| - | - | - |
| POST | `/api/ingest-http` | Ingest HTTP data (URL, curl, OpenAPI, Burp, Postman, HAR, Nuclei) |
| POST | `/api/import` | Bulk import scans/records/findings (incl. `gs://...` and uploaded archives) |

### [Scan](https://docs.vigolium.com/api-references/scan.md)

| Method | Endpoint | Description |
| - | - | - |
| POST | `/api/scan-url` | Scan a single URL |
| POST | `/api/scan-request` | Scan a raw HTTP request |
| POST | `/api/scans/run` | Trigger a target scan |
| POST | `/api/scan-records` | Scan specific HTTP records by UUID |
| POST | `/api/scan-all-records` | Scan filtered records |
| GET | `/api/scan/status` | Current scan status (latest/global) |
| GET | `/api/scans` | List scan history |
| GET | `/api/scans/:uuid` | Get scan detail |
| GET | `/api/scans/:uuid/logs` | Scan logs (SSE supported) |
| DELETE | `/api/scans/:uuid` | Delete scan |
| POST | `/api/scans/:uuid/stop` | Stop a running scan |
| POST | `/api/scans/:uuid/pause` | Pause a scan |
| POST | `/api/scans/:uuid/resume` | Resume a scan |
| POST | `/api/scans/:uuid/update` | Adjust scan parameters mid-run |

### [Stats](https://docs.vigolium.com/api-references/stats.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/stats` | Aggregated scan statistics |

### [Scope](https://docs.vigolium.com/api-references/scope.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/scope` | View scope config |
| POST | `/api/scope` | Update scope config |

### [Config](https://docs.vigolium.com/api-references/config.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/config` | View configuration |
| POST | `/api/config` | Update configuration |

### [Modules](https://docs.vigolium.com/api-references/modules.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/modules` | List scanner modules |

### [Storage](https://docs.vigolium.com/api-references/storage.md)

| Method | Endpoint | Description |
| - | - | - |
| POST | `/api/storage/upload-source` | Upload source code archive to cloud storage |
| GET | `/api/storage/source/:key` | Download a previously uploaded source file |
| GET | `/api/storage/results/:scan-uuid` | Download a scan result bundle (.tar.gz) |
| POST | `/api/storage/presign` | Generate a presigned upload/download URL |

### [Diagnostics](https://docs.vigolium.com/api-references/diagnostics.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/diagnostics` | System readiness check (DB, agent provider, tools, dirs) |

### [OAST Interactions](https://docs.vigolium.com/api-references/oast-interactions.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/oast-interactions` | List OAST interactions |
| GET | `/api/oast-interactions/:id` | Get OAST interaction detail |
| DELETE | `/api/oast-interactions/:id` | Delete OAST interaction |

### [Extensions](https://docs.vigolium.com/api-references/extensions.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/extensions` | List extensions |
| GET | `/api/extensions/:name` | Get extension (with raw content) |
| PUT | `/api/extensions/:name` | Edit extension |
| GET | `/api/extensions/docs` | List JS API functions |

### [Projects](https://docs.vigolium.com/api-references/projects.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/projects` | List projects + aggregate stats |
| POST | `/api/projects` | Create project |
| GET | `/api/projects/:uuid` | Get project |
| PUT | `/api/projects/:uuid` | Update project |
| DELETE | `/api/projects/:uuid` | Delete project (reassigns data to default) |

### [Database](https://docs.vigolium.com/api-references/database.md)

| Method | Endpoint | Description |
| - | - | - |
| GET | `/api/db/tables` | List tables |
| GET | `/api/db/tables/:table/columns` | Table column metadata |
| GET | `/api/db/tables/:table/records` | Generic record listing |
| GET | `/api/db/tables/:table/records/:id` | Get record |
| POST | `/api/db/tables/:table/records` | Insert record (admin) |
| PUT | `/api/db/tables/:table/records/:id` | Update record (admin) |
| DELETE | `/api/db/tables/:table/records/:id` | Delete record (admin) |

### [Agent](https://docs.vigolium.com/api-references/agent.md)

| Method | Endpoint | Description |
| - | - | - |
| POST | `/api/agent/run/query` | Single-shot agent prompt execution |
| POST | `/api/agent/run/autopilot` | Autonomous AI-driven scanning session |
| POST | `/api/agent/run/swarm` | AI-guided multi-phase vulnerability swarm |
| POST | `/api/agent/run/audit` | Source-audit driver dispatcher (`driver: auto\|both\|audit\|piolium`) |
| GET | `/api/agent/status/list` | List agent runs |
| GET | `/api/agent/status/:id` | Agent run status |
| GET | `/api/agent/sessions` | Paginated session history |
| GET | `/api/agent/sessions/:id` | Full session detail |
| GET | `/api/agent/sessions/:id/logs` | Read or tail `runtime.log` (SSE supported) |
| GET | `/api/agent/sessions/:id/artifacts` | List session artifact files |
| GET | `/api/agent/sessions/:id/artifacts/{name}` | Read a specific artifact |
| POST | `/api/agent/chat/completions` | OpenAI-compatible chat completions |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.