Skip to content
INRENT
Platform

Webhooks

Receive signed events for requests, credits, payments, provider health and Cloud VPS servers.

Events

EventWhen
request.completedA gateway request succeeded
request.failedA request failed after all fallbacks
usage.thresholdMonthly spend crossed a configured threshold
credit.lowBalance fell below your low-balance threshold
payment.success / payment.failedA payment succeeded or failed
model.updatedA model's availability or pricing changed
provider.down / provider.recoveredProvider health changed

Cloud VPS events

EventWhen
server.createdA server was ordered and is being built
server.readyA server (new or reinstalled) finished its first-boot setup and can be logged in to. Billing started when it began running, a little earlier. If INRENT cannot confirm the setup, it is sent anyway when it stops waiting: at once for an image it cannot check, after 5 minutes if the server's guest agent does not answer, and otherwise after 15 minutes (25 on Windows). The server's provisioning.setup_result says which. It is not sent if the server was switched off before its setup finished, or if the server was built while the workspace was suspended (it is left off)
server.failedA server could not be built, rebuilt, resumed or deleted, and is in the error state
server.suspendedA server was powered off by a suspension: empty wallet, suspended workspace or INRENT staff
server.resumedA suspended server was started again
server.deletedA server was deleted with its disk, snapshots and backups
server.resizedA server moved to another plan
backup.completed / backup.failedA backup (daily or taken by hand) finished or failed
snapshot.completedA snapshot finished

Payload

{
  "id": "evt_01J9Z5…",
  "type": "credit.low",
  "created": 1791000000,
  "organization_id": "…",
  "data": { "balance_inr": "76.500000", "threshold_inr": "100.000000" }
}

Request events include IDs, model, provider, tokens, cost and latency — never prompts or responses.

Server and backup payloads

Every Cloud VPS event carries the server as it is when the event is sent. It never includes passwords or anything about the machine the server runs on.

{
  "id": "evt_01J9Z5…",
  "type": "server.suspended",
  "created": 1791000000,
  "organization_id": "…",
  "data": {
    "server": {
      "id": "6f1c…",
      "name": "web-1",
      "hostname": "web-1",
      "status": "suspended",
      "region": "REGION_SLUG",
      "plan": "PLAN_SLUG",
      "image": "ubuntu-24-04",
      "ipv4": "203.0.113.10",
      "vcpu": 2,
      "memory_mb": 4096,
      "disk_gb": 80,
      "backups_enabled": true
    },
    "reason": "billing",
    "scheduled_deletion_at": "2026-12-13T09:00:00.000Z"
  }
}

Extra fields by event:

EventFieldMeaning
server.suspendedreasonbilling (the wallet ran out), org (the workspace is suspended) or admin (INRENT staff)
server.suspendedscheduled_deletion_atWhen a server suspended for an empty wallet is deleted unless the wallet covers it again; null otherwise. See Cloud VPS billing
server.deletedreasonrequested (deleted by your team or API key), staff, or suspended_expired (left suspended for an empty wallet until its deletion date)
server.failedoperationprovision, reinstall, resume or delete
server.resizedpreviousThe size before the resize: plan, vcpu, memory_mb, disk_gb
backup.*backupid, name, automatic, size_gb, created_at
snapshot.completedsnapshotid, name, size_gb, created_at

server.deleted still carries the IPv4 address the server had; the address is released for reuse after a quarantine period. The schemas are also in the OpenAPI document at /openapi.json (under webhooks).

Catalog-wide model.updated

Model prices are shown in rupees, converted from the providers' US-dollar list prices. When INRENT changes its USD→INR rate, every model's rupee price changes at once, so a single catalog-wide model.updated event is sent instead of one per model. The new prices appear on /v1/models within about 15 seconds.

{
  "type": "model.updated",
  "data": { "model": null, "scope": "catalog", "pricing_changed": true, "reason": "fx_rate", "usd_inr_from": "88", "usd_inr": "90" }
}

Treat "model": null with "scope": "catalog" as "re-fetch the whole catalog".

Verifying signatures

Every delivery has an Inrent-Signature header:

Inrent-Signature: t=1791000000,v1=5f2b…

v1 is the hex HMAC-SHA256 of "{t}.{raw_body}" using your endpoint's signing secret (whsec_…). Reject deliveries older than five minutes to prevent replays.

import { createHmac, timingSafeEqual } from "node:crypto";

export function verify(secret: string, rawBody: string, header: string, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=") as [string, string]));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return parts.v1?.length === expected.length && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Delivery and retries

  • Deliveries time out after 10 seconds, don't follow redirects, and count any 2xx as success.
  • Failed deliveries retry with exponential backoff (30s, 2m, 10m, 30m, 2h, 6h), up to 7 attempts.
  • After 25 consecutive failures an endpoint is disabled automatically; re-enable it from the dashboard.
  • Each delivery carries Inrent-Event-Id. Use it to deduplicate.
  • Delivery history (status, attempts, response code, duration) is shown per endpoint.

Endpoint requirements

Endpoints must use HTTPS on a public host. Private, loopback, link-local and cloud-metadata addresses are rejected when you save the endpoint, and checked again before every delivery.

Edit this page