Skip to content
wardquiet

Documentation

Set up read-only monitoring, wire alerts into your tools and look up rule, webhook and API details.

Reference

API overview

The REST API exposes the same workspace the dashboard uses: assets, monitors, incidents, channels, operations and the audit log. Use it to sync assets from your own inventory or route incidents into internal tooling.

Basics#

  • All endpoints live under the base path /api/v1 of your Wardquiet API host. Examples use $WARDQUIET_API_URL for that host and $WORKSPACE for the workspace in {ws}.
  • JSON in and out. Field names are snake_case, timestamps are RFC 3339 in UTC, IDs are UUID strings.
  • Decimal amounts are strings (for example "250000.5") to avoid float rounding.
  • Responses never include secrets, except where a value is explicitly shown once at creation.

Authentication#

Integrations authenticate with an API key in the Authorization header. API keys are available on the Business and Enterprise plans and are created by an Admin in the dashboard or with POST /workspaces/{ws}/api-keys. The token is shown once; afterwards only its prefix is listed.

Authorization header
Authorization: Bearer wq_live_…
  • A key belongs to one workspace and can only access /workspaces/{its workspace}/….
  • A key has a role — viewer, analyst or admin — and is subject to the same role checks as a person with that role.
  • Revoke a key at any time; actions taken with a key are recorded in the audit log as that key.

Roles#

Roles are cumulative: viewer < analyst < admin < owner. Each endpoint requires a minimum role, listed in the resource map below.

Role permissions
RolePermissions
viewerRead everything in the workspace.
analystPlus acknowledge, resolve and assign incidents, add notes, run monitor history tests.
adminPlus manage assets, monitors, channels and API keys; invite and remove analysts and viewers.
ownerPlus manage admins and owners, and workspace settings. Not available to API keys.

Errors#

Non-2xx responses share one shape:

Error body
{
  "error": {
    "code": "validation_failed",
    "message": "threshold_usd: invalid decimal \"abc\"",
    "field": "params.threshold_usd"
  }
}
Error codes
CodeHTTPMeaning
unauthenticated401Missing or invalid credentials.
forbidden403Your role is too low for this action.
csrf403Browser session request without the client header (dashboard only).
not_found404The resource does not exist in this workspace.
plan_limit402A plan limit was reached, or the feature is not in your plan.
conflict409For example, a duplicate asset.
validation_failed422Invalid input; field points at the offending value.
rate_limited429Too many requests; retry later.
internal500Unexpected server error.

Pagination#

Paginated endpoints accept limit (default 50, maximum 200) and cursor, and respond with { "items": [...], "next_cursor": "…" }. Pass next_cursor back as cursor until it is null. Endpoints documented as not paginated return { "items": [...] } only.

Examples#

List open critical incidents

Request
curl -sS "$WARDQUIET_API_URL/api/v1/workspaces/$WORKSPACE/incidents?status=open&severity=critical&limit=20" \
  -H "Authorization: Bearer $WARDQUIET_API_KEY"
Response (illustrative values)
{
  "items": [
    {
      "id": "b7e0d6a2-3c41-4f8e-9a1d-5e2f3a4b5c6d",
      "monitor_name": "Treasury outflow 1h",
      "rule": "treasury_outflow",
      "severity": "critical",
      "status": "open",
      "title": "Unusual treasury outflow",
      "summary": "Net outflow of 1,250,000 USDC ($1,249,800 at 14:02 UTC) from Treasury in 1h exceeds $500,000.",
      "chain": "sui",
      "asset": { "id": "2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a", "label": "Treasury", "address": "0x…" },
      "tx_ids": ["<tx digest>"],
      "explorer_urls": ["https://suiscan.xyz/mainnet/tx/<tx digest>"],
      "finality": "finalized",
      "retracted": false,
      "event_count": 3,
      "first_seen_at": "2026-11-28T13:12:40Z",
      "last_seen_at": "2026-11-28T14:02:05Z"
    }
  ],
  "next_cursor": null
}

