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/v1of your Wardquiet API host. Examples use$WARDQUIET_API_URLfor that host and$WORKSPACEfor 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: Bearer wq_live_…- A key belongs to one workspace and can only access
/workspaces/{its workspace}/…. - A key has a role —
viewer,analystoradmin— 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 |
|---|---|
viewer | Read everything in the workspace. |
analyst | Plus acknowledge, resolve and assign incidents, add notes, run monitor history tests. |
admin | Plus manage assets, monitors, channels and API keys; invite and remove analysts and viewers. |
owner | Plus manage admins and owners, and workspace settings. Not available to API keys. |
Errors#
Non-2xx responses share one shape:
{
"error": {
"code": "validation_failed",
"message": "threshold_usd: invalid decimal \"abc\"",
"field": "params.threshold_usd"
}
}| Code | HTTP | Meaning |
|---|---|---|
unauthenticated | 401 | Missing or invalid credentials. |
forbidden | 403 | Your role is too low for this action. |
csrf | 403 | Browser session request without the client header (dashboard only). |
not_found | 404 | The resource does not exist in this workspace. |
plan_limit | 402 | A plan limit was reached, or the feature is not in your plan. |
conflict | 409 | For example, a duplicate asset. |
validation_failed | 422 | Invalid input; field points at the offending value. |
rate_limited | 429 | Too many requests; retry later. |
internal | 500 | Unexpected 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
curl -sS "$WARDQUIET_API_URL/api/v1/workspaces/$WORKSPACE/incidents?status=open&severity=critical&limit=20" \
-H "Authorization: Bearer $WARDQUIET_API_KEY"{
"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.
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
| Method | Path | Role | Notes |
|---|---|---|---|
| GET | /workspaces/{ws} | viewer | Workspace with your role, plan limits and usage. |
| GET | /workspaces/{ws}/members | viewer | Members and pending invites. |
| POST | /workspaces/{ws}/invites | admin | Invite by email with a role. |
Assets
| Method | Path | Role | Notes |
|---|---|---|---|
| GET | /workspaces/{ws}/assets | viewer | Filter with chain, kind, group, tag, q. |
| POST | /workspaces/{ws}/assets | admin | Create; the address is normalized. |
| PATCH | /workspaces/{ws}/assets/{id} | admin | Update label, tags or group. |
| DELETE | /workspaces/{ws}/assets/{id} | admin | Delete; also removes it from monitors. |
| POST | /workspaces/{ws}/assets/import | admin | CSV import; reports skipped lines. |
Rules and monitors
| Method | Path | Role | Notes |
|---|---|---|---|
| GET | /rule-templates | signed in | Templates with form fields. See rules. |
| GET | /workspaces/{ws}/monitors | viewer | Filter with chain, rule, enabled. |
| POST | /workspaces/{ws}/monitors | admin | Create a monitor. |
| GET · PATCH · DELETE | /workspaces/{ws}/monitors/{id} | viewer · admin | Read, update or delete. Incidents are kept. |
| POST | /workspaces/{ws}/monitors/test | analyst | Dry run over 1–168 hours of history; nothing stored, no alerts. |
| POST | /workspaces/{ws}/monitors/{id}/test-notification | admin | Notify every channel of the monitor. |
Incidents
| Method | Path | Role | Notes |
|---|---|---|---|
| GET | /workspaces/{ws}/incidents | viewer | Paginated, newest activity first. Filter with status, severity, chain, asset_id, monitor_id, from, to, q. |
| GET | /workspaces/{ws}/incidents/{id} | viewer | With events, timeline and deliveries. |
| PATCH | /workspaces/{ws}/incidents/{id} | analyst | Set status or assignee_id. |
| POST | /workspaces/{ws}/incidents/{id}/notes | analyst | Add a note to the timeline. |
Channels
| Method | Path | Role | Notes |
|---|---|---|---|
| GET | /workspaces/{ws}/channels | viewer | Secrets are returned masked. |
| POST | /workspaces/{ws}/channels | admin | Telegram, Slack, email or webhook. |
| PATCH · DELETE | /workspaces/{ws}/channels/{id} | admin | Rename, enable or disable, reconfigure, delete. |
| POST | /workspaces/{ws}/channels/{id}/test | admin | Synchronous test delivery. |
| POST | /workspaces/{ws}/channels/{id}/rotate-secret | admin | New webhook signing secret, shown once. |
Operations and audit
| Method | Path | Role | Notes |
|---|---|---|---|
| GET | /workspaces/{ws}/overview | viewer | Counters, 24 h activity and recent incidents. |
| GET | /workspaces/{ws}/sources | viewer | Health of every chain data source: status, lag, gaps. |
| GET | /workspaces/{ws}/deliveries | viewer | Alert delivery log with attempts and errors. |
| GET | /workspaces/{ws}/audit-log | admin | Who changed what, paginated. |
| GET · POST · DELETE | /workspaces/{ws}/api-keys | admin | List, create (token shown once) and revoke API keys. |
Public (no authentication)
| Method | Path | Role | Notes |
|---|---|---|---|
| GET | /public/status | — | Per-chain source status and lag, without internal details. |
| POST | /public/demo-requests | — | Website demo requests; rate limited. |