Skip to main content
The @devhelm/sdk package is a typed, promise-based client for the DevHelm REST API. It runs in any modern Node.js or browser environment, ships full TypeScript types, and uses Zod for runtime request/response validation.

Install

Requires Node 18+ (for native fetch).

Initialize

Create a monitor

managedBy is optional — omit it (defaults to API server-side) or set it explicitly to one of API, DASHBOARD, CLI, TERRAFORM, or MCP to record the provenance for drift detection. Request bodies are validated against the generated Zod schemas before any HTTP I/O — invalid payloads throw DevhelmValidationError with structured field errors.

List monitors

For manual pagination control:

Update or delete a monitor

Get check results

Manage incidents

Create an alert channel

The channel type is the channelType discriminator inside config (slack, email, discord, pagerduty, …) — there is no top-level type field on this request.

Error handling

Full taxonomy in the Error handling guide.

Resource namespaces

The client exposes 19 resources:

Next steps

Client reference

Every method, signature, and return type.

Error handling

Exception classes and retry patterns.

Webhook inboxes

Assert on the webhooks your code sends with client.inboxes.

Email testing

Wait for sign-up and reset emails with client.email.