Acknowledge an incident

Requires the analyst role. Status changes are written to the incident timeline and the audit log. Allowed transitions: open → acknowledged → resolved, open → resolved, and back to open to reopen.

Request
curl -sS -X PATCH "$WARDQUIET_API_URL/api/v1/workspaces/$WORKSPACE/incidents/$INCIDENT_ID" \
  -H "Authorization: Bearer $WARDQUIET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "acknowledged"}'

Resource map#

Paths are relative to /api/v1. Minimum roles are listed per endpoint. For push delivery instead of polling, use webhooks.

Workspace

Workspace endpoints
MethodPathRoleNotes
GET/workspaces/{ws}viewerWorkspace with your role, plan limits and usage.
GET/workspaces/{ws}/membersviewerMembers and pending invites.
POST/workspaces/{ws}/invitesadminInvite by email with a role.

Assets

Assets endpoints
MethodPathRoleNotes
GET/workspaces/{ws}/assetsviewerFilter with chain, kind, group, tag, q.
POST/workspaces/{ws}/assetsadminCreate; the address is normalized.
PATCH/workspaces/{ws}/assets/{id}adminUpdate label, tags or group.
DELETE/workspaces/{ws}/assets/{id}adminDelete; also removes it from monitors.
POST/workspaces/{ws}/assets/importadminCSV import; reports skipped lines.

Rules and monitors

Rules and monitors endpoints
MethodPathRoleNotes
GET/rule-templatessigned inTemplates with form fields. See rules.
GET/workspaces/{ws}/monitorsviewerFilter with chain, rule, enabled.
POST/workspaces/{ws}/monitorsadminCreate a monitor.
GET · PATCH · DELETE/workspaces/{ws}/monitors/{id}viewer · adminRead, update or delete. Incidents are kept.
POST/workspaces/{ws}/monitors/testanalystDry run over 1–168 hours of history; nothing stored, no alerts.
POST/workspaces/{ws}/monitors/{id}/test-notificationadminNotify every channel of the monitor.

Incidents

Incidents endpoints
MethodPathRoleNotes
GET/workspaces/{ws}/incidentsviewerPaginated, newest activity first. Filter with status, severity, chain, asset_id, monitor_id, from, to, q.
GET/workspaces/{ws}/incidents/{id}viewerWith events, timeline and deliveries.
PATCH/workspaces/{ws}/incidents/{id}analystSet status or assignee_id.
POST/workspaces/{ws}/incidents/{id}/notesanalystAdd a note to the timeline.

Channels

Channels endpoints
MethodPathRoleNotes
GET/workspaces/{ws}/channelsviewerSecrets are returned masked.
POST/workspaces/{ws}/channelsadminTelegram, Slack, email or webhook.
PATCH · DELETE/workspaces/{ws}/channels/{id}adminRename, enable or disable, reconfigure, delete.
POST/workspaces/{ws}/channels/{id}/testadminSynchronous test delivery.
POST/workspaces/{ws}/channels/{id}/rotate-secretadminNew webhook signing secret, shown once.

Operations and audit

Operations and audit endpoints
MethodPathRoleNotes
GET/workspaces/{ws}/overviewviewerCounters, 24 h activity and recent incidents.
GET/workspaces/{ws}/sourcesviewerHealth of every chain data source: status, lag, gaps.
GET/workspaces/{ws}/deliveriesviewerAlert delivery log with attempts and errors.
GET/workspaces/{ws}/audit-logadminWho changed what, paginated.
GET · POST · DELETE/workspaces/{ws}/api-keysadminList, create (token shown once) and revoke API keys.

Public (no authentication)

Public (no authentication) endpoints
MethodPathRoleNotes
GET/public/status—Per-chain source status and lag, without internal details.
POST/public/demo-requests—Website demo requests; rate limited.