Skip to main content

Documentation index for AI agents: llms.txt. Every page here is also served as markdown: add .md to its address, or request it with Accept: text/markdown.

Servers API

Server infrastructure monitoring via agent. This page lists all 8 endpoints in the Servers area of the Visual Sentinel REST API.

Base URL: https://visualsentinel.com. Unless an endpoint says otherwise it accepts an API key or a session cookie, see Authentication. Most error responses use the ErrorResponse shape, see Errors and Rate limits.

Endpoints

List servers

GET /api/servers

Get all servers for the organization.

Responses

  • 200: List of servers. Body: ServerListResponse.
  • 401: Not authenticated.
  • 403: Server monitoring not available on current plan or missing servers:read scope.

Create server

POST /api/servers

Register a new server for monitoring. Returns the server token for agent installation.

Request body (required): object.

FieldTypeRequiredDescription
namestringYesMin length 1, max length 100.
hostnamestringNo
ipAddressstringNo
tagsarray of stringNo

Responses

  • 201: Server created. Body: object.
  • 402: Server limit reached.
FieldTypeRequiredDescription
serverServerNo
tokenstringNoAgent authentication token (shown only once)

Get server details

GET /api/servers/{id}

Get detailed information about a specific server including recent metrics and top processes.

Parameters

  • id (path, string (uuid), required)

Responses

  • 200: Server details. Body: object.
  • 404: Server not found.
FieldTypeRequiredDescription
serverServerNo

Update server

PATCH /api/servers/{id}

Update server name, tags, or alert configuration.

Parameters

  • id (path, string (uuid), required)

Request body (required): object.

FieldTypeRequiredDescription
namestringNo
tagsarray of stringNo
alertConfigobjectNo

Responses

  • 200: Server updated.

Delete server

DELETE /api/servers/{id}

Remove a server and all its monitoring data.

Parameters

  • id (path, string (uuid), required)

Responses

  • 200: Server deleted.

Get server metrics

GET /api/servers/{id}/metrics

Get historical server metrics (CPU, memory, disk, network) with configurable time periods.

Parameters

  • id (path, string (uuid), required)
  • period (query, string, optional): One of: 1h, 6h, 24h, 7d, 30d. Default: 1h.

Responses

Get agent install script

GET /api/servers/agent/install.sh

Download the server monitoring agent installation shell script.

Authentication: no session or API key needed.

Parameters

  • token (query, string, required)

Responses

  • 200: Shell script. Body: string (text/x-shellscript).

Agent metrics report

POST /api/servers/agent/report

Endpoint for the server agent to submit metrics data. Authenticated via server token.

Authentication: no session or API key needed.

Request body (required): object.

FieldTypeRequiredDescription
tokenstringNo
cpuobjectNo
memoryobjectNo
diskobjectNo
networkobjectNo
processesarray of objectNoTop processes, at most 50. Max items 50.
processes[].pidintegerNoMinimum 0.
processes[].namestringNo
processes[].commandstringNo
processes[].cpuPercentnumberNo
processes[].memoryPercentnumberNo
processes[].memoryBytesnumberNo
processes[].statusstringNo
processes[].userstringNo

Responses

  • 200: Metrics recorded.
  • 401: Invalid server token.

Data models

Request and response shapes these endpoints use: ServerListResponse, Server, ServerMetricsResponse.

Generated from the OpenAPI 3.1 specification at https://docs.visualsentinel.com/openapi.json, the same file the interactive reference reads.