Skip to main content

Skylogs REST API

Everything in the Skylogs UI is available through the REST API. This section is generated from the OpenAPI spec plus hand-written pages for the concepts the spec can't express.

  • Base URL: https://<your-skylogs-host>/api/v1
  • Interactive explorer: api.skylogs.io/api/doc (Swagger UI)
  • Format: JSON request and response bodies
  • Auth: JWT bearer tokens — see Authentication. Inbound alert webhooks use per-rule tokens instead — see Alert ingestion.

API map

AreaWhat it covers
AuthenticationLogin, refresh, logout, password change
Alert ingestion (webhooks)Firing/resolving alerts from your systems: API alerts and per-source webhooks
Alert rulesThe core object: CRUD, ack/resolve/silence, tags, notification endpoints, access, behavior rules
Users & teamsUser and team management, ownership transfer
Notification endpointsChannels that receive notifications, with OTP verification
Data sources & PrometheusConnecting monitoring systems; browsing Prometheus labels/rules
Provider configsCall/SMS/email/Telegram provider settings with default + backup, cluster config
Status pagesStatus page management
Instances & assetsConnected Skylogs instances (zones) and profile assets

Conventions

Success envelope. Mutating endpoints commonly return:

{ "status": true, "message": null }

Validation errors return 422 with:

{ "status": false, "message": "The name field is required." }

Auth errors return 401. Ingestion endpoints may return 429 when rate limited — see Rate limits.

Pagination. List endpoints that paginate accept page (and related) query parameters and return paginated envelopes; endpoints suffixed /all return the full unpaginated collection (e.g. GET /api/v1/team vs GET /api/v1/team/all).

Alert rule types. Alert rule creation is a single endpoint with a type discriminator. Supported types: api, notification, prometheus, grafana, pmm, sentry, splunk, metabase, zabbix, elastic, victoria_logs. Prometheus, Grafana, and PMM additionally use a queryType discriminator (dynamic | textQuery). Full schemas: Alert rules.

Versioning

The API is versioned in the URL (/api/v1).