Skip to content

API Reference

The Ephor API is a REST API served under the base path /api/v1.

Interactive Documentation

The canonical API reference is the Swagger UI served by the application:

URLDescription
/api/v1/swagger-ui/index.htmlInteractive Swagger UI
/api/v1/api-docsRaw OpenAPI specification (JSON)

Swagger UI is enabled when the local Spring profile is active (default in development). In production, enable it via springdoc.api-docs.enabled=true and springdoc.swagger-ui.enabled=true.

Endpoints Overview

Authentication

MethodPathDescription
GET/auth/meCurrent user identity, groups, and permissions
GET/auth/statusAuthentication status
GET/auth/configClient-facing auth config (login/logout URLs, provider)
GET/auth/logoutLogout URL

Vulnerabilities

MethodPathDescription
GET/vulnerabilitiesList findings with filtering and pagination
GET/vulnerabilities/{id}Get a single vulnerability
PUT/vulnerabilities/{id}Update a vulnerability record

Escalations

MethodPathDescription
GET/escalationsList escalations
POST/escalationsCreate an escalation
GET/escalations/{id}Get a single escalation
PUT/escalations/{id}Update an escalation

Triage

MethodPathDescription
GET/triageList triage records
POST/triageCreate a triage entry
PUT/triage/{id}Update a triage entry
GET/triage/{id}/commentsList comments
POST/triage/{id}/commentsAdd a comment

Remediations

MethodPathDescription
GET/remediationsList remediation records
POST/remediationsCreate a remediation
GET/remediations/{id}Get a single remediation
PUT/remediations/{id}Update a remediation

Scan Ingestion

MethodPathDescription
POST/scans/ingestIngest a vulnerability scan report

Authentication

All endpoints except /auth/status and /auth/config require a valid authenticated session. Requests without proper identity headers receive a 401 Unauthorized response.

Detailed Reference

For full request/response schemas, query parameters, and error codes, use the interactive Swagger UI or download the OpenAPI spec from /api/v1/api-docs.

Licensed under AGPL v3