ZevSight
Open app

API reference

API overview

ZevSight's HTTP API: hosts, authentication, error format, rate limits, pagination and idempotency, with links to the generated reference.

The ZevSight API sends data in and reads it back: ingest, heartbeat pings, search, live tail, uptime check data, alert actions and notes. Projects, services, checks, rules and keys are configured in the dashboard.

The machine-readable description is /openapi.yaml (OpenAPI 3.1). It is copied from the engine on every docs build, and the reference pages below are generated from it.

Hosts

HostServesCredential
https://ingest.zevsight.comIngest, heartbeat pingsIngest token; the ping URL itself
https://eu.zevsight.comQuery, live tail (wss://), uptime checks, alertsAPI key
https://api.zevsight.comNotes on incidents and alertsAPI key with respond

These are the EU data region’s hosts, the only region today. Using a credential on another region’s host returns 421 WRONG_REGION with the right host in endpoint.

Authentication

Authorization: Bearer <KEY>
CredentialPrefixAccepted by
Ingest tokenzsi_Ingest endpoints only
API key, readzsr_Query, live tail, uptime checks, listing alerts
API key, respondzsr_All of the above, plus alert actions and notes
Legacy agent keyzsa_Like an API key; new keys are zsr_

Live tail takes the key in its first WebSocket frame instead of a header. Heartbeat pings need no header. See API keys and ingest tokens.

Conventions

  • JSON bodies, UTF-8. Times are RFC 3339 in UTC.
  • Public ids on the wire: prj_… (project), chk_… (check), inc_… (incident), hb_… (heartbeat). Event and alert ids are UUIDs (UUIDv7).
  • Many query endpoints take project as a comma-separated list of project ids, or all for every project the key can read.
  • from and to are RFC 3339. to defaults to now.

Errors

Errors have one shape:

{
  "code": "INVALID_REQUEST",
  "message": "A sentence saying what is wrong.",
  "field": "q"
}

code is stable; message is a sentence for people and may change. reference appears on INTERNAL_ERROR (quote it to support), and endpoint on WRONG_REGION.

CodeStatusMeaning
INVALID_REQUEST400The request is invalid. field names the problem when there is one.
UNAUTHENTICATED401Missing, unknown, expired or wrong kind of credential
FORBIDDEN403Valid credential, but not allowed (a read key on an action, a viewer)
NOT_FOUND404No such object, or not visible to this credential. Never 403 across workspaces.
CONFLICT409For example, the alert is already resolved
WRONG_REGION421Use the host in endpoint
PAYLOAD_TOO_LARGE413Over 5 MiB decompressed or 5,000 events
RATE_LIMITED429Too many requests. Wait Retry-After seconds.
QUOTA_EXCEEDED429Monthly ingest quota reached. Retry-After points at the next month.
UNAVAILABLE503Nothing was done. Retry after Retry-After.
INTERNAL_ERROR500Our fault. Retry, and quote reference if it persists.

Creating something past a plan limit in the dashboard reports PLAN_LIMIT.

Rate limits

WhatLimitResponse
IngestEvents per second per workspace, set by the plan; monthly quota429 RATE_LIMITED or QUOTA_EXCEEDED with Retry-After
Heartbeat pings2 per second per monitor, bursts of 10429 RATE_LIMITED
Queries8 running at once per credential429
Rows scanned per querySet by the plan200 with stats.truncated: true
Live tail50 open per workspaceClose code 4429
Notes30 per minute per key429 with Retry-After

Always honour Retry-After.

Pagination

  • Log search returns newest first. Pass next_cursor from one response as cursor in the next. It is opaque and null on the last page. limit is 1 to 1,000 (default 200).
  • Check results return newest first. Pass next_before as before.
  • Facets, values and patterns return the top entries; raise limit, values or keys for more.

Idempotency

Ingest accepts an Idempotency-Key header (up to 128 characters, remembered for 2 hours), and deduplicates by event id. Acknowledging an alert twice is harmless.

Reference

Built 29 November 2026 · View as Markdown