API reference

Link to the live OpenAPI / Swagger documentation for the ServerMetry API.

View as Markdown

ServerMetry publishes a full OpenAPI 3.1 specification. Use the interactive Swagger UI for request/response schemas, or fetch the raw JSON for code generation.

Live docs

ResourceURL
Swagger UIhttps://api.servermetry.com/docs
OpenAPI JSONhttps://api.servermetry.com/openapi.json

Local development (API on port 3601):

  • Swagger: http://localhost:3601/docs
  • Spec: http://localhost:3601/openapi.json

Auth overview

  • Session / cookie — browser dashboard (better-auth)
  • Server agent keysp_live_… for agent metrics endpoints
  • MCP keysp_mcp_… Bearer token for the MCP endpoint (see MCP setup)

Exact auth requirements are documented per operation in Swagger.