API · v1.4.0

REST API

Everything the web interface does goes through this API, so anything you can click you can also script. 101 endpoints, grouped by resource. The reference below is generated from the OpenAPI document of version 1.4.0.

Full OpenAPI document (JSON). Your own instance serves the same document at /api/v1/openapi.json.

Base URL

Every path below is relative to /api/v1 on your own instance, for example http://localhost:3000/api/v1.

Authentication

For scripts and integrations, create an API token in the workspace settings (or with POST /workspaces/{workspace}/tokens) and send it as a bearer token. A token belongs to one workspace and carries only the abilities you give it, such as monitors:read or incidents:write.

The web interface itself uses a cookie session with a CSRF token; the README shows that flow for scripting the first setup.

Example

curl -s \
  -H "Authorization: Bearer $INTRAWATCH_TOKEN" \
  -H "Accept: application/json" \
  http://localhost:3000/api/v1/workspaces/acme-ops/monitors

Setup

  • GET /setup
  • POST /setup Complete the first-run setup. Must be called as a stateful (cookie) request: send an Origin that matches APP_URL and the X-XSRF-TOKEN obtained from GET /sanctum/csrf-cookie

Authentication

Me

Workspaces

Monitors

Push

Tags

Alerts

Notification channels

Incidents

Maintenances

Status pages

Imports

Members

Invitations

Tokens

Audit

Changelog

Manual

Meta