Skip to content
Documentation

REST APIs

Every installation also serves its own OpenAPI description and, in development, Swagger UI.

Both backends describe their endpoints with OpenAPI 3 (springdoc), generated from the code so it never drifts.

API OpenAPI document Swagger UI
Monitoring API (Customer Edition) /api/v1/openapi /swagger-ui.html
Commercial API (Vendor Cloud) /api/admin/openapi /swagger-ui.html

The documents are public in the dev profile. In production they are disabled unless ig.security.public-api-docs is set to true (environment variable IG_SECURITY_PUBLICAPIDOCS=true, Spring relaxed binding); Swagger UI stays off in production.

Conventions shared by every endpoint:

  • JSON over HTTPS; timestamps in ISO-8601 UTC (2026-11-20T12:00:00.123456Z).
  • Errors are RFC 9457 problem details: {"type","title","status","detail","code","errors":[{"field","message"}]} — clients branch on the stable code, show detail, and map errors[] to form fields.
  • Browser sessions use an HttpOnly cookie plus CSRF protection: read the XSRF-TOKEN cookie (from GET …/auth/csrf) and send it as the X-XSRF-TOKEN header on every state-changing request.
  • Machine clients of the monitoring API use API keys: Authorization: Bearer igk_<prefix>_<secret> (or X-IG-API-Key) on /api/v1/ingest/**; keys carry scopes and never use cookies or CSRF.
  • Webhook senders post to /api/v1/hooks/{publicId} without a session, CSRF token or API key: each endpoint verifies its own shared token or HMAC signature (see Webhooks below).
  • Lists are paginated with page (0-based) and size, returning {items, page, size, totalItems, totalPages}.

Monitoring endpoints

Resource Endpoints
Monitors GET /api/v1/organizations/{id}/monitors (filters projectId, environmentId, type, status, tag, q, sort) · GET …/monitor-tags · POST /api/v1/projects/{id}/monitors · GET, PUT, DELETE /api/v1/monitors/{id} · PATCH /api/v1/monitors/{id}/state
Runs POST /api/v1/monitors/{id}/runs ("Run now") · POST /api/v1/projects/{id}/monitor-tests (an unsaved definition) → 202 with a run request; poll GET /api/v1/monitor-runs/{id} until COMPLETED or EXPIRED
History and statistics GET /api/v1/monitors/{id}/executions (status, final, from, to) · GET …/executions/{executionId} · GET /api/v1/monitors/{id}/stats?range=24h|7d|30d · GET /api/v1/monitors/{id}/workflow-steps?range=24h|7d|30d (workflow monitors: per-step runs, failures, skips, average and slowest time, and a series per bucket) · GET /api/v1/organizations/{id}/overview (projectId, environmentId, type, tag, range)
Alerts GET /api/v1/organizations/{id}/alerts (state ACTIVE/OPEN/ACKNOWLEDGED/RESOLVED, severity, projectId, monitorId, integrationId, jobId, destinationId, agentId) · GET /api/v1/alerts/{id} · POST …/acknowledge · POST …/resolve — an alert names its subject with subjectType (MONITOR, INTEGRATION, JOB, WEBHOOK, AGENT), subjectId (null once deleted) and subjectName, and its incident with incidentId and incidentNumber
SFTP transfer history GET /api/v1/monitors/{id}/files (status OK, DUPLICATE or INVALID) — SFTP monitors only
Alert rules GET, POST /api/v1/projects/{id}/alert-rules · GET, PUT, DELETE /api/v1/alert-rules/{id} — incidentMode and escalationPolicyId decide how alerts become incidents
Notifications GET, POST /api/v1/organizations/{id}/notification-channels · PUT, DELETE /api/v1/notification-channels/{id} · POST …/test · GET /api/v1/notification-deliveries/{id} · GET /api/v1/organizations/{id}/notification-deliveries — e-mail, Slack, Microsoft Teams, Telegram and webhook channels (see Incidents, escalation and maintenance)
Password reset (public, CSRF) GET /api/v1/auth/password-reset ({available}: an e-mail server is configured) · POST /api/v1/auth/password-reset {email} → always 202 · POST /api/v1/auth/password-reset/confirm {code, password} → 204
Administration (system administrators) GET, PUT, DELETE /api/v1/admin/smtp · POST /api/v1/admin/smtp/test · GET /api/v1/admin/smtp/test/{id} · GET, POST /api/v1/admin/network-access · DELETE /api/v1/admin/network-access/{id}
  • Monitor definitions are validated as a whole: every problem is returned at once with a JSON path, for example config.assertions[2].value or secrets.headers.X-Api-Key.
  • Credentials are write-only. In secrets, a value sets a credential, null removes it and an absent key keeps the stored one; responses only say which credentials are stored (storedSecrets).
  • PUT /api/v1/monitors/{id} needs the version that was read; a concurrent change answers 409 version_conflict.
  • Checks never run inside an API request: runs and tests are queued (202) and executed by the worker.

Integrations, background jobs and the reporting API

Integrations and background jobs have the same endpoints under integrations and jobs; {kind} below is one of them. Console endpoints use the session; the reporting (ingest) endpoints use an API key with the ingest scope.

Resource Endpoints
Definitions GET /api/v1/organizations/{id}/{kind} (filters projectId, environmentId, status UP/DEGRADED/DOWN/PENDING/PAUSED, tag, q; problems first) · GET …/{kind}/tags · POST /api/v1/projects/{id}/{kind} · GET, PUT, DELETE /api/v1/{kind}/{id} · PATCH /api/v1/{kind}/{id}/state {enabled}
History and statistics GET /api/v1/{kind}/{id}/executions (status: a comma-separated list of RUNNING, COMPLETED, FAILED, TIMED_OUT, CANCELED, MISSED, or PROBLEMS; from, to) · GET …/executions/{executionId} (with errorDetails and metadata) · GET /api/v1/{kind}/{id}/stats?range=24h|7d|30d (hourly buckets for 24 h, UTC days otherwise)
Reporting (API key) PUT /api/v1/ingest/{kind}/{key}/executions/{executionId} · POST /api/v1/ingest/jobs/{key}/heartbeat · GET /api/v1/ingest/ping (checks the key: its organization, project and scopes)
Overview GET /api/v1/organizations/{id}/overview also returns integrations and jobs: definitions per status, executions, failures, missed slots and success rate in the range, and the current problems (null when the overview is filtered by monitor type or tag)
Alert rules conditions RUN_FAILED (failed or timed out), RUN_MISSED (no execution or heartbeat by the scheduled time plus grace) and RUN_DEGRADED (slow, running past the expected duration, or too many failed records); their scope uses environmentIds, tags, kinds (INTEGRATION, JOB), integrationIds and jobIds — monitor conditions use monitorIds and types, and mixing the two is rejected

A definition (POST/PUT body):

{
  "key": "invoice-sync",
  "name": "Invoice sync to accounting",
  "description": "Posted invoices copied from the ERP every night",
  "type": "Database sync",
  "sourceSystem": "ERP",
  "destinationSystem": "Accounting",
  "businessOwner": "Finance",
  "technicalOwner": "Integration team",
  "environmentId": 4,
  "schedule": { "type": "CRON", "cron": "30 2 * * *", "timezone": "Europe/Berlin" },
  "graceSeconds": 1800,
  "expectedDurationSeconds": 2700,
  "timeoutSeconds": 7200,
  "failedRecordsThreshold": 2.0,
  "tags": ["finance", "nightly"],
  "version": 3
}
  • key is what clients report under: up to 64 lowercase letters, digits and . _ -, unique per project and kind.
  • schedule.type is NONE, INTERVAL (intervalSeconds, 60 s to 31 days) or CRON (five fields — minute, hour, day of month, month, day of week — evaluated in timezone; restrict the day of month or the day of week, not both).
  • graceSeconds (0–7 days, default 300) is how late an execution may start before the slot counts as missed; expectedDurationSeconds marks slower executions as degraded; timeoutSeconds (60 s–7 days, longer than the expected duration; default 24 hours) marks running executions without a result as timed out; failedRecordsThreshold (percent) marks completed executions with at least that share of failed records as degraded.
  • version is required on PUT (optimistic locking, 409 version_conflict). A changed schedule takes effect from now; the execution history stays.
  • The status follows the latest decided execution — completed, failed, timed out or missed — and a running execution past its expected duration. Views carry status, statusCause (OK, SLOW, FAILED_RECORDS, OVERRUN, FAILED, TIMED_OUT, MISSED) and a readable statusReason.

An execution report (PUT …/executions/{executionId} body):

{
  "status": "COMPLETED",
  "startedAt": "2026-11-21T02:30:04Z",
  "finishedAt": "2026-11-21T03:08:08Z",
  "durationMs": 2284000,
  "processed": 12118,
  "successful": 11706,
  "failed": 412,
  "error": { "type": "java.sql.SQLException", "message": "…", "details": "stack trace" },
  "metadata": { "batch": "B-1042", "files": 3 }
}
  • status is RUNNING, COMPLETED, FAILED, TIMED_OUT or CANCELED (MISSED is only recorded by IntegrationGuard). Every other field is optional. Without times the server's clock is used; reported times may be at most 5 minutes ahead and 7 days back.
  • executionId (up to 100 letters, digits and . _ : -) makes reports idempotent: the first report creates the execution (201), later ones update or repeat it (200). A RUNNING report never reopens a finished execution; a different final status for a finished one is 409 execution_finished — except that a late result replaces a timeout recorded by IntegrationGuard.
  • The key is looked up in the API key's project; an organization-wide key resolves it within the organization and answers 409 ambiguous_key when several projects use it. An unknown key is 404.
  • Error messages, details and metadata values are stored with credential patterns masked; metadata entries named like secrets are masked entirely. Limits: 50 metadata entries of up to 500 characters (16 KB), error details 64 KB.
  • Reports are rate-limited per API key (1200 per minute by default, 429).

Responses of the reporting endpoints are receipts: {kind, key, executionId, status, startedAt, finishedAt, durationMs, late, created}. A heartbeat (POST …/jobs/{key}/heartbeat, optional body {executionId, durationMs, metadata}) records a completed execution; it is the simplest way for a cron job to say it ran. The Java SDK (backend/sdk-java, guide in documentation/sdk/java-sdk.md) wraps these calls with retries and timeouts.

SFTP monitors

An SFTP monitor (type: "SFTP") signs in over SSH, lists a directory and judges the files that match a pattern. Its config:

{
  "host": "sftp.partner.example",
  "port": 22,
  "username": "ig-monitor",
  "authType": "KEY",
  "hostKeyFingerprint": "SHA256:QhXBqvQn4b0m5Hd7hJ7p2y3k1sCq8eTn6wLr0aUf9vE",
  "hostKeyAlgorithm": "ssh-ed25519",
  "directory": "/outgoing",
  "filePattern": "invoices_{YYYYMMDD}.csv",
  "expectation": "DAILY",
  "expectedBy": "03:00",
  "timezone": "Europe/Paris",
  "graceMinutes": 30,
  "days": ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"],
  "minFileCount": 1,
  "minSizeBytes": 1,
  "maxSizeBytes": null,
  "maxAgeMinutes": null,
  "stuckAfterMinutes": null,
  "settleSeconds": 60,
  "computeChecksum": true,
  "checksumSuffix": ".sha256",
  "detectDuplicates": true
}
  • Credentials go in secrets: password (authType: PASSWORD) or privateKey with an optional passphrase (KEY; OpenSSH or PEM, Ed25519, ECDSA or RSA). They are stored encrypted and never returned.
  • The server's host key is pinned: a saved monitor needs hostKeyFingerprint (as ssh-keygen -lf prints it). A test without one connects, reports the key the server presented in details.hostKey and answers DOWN ("Host key not pinned yet …"), so the console can offer to pin it; any other key is refused ("Host key mismatch").
  • filePattern takes * and ? and date tokens in braces (YYYY, YY, MM, DD and - _ ., for example {YYYYMMDD} or {YYYY-MM-DD}).
  • expectation: DAILY expects one file per listed day by expectedBy in timezone; it is DOWN when the file of the latest due day is missing after graceMinutes, DEGRADED when it arrived late. ANY judges the matching files now: minFileCount (0 for a folder that should be emptied), maxAgeMinutes for the newest file, and stuckAfterMinutes for files nobody collected.
  • Files changed within settleSeconds are still arriving and are not judged. Sizes outside minSizeBytes / maxSizeBytes and a SHA-256 that does not match the sidecar file (checksumSuffix) make a file INVALID; detectDuplicates flags a file whose content was already seen under another name (DUPLICATE).
  • GET /api/v1/monitors/{id}/files lists every file the monitor saw — name, size, modification time, SHA-256, status, problem, first and last seen — newest first; a file is tracked by name, modification time and size, so a re-sent file with a new timestamp appears again.

Ping, database and workflow monitors

Three monitor types of Phase 5. Like the others they take POST /api/v1/projects/{id}/monitors with a type, a config and write-only secrets, run on the worker's scheduler and can be tried with monitor-tests.

Ping (ICMP) — echo requests through the system's ping, to an address checked against the network policy:

{ "host": "vpn-gateway.example.com", "packetCount": 5, "ipVersion": "ANY", "degradedThresholdMs": 80,
  "degradedPacketLossPercent": 20, "downPacketLossPercent": 100 }

Private and internal addresses (10.40.0.1) need a rule under Network access, like every other check.

  • packetCount 1–20 (sent 200 ms apart; the monitor's timeout must allow 200 ms × packets + 1 s); ipVersion ANY, IPV4 or IPV6. DOWN at downPacketLossPercent loss or more, DEGRADED from degradedPacketLossPercent or when the average round trip is slower than degradedThresholdMs. The duration of a result is the average round trip; details hold the packets sent and received, minimum/average/maximum/deviation and every reply.

Database query (DATABASE) — a fresh connection with the monitor's account, one read-only query, its result judged:

{
  "engine": "POSTGRESQL",
  "host": "orders-db.internal.example",
  "port": 5432,
  "database": "orders",
  "username": "ig_reader",
  "tls": "VERIFY",
  "query": "SELECT COUNT(*) AS stuck FROM orders WHERE status = 'PROCESSING' AND updated_at < NOW() - INTERVAL '30 minutes'",
  "maxRows": 10,
  "degradedThresholdMs": 1000,
  "assertions": [
    { "source": "COLUMN", "column": "stuck", "operator": "LESS_THAN", "value": "1" },
    { "source": "QUERY_TIME", "column": null, "operator": "LESS_THAN", "value": "500" }
  ]
}
  • engine MARIADB, MYSQL, POSTGRESQL, ORACLE (database is the service name) or SQLSERVER; database is required for PostgreSQL and Oracle. The password goes in secrets.password.
  • tls REQUIRED (encrypted, certificate not verified), VERIFY (certificate and host name verified against the worker's trust store) or DISABLED.
  • query (at most 4,000 characters) must be one statement that reads: SELECT, WITH or VALUES (SHOW too on MariaDB and MySQL), with no keyword that writes, locks or runs code outside literals; null runs the engine's validation query (SELECT 1). 400 names the problem (config.query).
  • assertions: COLUMN of the first row (by label or 1-based position) with the comparisons of HTTP assertions (numbers are compared as numbers), ROW_COUNT (EQUALS, NOT_EQUALS, LESS_THAN, GREATER_THAN) and QUERY_TIME (LESS_THAN milliseconds). maxRows (1–1,000) rows are read; more is reported as "more than".
  • details: engine, server, product and driver versions, connection and query times, row count, the first 20 column labels, the first row (values of credential-like columns masked) and each assertion's outcome.

API workflow (WORKFLOW) — steps that run in order and share variables:

{
  "variables": [
    { "name": "baseUrl", "value": "https://orders-api.example.com", "secret": false },
    { "name": "clientSecret", "value": null, "secret": true }
  ],
  "steps": [
    {
      "name": "Sign in",
      "method": "POST",
      "url": "{{baseUrl}}/oauth/token",
      "headers": [],
      "queryParameters": [],
      "body": { "contentType": "application/x-www-form-urlencoded",
                "content": "grant_type=client_credentials&client_secret={{clientSecret | url}}" },
      "auth": { "type": "NONE", "username": null, "password": null, "token": null },
      "followRedirects": true,
      "timeoutMs": 3000,
      "degradedThresholdMs": null,
      "assertions": [{ "source": "STATUS_CODE", "property": null, "operator": "EQUALS", "value": "200" }],
      "extract": [{ "variable": "accessToken", "source": "JSON_PATH", "expression": "$.access_token",
                    "sensitive": true, "required": true }],
      "condition": null,
      "onFailure": "STOP",
      "runAfterFailure": false
    },
    {
      "name": "Create a test order",
      "method": "POST",
      "url": "{{baseUrl}}/orders",
      "body": { "contentType": "application/json", "content": "{\"reference\": \"synthetic-{{$timestamp}}\"}" },
      "auth": { "type": "BEARER", "token": "{{accessToken}}" },
      "assertions": [{ "source": "STATUS_CODE", "operator": "EQUALS", "value": "201" }],
      "extract": [{ "variable": "orderId", "source": "JSON_PATH", "expression": "$.id", "required": true }],
      "onFailure": "STOP"
    },
    {
      "name": "Cancel the test order",
      "method": "DELETE",
      "url": "{{baseUrl}}/orders/{{orderId | url}}",
      "auth": { "type": "BEARER", "token": "{{accessToken}}" },
      "assertions": [{ "source": "STATUS_CODE", "operator": "IN", "value": "200, 204" }],
      "condition": { "variable": "orderId", "operator": "EXISTS" },
      "onFailure": "DEGRADE",
      "runAfterFailure": true
    }
  ],
  "verifyTls": true,
  "degradedThresholdMs": 2000
}
  • Templates are plain substitution — {{name}}, {{name | url}}, {{name | base64}}, {{name | json}} and the built-ins {{$uuid}}, {{$timestamp}}, {{$timestampMs}}, {{$isoTimestamp}}, {{$date}}, {{$randomInt}}. There is no expression language and nothing is executed.
  • Secret variables have no value in the definition: send it in secrets.variables ({"clientSecret": "…"}); it is stored encrypted, listed in storedSecrets.variables and masked as [redacted] in every result. Credentials typed into headers, Basic passwords or Bearer tokens are rejected: use a secret variable or an extracted value.
  • extract takes a value from the response — JSON_PATH, HEADER, BODY_REGEX (first group) or STATUS_CODE — into a variable for the next steps; sensitive masks it in results (always on for names such as token or password); a required value that is missing fails the step.
  • condition runs a step only when a variable EXISTS, NOT_EXISTS, EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, MATCHES, GREATER_THAN or LESS_THAN a value. onFailure: STOP (fail and skip the rest), CONTINUE (fail and run the rest) or DEGRADE; runAfterFailure marks clean-up steps that run after a failure.
  • Fields left out of a step take their defaults (no headers, no body, no authentication, follow redirects, no assertion but the implicit "status below 400", onFailure: STOP). At most 20 steps, 30 variables (values up to 4,096 characters) and 10 extractions per step. Every placeholder must name a declared variable, a built-in or a value an earlier step extracts, so a definition that saves can only fail on what the responses contain.
  • Each step has its own timeoutMs inside the monitor's timeout. details.steps is the trace: every step with its status (UP, DEGRADED, DOWN, SKIPPED), duration, request, response, assertions and the values it took; details.variables the values at the end of the run. Per-step results are kept for the statistics (workflow-steps).

Linux agents

An agent is a small static binary (Go, agent/ in the source) that reports host metrics, systemd services, processes and Docker containers over HTTPS. Permissions: infrastructure.read and infrastructure.write.

Resource Endpoints
Agents GET /api/v1/organizations/{id}/agents (projectId, environmentId, status PENDING/UP/DEGRADED/DOWN/PAUSED; by name) · POST /api/v1/projects/{id}/agents → 201 {agent, token} · GET, PUT, DELETE /api/v1/agents/{id} · PATCH /api/v1/agents/{id}/state {enabled} · POST /api/v1/agents/{id}/token → {agent, token} (rotation; the old token stops at once)
Metrics GET /api/v1/agents/{id}/metrics?range=1h|24h|7d|30d — buckets of 1 minute, 5 minutes (raw samples), 1 hour or 6 hours (hourly aggregates): samples, CPU and memory average and peak, fullest disk, load average and peak, network received and sent
Downloads (public) GET /api/v1/agent/download → {version, files: [{platform, fileName, sizeBytes, sha256, url}]} · GET /api/v1/agent/download/{fileName} (X-Checksum-SHA256)
Reports (agent token) POST /api/v1/agent/report
Alert rules conditions AGENT_OFFLINE (no report within the agent's offline time), AGENT_THRESHOLD (CPU, memory, disk or load over its threshold) and AGENT_SERVICE (a watched service, process or container is not running, or collection failed); scope environmentIds and agentIds

Agent settings (POST/PUT body):

{
  "name": "erp-app-01",
  "description": "ERP application server",
  "environmentId": 2,
  "reportIntervalSeconds": 60,
  "offlineAfterSeconds": 300,
  "cpuThresholdPercent": 90,
  "memoryThresholdPercent": 90,
  "diskThresholdPercent": 90,
  "loadThreshold": 1.5,
  "watchedServices": ["nginx.service", "erp-worker"],
  "watchedProcesses": ["java"],
  "watchContainers": false
}
  • reportIntervalSeconds 15–3600; offlineAfterSeconds at least two intervals (default the larger of 300 and three intervals). Thresholds are judged on the averages of the last five minutes (disks on the newest sample); null thresholds are not checked; loadThreshold is the 1-minute load per CPU.
  • Up to 50 services (systemd units; a name without a unit type means .service) and 50 process names (as ps -o comm shows them). Containers are only readable when the agent was installed with --docker.
  • The view holds the host facts, the problems of the last evaluation, the latest sample with disks and interfaces, the watched resources and tokenPrefix (iga_<prefix>_…); the token itself is only in the 201 answer and the rotation answer.

The report (POST /api/v1/agent/report, Authorization: Bearer iga_…, JSON, optionally Content-Encoding: gzip, at most 512 KB also after decompression):

{
  "agentVersion": "1.0.0",
  "sentAt": "2026-11-21T10:15:02Z",
  "host": { "hostname": "erp-app-01", "os": "Ubuntu 22.04.5 LTS", "kernel": "6.8.0-49-generic", "arch": "amd64",
            "cpuCount": 8, "memoryTotalBytes": 34359738368, "bootTime": "2026-11-02T06:01:13Z" },
  "samples": [{
    "time": "2026-11-21T10:15:00Z",
    "cpuPercent": 27.4,
    "load": [1.92, 1.75, 1.61],
    "memory": { "totalBytes": 34359738368, "availableBytes": 13495514624, "swapTotalBytes": 2147483648,
                "swapFreeBytes": 2080374784 },
    "disks": [{ "mount": "/", "device": "/dev/sda2", "fsType": "ext4", "totalBytes": 107374182400,
                "usedBytes": 50465865728, "inodesTotal": 6553600, "inodesUsed": 512331 }],
    "network": [{ "interface": "eth0", "rxBytesPerSecond": 412000, "txBytesPerSecond": 210000, "rxErrors": 0,
                  "txErrors": 0 }],
    "processCount": 214,
    "uptimeSeconds": 1657432
  }],
  "services": [{ "name": "nginx.service", "activeState": "active", "subState": "running",
                 "since": "2026-10-14T08:00:00Z" }],
  "processes": [{ "name": "java", "count": 2 }],
  "containers": [{ "id": "3f9a1c2b7d4e", "name": "edi-translator", "image": "registry.example.com/edi:4.2.1",
                   "state": "running", "status": "Up 6 days (healthy)", "health": "healthy", "restartCount": 0,
                   "exitCode": 0, "restartPolicy": "unless-stopped", "startedAt": "2026-11-15T09:12:44Z" }],
  "errors": []
}
  • Answers: 200 {agent: {id, name}, accepted, ignored, config: {intervalSeconds, services, processes, containers}, serverTime} — the agent collects what config says, so watch lists are managed in the console. A probe ("probe": true, no samples) checks the token. 401 invalid_token, 403 agent_paused, 413 report_too_large, 400 invalid_report (the message names the field), 429 rate_limited (30 reports a minute per agent, 30 failed authentications a minute per address) with Retry-After.
  • A sample repeated for the same second is ignored, so resending after a lost answer is safe. When the agent's clock is two seconds or more off, sample times are corrected by the difference and the skew is shown on the agent; samples older than seven days or more than two minutes ahead are ignored.
  • Raw samples are kept 7 days (IG_AGENT_SAMPLE_RETENTION), hourly aggregates 400 days (IG_AGENT_HOURLY_RETENTION).

Webhooks

Incoming endpoints receive events from senders; outgoing destinations receive the accepted events of the endpoints they subscribe to; each forwarded event is a delivery with its attempts. Permissions: webhook.read, webhook.write (endpoints and destinations) and webhook.replay (replay and discard).

Resource Endpoints
Endpoints GET /api/v1/organizations/{id}/webhook-endpoints (projectId, environmentId, q) · POST /api/v1/projects/{id}/webhook-endpoints → 201 {endpoint, secret} · GET, PUT, DELETE /api/v1/webhook-endpoints/{id} · PATCH /api/v1/webhook-endpoints/{id}/state {enabled}
Destinations GET /api/v1/organizations/{id}/webhook-destinations (projectId, environmentId, status PENDING/UP/DEGRADED/DOWN, q) · POST /api/v1/projects/{id}/webhook-destinations → 201 {destination, signingSecret} · GET, PUT, DELETE /api/v1/webhook-destinations/{id} · PATCH …/state
Received events GET /api/v1/organizations/{id}/webhook-events (endpointId, status ACCEPTED/REJECTED, eventType, q idempotency key, from, to) · GET /api/v1/webhook-events/{id} (sanitized headers, redacted body, deliveries) · POST /api/v1/webhook-events/{id}/replay {destinationIds, confirmNonIdempotent}
Deliveries GET /api/v1/organizations/{id}/webhook-deliveries (destinationId, eventId, status, deadLetters=true) · GET /api/v1/webhook-deliveries/{id} (with its attempts) · POST …/replay {confirmNonIdempotent} · POST …/discard
Bulk POST /api/v1/organizations/{id}/webhook-deliveries/replay and …/discard with {deliveryIds} or {destinationId} (every dead letter of the destination, oldest first, 500 at a time) → {replayed, discarded, skipped, problems}
Receiving (public) POST /api/v1/hooks/{publicId}
Alert rules condition WEBHOOK_FAILED (a destination is DOWN: a delivery went to the dead-letter queue); scope environmentIds and destinationIds

An endpoint (POST/PUT body; version on PUT):

{
  "name": "Payment provider callbacks",
  "environmentId": 6,
  "authType": "HMAC",
  "authHeader": "X-Signature-256",
  "hmacAlgorithm": "SHA256",
  "hmacEncoding": "HEX",
  "hmacPrefix": "sha256=",
  "timestampHeader": "X-Timestamp",
  "timestampToleranceSeconds": 300,
  "eventIdSource": "JSON_PATH",
  "eventIdPath": "$.id",
  "eventTypeSource": "JSON_PATH",
  "eventTypePath": "$.type",
  "requireJson": true,
  "jsonSchema": "{\"type\":\"object\",\"required\":[\"id\",\"type\",\"data\"]}",
  "rateLimitPerMinute": 600,
  "maxBodyBytes": 262144
}
  • authType: HMAC (default) — the sender signs the raw body (or timestamp.body when timestampHeader is set) with HMAC-SHA256 or SHA512, hex or Base64, optionally prefixed; TOKEN — a shared token in authHeader (default X-Webhook-Token; Authorization: Bearer … works too); NONE. Without a secret in the request, one is generated and returned once (generateSecret: true on PUT replaces it); it is stored encrypted.
  • eventIdSource decides what makes a request a repeat: BODY_HASH (default), JSON_PATH, HEADER or NONE. A repeat is answered 200 {"status":"duplicate","eventId"} and is not forwarded again.
  • Each endpoint gets an unguessable address /api/v1/hooks/wh_…; the path is in the view (path).

Answers of the receiving address: 202 {"status":"accepted","eventId","deliveries"}; 200 duplicate; 400 invalid_json, missing_event_id; 401 missing_signature, invalid_signature, missing_token, invalid_token, missing_timestamp, timestamp_out_of_range, not_configured; 413 payload_too_large; 415 unsupported_media_type; 422 schema_invalid; 404 endpoint_not_found; 429 rate_limited and 503 endpoint_paused with Retry-After. Rejected requests are recorded (headers sanitized, no body) with their code.

A destination (POST/PUT body):

{
  "name": "ERP order intake",
  "environmentId": 6,
  "url": "https://erp.example.com/hooks/orders",
  "method": "POST",
  "headers": [{ "name": "X-Source", "value": "integrationguard" }],
  "authType": "BEARER",
  "secrets": { "token": "…" },
  "timeoutMs": 10000,
  "maxAttempts": 8,
  "initialBackoffSeconds": 30,
  "maxBackoffSeconds": 3600,
  "idempotent": true,
  "subscriptions": [{ "endpointId": 1, "eventTypes": ["payment.*"], "enabled": true }]
}
  • authType NONE, BASIC (authUsername, secret password), BEARER (token), API_KEY (authHeader, apiKey) or HMAC (signingSecret, generated and returned once when absent; null replaces it). HMAC requests carry X-IntegrationGuard-Timestamp and sha256= + hex HMAC-SHA256 of timestamp.body in X-IntegrationGuard-Signature (or authHeader). Credentials are rejected in headers.
  • Every request carries X-IntegrationGuard-Event-Id, -Delivery-Id, -Attempt, -Event-Type and Idempotency-Key: ig-{eventId}-{destinationId}; redirects are not followed; the URL is checked against the network policy on every attempt (private addresses need a rule under Network access).
  • Retries: exponential backoff from initialBackoffSeconds, doubling up to maxBackoffSeconds, with jitter; a Retry-After is respected. Refused connections and 429/503 are always retried (the destination did not process the event). Timeouts, 408, 425 and other 5xx answers are retried only when idempotent is true; otherwise the delivery goes straight to the dead-letter queue as FAILED. Other 4xx answers and redirects are PERMANENTLY_FAILED at once; so are deliveries whose attempts ran out.
  • Delivery statuses: PENDING, PROCESSING, RETRYING, DELIVERED, FAILED, PERMANENTLY_FAILED. Dead letters (failed, not yet replayed or discarded) are replayed as new deliveries (replayOfId); replaying to a destination that is not idempotent needs confirmNonIdempotent: true (409 confirmation_required otherwise).
  • subscriptions with empty eventTypes receive every event; order.* matches by prefix.

Incidents, escalation and maintenance

Resource Endpoints
Incidents GET /api/v1/organizations/{id}/incidents (state ACTIVE or one of OPEN, ACKNOWLEDGED, INVESTIGATING, RESOLVED, CLOSED; projectId, severity, assignee = me or a user id, q; paginated) · POST /api/v1/projects/{id}/incidents (declare by hand) · GET, PUT /api/v1/incidents/{id} (title, summary, severity)
Incident actions POST /api/v1/incidents/{id}/acknowledge · …/investigate · …/resolve {resolution} · …/reopen · …/close · PUT …/assignee {userId} (null unassigns) · POST …/comments {message} · GET /api/v1/projects/{id}/incident-assignees
Status-page publication POST /api/v1/incidents/{id}/status-updates {status, message} (INVESTIGATING, IDENTIFIED, MONITORING, RESOLVED; publishes the incident) · PUT …/publication {published, publicTitle}
Escalation policies GET, POST /api/v1/organizations/{id}/escalation-policies · GET, PUT, DELETE /api/v1/escalation-policies/{id} (409 policy_in_use while alert rules use it)
Maintenance windows GET /api/v1/organizations/{id}/maintenance-windows (phase UPCOMING, ACTIVE, COMPLETED, CANCELED; projectId) · POST /api/v1/projects/{id}/maintenance-windows · GET, PUT, DELETE /api/v1/maintenance-windows/{id} · POST …/cancel
  • Every action answers with the incident's full detail — incident, alerts, timeline (newest last), notifications, escalation (its steps with dueAt and sent) and the caller's permissions — so a client never needs a second read. Reading needs incident.read on the project, changes incident.manage.
  • States move OPEN → ACKNOWLEDGED → INVESTIGATING → RESOLVED → CLOSED; investigating may skip acknowledging, resolving works from every open state, a resolved incident can be reopened (OPEN again) or closed, and a closed incident cannot change (409 incident_closed). A transition that does not apply is 409 incident_state.
  • Alert rules decide how alerts become incidents: incidentMode SEPARATE (default, one incident per alert), GROUPED (alerts join the project's open grouped incident while its latest alert is less than 15 minutes old, and are announced in one digest after 5 minutes) or NONE (alerts only); escalationPolicyId needs incidents. An incident resolves itself when all its alerts are resolved.
  • A policy has 1–5 steps, each {delayMinutes, channelIds} (1–1440 minutes after the incident opened, increasing; up to 10 channels). Steps are sent while the incident stays OPEN; acknowledging, investigating or resolving stops the escalation.
  • A maintenance window ({title, description, startsAt, endsAt, scope: {all, monitorIds, integrationIds, jobIds, destinationIds, agentIds}, suppressAlerts, announce}) holds back new alerts and reminders of its items while it runs (suppressAlerts) and shows on status pages (announce). Finished and canceled windows cannot change (409 maintenance_over); a running window keeps its start.

Notification channels are of type EMAIL (recipients), SLACK and TEAMS (url: the incoming webhook), TELEGRAM (botToken, chatId) or WEBHOOK (url, optional signingSecret of 16–200 characters). The address, token and secret are write-only: views carry only target (the host messages go to), chatId and signed; leaving them out of a PUT keeps the stored ones, and the type cannot change. Webhook channels receive JSON with X-IntegrationGuard-Event (alert.fired, alert.renotified, alert.resolved, incident.updated, incident.escalated, incident.resolved, incident.assigned, report, test), X-IntegrationGuard-Delivery-Id and Idempotency-Key; signed channels add X-IntegrationGuard-Timestamp and X-IntegrationGuard-Signature: sha256=<HMAC-SHA256 of "timestamp.body">. Deliveries list their event, incidentId and channelType; a channel that already received 60 messages in the last hour gets SUPPRESSED entries instead of more messages.

Status pages

Resource Endpoints
Pages (console) GET, POST /api/v1/organizations/{id}/status-pages · GET, PUT, DELETE /api/v1/status-pages/{id} · GET …/preview (what visitors see, also for disabled pages) · GET /api/v1/organizations/{id}/status-page-subjects (items that can be components)
Visitors GET /api/public/status/{slug} (no session; Cache-Control: public, max-age=30; 403 status_page_private for private pages, 404 for unknown or disabled ones, 429 above 120 requests per minute and address) · GET /api/v1/status/{slug} (private pages, for signed-in members of the organization)

A page (POST/PUT body; version is required on PUT, 409 version_conflict otherwise):

{
  "slug": "acme-logistics",
  "title": "Acme Logistics status",
  "description": "Live status of order intake, shipping and invoicing.",
  "visibility": "PUBLIC",
  "enabled": true,
  "groups": [
    { "name": "Order intake", "components": [
      { "name": "Order API", "description": "Orders from the web shop", "subjectType": "MONITOR", "subjectId": 1 },
      { "name": null, "description": null, "subjectType": "INTEGRATION", "subjectId": 2 } ] }
  ],
  "brandColor": "#0F766E",
  "logo": "data:image/png;base64,iVBORw0KGgo…",
  "supportUrl": "mailto:support@example.com",
  "footerText": "Times are UTC.",
  "uptimeDays": 90,
  "showIncidentHistory": true,
  "version": 3
}
  • slug: 3–64 lowercase letters, digits and hyphens, unique in the installation. Components point at monitors, integrations, jobs, webhook destinations or agents of the organization; a null name shows the item's current name.
  • logo is a PNG or JPEG data URL of at most 256 KB whose bytes must really be such an image (SVG is refused); send "" to remove it and leave it out to keep it. supportUrl is an https, http or mailto: address.
  • What visitors get is built for them alone: each component's state (OPERATIONAL, DEGRADED, OUTAGE, MAINTENANCE, UNKNOWN) with daily uptime for uptimeDays (7–90), published incidents with their public updates, announced maintenance and, when enabled, the incident history. Internal names, alerts, comments and assignees never appear.

Logs and metrics

Resource Endpoints
Ingestion (API key with the ingest scope) POST /api/v1/ingest/logs · POST /api/v1/ingest/metrics — both ?project=<slug> for organization-wide keys, Content-Encoding: gzip accepted, answer 202 {accepted, rejected, errors[{index, message}]} (metrics also series)
Log explorer GET /api/v1/organizations/{id}/logs (projectId, environment, application, level (the lowest level shown), q (up to 200 characters), traceId, correlationId, executionId, integrationId, jobId, errorGroupId, from, to (default the last 24 hours), cursor, size) → {items, next, from, to}, newest first · GET …/logs/histogram (same filters, buckets) · GET …/logs/{entryId} · GET …/log-sources
Error groups GET /api/v1/organizations/{id}/log-errors (projectId, application, status OPEN/RESOLVED/IGNORED, q, sort recent/occurrences/new) · GET /api/v1/log-errors/{id} (hourly occurrences for 7 days and recent entries) · PUT …/status {status}
Metrics GET /api/v1/organizations/{id}/metrics/catalog (built-in sources with their statistics, your custom metrics, intervals) · GET …/metrics/query (source, stat, projectId, subjectIds, metric, tags = key:value,key:value, groupBy (a tag key), from, to, interval 1m/5m/15m/1h/6h/1d)

A log batch — an object with defaults and entries, a JSON array, or newline-delimited JSON (application/x-ndjson):

{
  "application": "order-service",
  "environment": "production",
  "entries": [
    { "timestamp": "2026-11-21T09:14:03.120Z", "level": "ERROR", "message": "Inventory lookup for order 10412 timed out",
      "logger": "com.acme.orders.OrderFlow", "traceId": "4bf92f3577b34da6", "integration": "order-export",
      "exception": { "type": "java.net.SocketTimeoutException", "stackTrace": "java.net.SocketTimeoutException: …" },
      "attributes": { "orderId": "10412", "warehouse": "EU-1" } }
  ]
}
  • Each entry needs a message and an application (in the entry or the batch); level is TRACE, DEBUG, INFO (default), WARN, ERROR or FATAL. Common alternative names are understood (msg, severity, service, stack_trace, error, mdc, trace_id, …). integration and job link an entry to an integration or job by key.
  • Entries are validated one by one: bad ones are listed in errors, the others are stored. Timestamps may be at most an hour ahead and not older than the retention (14 days by default). Limits: 1,000 entries and 2 MB per request, 60,000 entries per key and minute (429), messages 16,000 and stack traces 32,000 characters, 50 attributes.
  • Credentials in messages, stack traces and attributes are masked before they are stored. ERROR and FATAL entries are grouped by fingerprint (application, exception type and the message with ids, numbers and quoted values replaced).

A metric batch — {"project": "…", "metrics": [...]} or an array of points:

{ "metrics": [
  { "name": "orders.processed", "type": "counter", "value": 42, "tags": { "region": "eu" } },
  { "name": "orders.queue_depth", "type": "gauge", "value": 118, "timestamp": "2026-11-21T09:15:00Z" },
  { "name": "carrier.label_latency_ms", "type": "timer", "value": 412.5, "unit": "ms" } ] }
  • Names are lowercase ([a-z][a-z0-9_.], up to 100 characters); type is counter (the increment since the last point), gauge (default) or timer; up to 5 tags of 1–100 characters. A point may be up to 24 hours old and is stored as minute and hourly aggregates (count, sum, min, max, last), kept 7 and 400 days.
  • A project may create 500 distinct series (name and tags); ids and timestamps do not belong in tags. Limits: 1,000 points per request, 20,000 per key and minute (429).
  • Queries return {source, label, stat, unit, interval, from, to, series[{key, label, summary, points[{t, v}]}], truncated} with at most 10 series and 1,500 points; built-in sources cover monitors, integrations, jobs, webhooks, agents, alerts, incidents and logged errors. Logs and metrics are shown to members with telemetry.read on the project; resolving or ignoring error groups also needs alert.acknowledge.

Dashboards and reports

Resource Endpoints
Dashboards GET, POST /api/v1/organizations/{id}/dashboards · GET, PUT, DELETE /api/v1/dashboards/{id} · POST …/duplicate · GET /api/v1/organizations/{id}/subject-statuses (projectId, kinds, problemsOnly, limit; worst first)
Reports GET /api/v1/organizations/{id}/reports/{type} (projectId, from, to, slaTarget) → the report as JSON · GET …/reports/{type}/download?format=PDF|XLSX|CSV (same parameters)
Report schedules GET, POST /api/v1/organizations/{id}/report-schedules · PUT, DELETE /api/v1/report-schedules/{id} · POST …/send (202: queued for e-mail now)
  • A dashboard is {name, description, widgets, version}; each widget is {id, type, title, width (1–4 columns), config} with type metric_chart, metric_stat (with warning, critical and direction above/below), status_list, alerts, incidents, log_errors or note. Every member may open dashboards; dashboard.manage changes them, and each widget shows only the data its viewer may read. PUT needs version (409 version_conflict).
  • Report type: AVAILABILITY, SLA (against slaTarget, default 99.9), INTEGRATIONS, JOBS, WEBHOOKS, SFTP, INFRASTRUCTURE or INCIDENTS. Times are UTC; a report covers one project or every project the reader may see with report.read, and holds at most 5,000 rows. CSV cells that a spreadsheet would run as formulas are prefixed with an apostrophe.
  • A schedule is {name, reportType, projectId, format, frequency (DAILY, WEEKLY, MONTHLY), timeOfDay ("07:30"), timezone (IANA), dayOfWeek (1 = Monday, weekly only), slaTarget, recipients, enabled}; daily reports cover the previous day, weekly ones the previous Monday-to-Sunday week and monthly ones the previous calendar month, in the schedule's time zone. Reports up to 8 MB are attached to the e-mail; larger ones are linked. Changing schedules needs report.manage.

License of the installation (/api/v1/license)

Every signed-in user may read the license; only system administrators change it. These endpoints stay available while the installation is read-only, so a license can always be restored.

Endpoint Purpose
GET /api/v1/license the state the console shows: {mode (ACTIVE, GRACE, RESTRICTED, UNLICENSED), reason, message, restricted, source (NONE, ONLINE, OFFLINE), licenseId, keyHint, customerName, plan, planName, installationId, installationName, issuedAt, tokenExpiresAt, licenseExpiresAt, renews, graceEndsAt, serverStatus, lastValidationAt, lastValidationOkAt, lastValidationError, nextValidationAt, validationIntervalHours, graceDays, entitlements:[{code, kind (LIMIT, FEATURE), limit, unlimited, enabled, used}], serverUrl (null without a license server), onlineActivation (whether a license server is set), licenseFileUrl (the website's License page with this installation's ID, from IG_LICENSE_FILE_URL), verificationKeys, activationGraceUntil, licenseVersion, notice}
POST /api/v1/license/activate {licenseKey, installationName?} → activates online against IG_LICENSE_SERVER_URL and answers the new state. Errors: 409 online_activation_off (no license server is set: import a license file), 400 invalid_license, 409 installation_limit, 403 license_suspended / license_revoked / license_expired, 502 license_server_unreachable (import a file instead), 502 license_unverifiable (a token this release cannot verify)
POST /api/v1/license/offline {content} — the text of a license file → 400 validation_failed (field content) for a file of another installation, an expired, damaged or foreign-signed file; 409 older_license for an older version of the installed license
POST /api/v1/license/validate validates now (online licenses only, 409 not_online otherwise); notice explains a failed attempt — the license keeps working
DELETE /api/v1/license removes the license (frees its slot at the license server when reachable; notice says when it was not)
  • While the mode is RESTRICTED or UNLICENSED every other change under /api/ answers 403 {"code":"license_restricted","detail":…} — including integration and job reports, agent reports and incoming webhooks. Reading, exports (CSV, and PDF/Excel when licensed), signing in and out keep working.
  • Creating beyond a limit answers 403 plan_limit_reached (monitors; integrations and jobs together; active users — new accounts and re-enabled ones); a feature the plan lacks answers 403 feature_not_licensed (workflow and SFTP monitors, background jobs, webhook endpoints and destinations, chat and webhook channels, escalation policies, PDF and Excel reports, report schedules). What exists already keeps working after a downgrade.

The website's license files (/api/license-file, website)

POST https://integrationguard.improvedata.me/api/license-file with licenseKey, installationId and optionally installationName (JSON or a form) makes the installation's license file: JSON {fileName, content, licenseId, customerName, plan, kind, validUntil, installationId, installationName, again, installations:{used, allowed}}, or the file itself with Accept: application/vnd.integrationguard.license. Errors (problem JSON with code): 400 invalid_key / invalid_installation, 404 not_found, 403 not_active (suspended or revoked), 409 expired, 409 installation_limit, 429 too_many_requests, 503 no_signing_key. The website's other forms (/api/trial, /api/quote, /api/support, /api/renew) take the ticket and proof of work of their pages.

Licensing API of installations (/api/license/v1, commercial API)

For a Vendor Cloud. Served on the license domain (license.integrationguard.improvedata.me), or on the public domain when none is configured. No session, cookie or CSRF token. Tokens are compact JWS (EdDSA, typ: ig-license+jwt, kid) bound to one installation ID; installations verify them with the public keys built into their release.

Endpoint Request → answer
GET /api/license/v1/ping {ok, time, signing} (signing: false while no signing key is configured)
POST /api/license/v1/activate {licenseKey, installationId (UUID), installationName, productVersion, fingerprint (SHA-256 hex), usage:{monitors, integrations, users}, requestId} → {status: "ACTIVE", token, activationSecret, licenseId, installation, validationIntervalHours, graceDays}; repeating a requestId is idempotent; 404 invalid_license, 409 installation_limit, 403 license_suspended / license_revoked / license_expired, 429 (per address and installation), 503 licensing_unavailable
POST /api/license/v1/validate {licenseId, installationId, productVersion, fingerprint, usage, licenseVersion} signed with IG-License-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(activationSecret, t + "." + body)> (5-minute tolerance) → {status (ACTIVE, SUSPENDED, REVOKED, EXPIRED, DEACTIVATED), token (ACTIVE only), message, validationIntervalHours, graceDays}; 401 invalid_signature, 404 unknown_installation
POST /api/license/v1/deactivate {licenseId, installationId, reason}, signed like validation → frees the installation's slot

Only licensing data is sent: no monitor, result, log, payload or credential ever leaves an installation. Every request is recorded in license_validation_events (90 days) without its signature or secret.

Public endpoints of the commercial API

Endpoint Purpose
GET /api/public/system/info product, edition, version and server time
GET /api/public/catalog?product=integrationguard published plans with the prices in effect now, their entitlements (limits and features) and highlights; Cache-Control: public, max-age=300; 404 for an unknown product
GET /api/public/releases published releases, newest first: [{version, title, notes, securityUpdate, upgradeFromVersion, requirements, releaseDate, latest}] — metadata only, files are downloaded in the portal

Prices are integers in the currency's minor unit (amountMinor: 5900 is $59.00). A plan with pricing: "QUOTE" has no prices ("contact sales"); a limit with neither limit nor unlimited is set per agreement.

Customer portal API (/api/portal)

The customer portal of the Vendor Cloud (served on the app domain, app.integrationguard.improvedata.me, or on the public domain when no app domain is configured). Browser sessions use the IG_PORTAL_SESSION cookie (HttpOnly, SameSite=Lax, Secure in production; 2 hours idle, 7 days at most) and the usual double-submit CSRF token from GET /api/portal/auth/csrf. Portal sessions and administrator sessions are separate: one never opens the other.

Endpoint Purpose
GET /api/portal/auth/csrf CSRF token (sets the XSRF-TOKEN cookie)
GET /api/portal/auth/registration {emailAvailable, countries:[{code,name}], plans:[{code,name,trialDays,quote,prices}]} for the sign-up form
POST /api/portal/auth/register {companyName, contactName, email, password, country, phone?, billing?, acceptTerms, plan?, interval?} → 202 {email, next: "CONFIRM_EMAIL"}
POST /api/portal/auth/verify-email {code} from the confirmation e-mail → confirms the address and signs in (PortalMe)
POST /api/portal/auth/verify-email/resend {email} → 202
POST /api/portal/auth/login {email, password} → PortalMe and the session cookie
GET /api/portal/auth/me {userId, email, displayName, role (OWNER, MEMBER), emailVerified, lastLoginAt, customer:{id, companyName, status}, supportAccess:{staffName, expiresAt, readOnly} | null}
POST /api/portal/auth/logout ends the session → 204
POST /api/portal/auth/password-reset {email} → 202 (always)
POST /api/portal/auth/password-reset/confirm {code, password} → 204; every session of the account ends
POST /api/portal/auth/password {currentPassword, newPassword} → 204; the other sessions end
GET /api/portal/auth/sessions active sessions [{id, createdAt, lastSeenAt, expiresAt, ipAddress, userAgent, current, supportAccess}]; signing out a support access session ends it
POST /api/portal/auth/support-access {token} from the one-time link an administrator received → {userName, userEmail, expiresAt} and a read-only session cookie (see Support access below)
DELETE /api/portal/auth/sessions/{id} signs one session out → 204
GET /api/portal/dashboard {customer, contactName, emailVerified, billingComplete, signup:{planCode, planName, interval}, nextSteps:[{code, title, description, href}], memberSince}
GET /api/portal/account company and billing details with version
PUT /api/portal/account {companyName, contactName, phone, country, billing:{name, email, addressLine1, addressLine2, postalCode, city, region, country, taxId}, version} (owners only)
  • Registration, e-mail confirmation and password resets never reveal whether an address has an account: a second registration answers exactly like the first (the owner of the address receives a "you already have an account" e-mail instead), and reset requests always answer 202.
  • Validation reports every problem at once (validation_failed with one entry per field, nested fields as billing.country). Countries are ISO 3166-1 alpha-2 codes. A plan must be a published plan; interval (MONTH, YEAR) must be one the plan has a price for and is dropped for plans priced on request.
  • Codes in e-mails are 24 characters (ABCD-EFGH-…), valid once — 24 hours for address confirmation, 30 minutes for password resets — and compared without separators or case. E-mail links carry them after # (/account/verify-email#code=…), so they never reach server logs. At most three codes per purpose and hour are sent to one account.
  • PUT /api/portal/account answers 409 version_conflict when the details changed since they were read, and 403 for members. Billing details are complete with a name, street, city and country (the postal code is optional).
  • Errors: 401 invalid_credentials (wrong password, unknown address or temporarily locked account — deliberately the same), 403 email_not_verified, 403 account_suspended, 429 rate_limited, 503 email_unavailable (registration without an SMTP server).

Subscription, invoices and payments (/api/portal/billing)

The billing of a customer account (Phase 8). Everyone signed in can read it; only the account owner changes the subscription or pays (403 owner_required for members). A suspended account can read but not buy. Amounts are integers in minor units, timestamps UTC; a Quote is {currency, lines:[{description, quantity, unitAmountMinor, amountMinor, periodStart, periodEnd}], subtotalMinor, discountMinor, couponCode, couponSummary, tax:{name, rateBp, note}, taxMinor, totalMinor} (credit lines are negative).

Endpoint Purpose
GET /api/portal/billing {subscription, trialAvailable, openInvoices, recentInvoices, openCheckout, billingDetailsComplete, purchasesOpen, paymentMethods, owner}
POST /api/portal/billing/quote {planCode, interval?, currency?, couponCode?} → {planCode, planName, interval, currency, quote, periodStart, periodEnd, trialConversion, paymentMethods, billingDetailsComplete, purchasesOpen}; an invalid code answers 400 on field couponCode with the reason
POST /api/portal/billing/trial {planCode, interval?, currency?} → SubscriptionView (TRIALING); once per customer (409 trial_used), 400 no_trial for plans without one
POST /api/portal/billing/checkout {planCode, interval?, currency?, couponCode?, provider, savePaymentMethod?} → CheckoutView; buys a plan or converts the trial (its first paid period starts when the trial ends)
GET /api/portal/billing/checkout/{id} CheckoutView {id, purpose (NEW_SUBSCRIPTION, UPGRADE, INVOICE), status, provider, redirectUrl, invoiceId, amountDueMinor, currency, failureMessage, instructions, expiresAt}
POST /api/portal/billing/checkout/{id}/refresh asks the provider, server to server, what became of the checkout (the return page calls it)
POST /api/portal/billing/checkout/{id}/cancel ends an open checkout; its coupon reservation and unpaid draft are released
POST /api/portal/billing/subscription/change/preview {planCode, interval?} → {planCode, planName, interval, timing (IMMEDIATE, NEXT_PERIOD), effectiveAt, quote, chargesSavedMethod, savedMethod, paymentMethods}
POST /api/portal/billing/subscription/change {planCode, interval?, provider?, savePaymentMethod?} → CheckoutView; status APPLIED (no payment needed), SCHEDULED (next renewal), or a checkout for the prorated difference (the saved card is charged when there is one)
DELETE /api/portal/billing/subscription/pending-change keeps the current plan → SubscriptionView
POST /api/portal/billing/subscription/cancel {reason?} → ends at the period end (cancelAtPeriodEnd); 409 subscription_suspended while suspended
POST /api/portal/billing/subscription/reactivate undoes a scheduled cancellation; 409 not_canceled
DELETE /api/portal/billing/payment-method forgets the saved card; renewals are then invoiced
GET /api/portal/billing/invoices paged InvoiceSummary {id, number, kind (SUBSCRIPTION, RENEWAL, PRORATION, MANUAL), status (PENDING, OVERDUE, PAID, PARTIALLY_REFUNDED, REFUNDED, VOID), currency, totalMinor, amountDueMinor, amountRefundedMinor, issuedAt, dueAt, paidAt, periodStart, periodEnd, subscriptionId} (drafts are never listed)
GET /api/portal/billing/invoices/{id} InvoiceDetail: lines, discount, tax, totals, billTo and seller (copied when issued), paymentInstructions (bank details while open), creditNotes, footer
GET /api/portal/billing/invoices/{id}/pdf the PDF (Content-Disposition: attachment; filename="invoice-INV-2026-00042.pdf", Cache-Control: private, no-store)
POST /api/portal/billing/invoices/{id}/pay {provider, savePaymentMethod?} → CheckoutView for an open invoice (409 invoice_not_open; bank transfers are paid with the details on the invoice, 400 use_transfer)
GET /api/portal/billing/payments paged {id, invoiceId, invoiceNumber, provider, amountMinor, refundedMinor, currency, status (PENDING, SUCCEEDED, FAILED, PARTIALLY_REFUNDED, REFUNDED), method, failureMessage, occurredAt}
GET /api/portal/notifications paged billing e-mails sent to the account {id, template, subject, status (PENDING, SENT, FAILED), createdAt, sentAt} (no bodies)
GET /api/portal/billing/sandbox/{ref} development only: the sandbox payment page {ref, checkoutId, description, amountMinor, currency, savePaymentMethod, status} (404 when the sandbox is off)
POST /api/portal/billing/sandbox/{ref} development only: {outcome: PAY, PAY_AND_SAVE, PAY_AND_SAVE_DECLINING, DECLINE, CANCEL} → a signed sandbox event through the webhook pipeline
  • SubscriptionView is {id, status (TRIALING, ACTIVE, PAST_DUE, SUSPENDED, CANCELED, EXPIRED), origin, planCode, planName, interval, currency, amountMinor, trialEndsAt, currentPeriodStart, currentPeriodEnd, cancelAtPeriodEnd, accessUntil, canceledAt, endedAt, paymentMethod:{provider, providerName, summary, automatic}, discount:{code, summary, periodsRemaining}, pendingChange:{planCode, planName, interval, amountMinor, effectiveAt}, pastDueSince, nextRetryAt, entitlements:[{code, name, kind, unit, limit, unlimited, enabled, overridden}], createdAt, version}.
  • paymentMethods lists {code, name, hosted, savesPaymentMethod, currencies} for the enabled, fully configured providers that accept the currency (plus SANDBOX in development). A hosted checkout answers redirectUrl (the provider's page); bank transfer answers status: AWAITING_TRANSFER with instructions and an issued invoice.
  • Coming back from the provider proves nothing. The provider returns the browser to /portal/checkout/return?checkout=chk_… (&canceled=1 when the customer gave up); the page only asks the server. The checkout completes when the provider's signed event arrives or the server's own lookup (refresh) confirms it.
  • Errors: 400 billing_details_required (no billing name, street, city and country yet), 503 billing_not_configured (the seller's name and address are not set: online purchases are closed), 409 subscription_exists, 400 unknown_plan, 400 contact_sales (quoted plans), 400 price_unavailable, 400 same_plan, 409 invoice_open (pay the open invoice before changing plan), 502 provider_unavailable (the payment page could not be opened).

Licenses and installations (/api/portal/licenses, /api/portal/installations)

Endpoint Purpose
GET /api/portal/licenses {licenses:[{id, status, origin, planCode, planName, key (account owner only), keyHint, startsAt, expiresAt, renews, installationsUsed, installationsAllowed, entitlements, subscriptionId, licenseVersion, …}], deactivationsPerMonth, deactivationsLeft, offlineFilesEnabled, owner}
GET /api/portal/licenses/{id} {license, installations:[…], history:[{installation, installationName, action, actor, reason, at}], deactivationsLeft, offlineFilesEnabled, owner}
POST /api/portal/licenses/{id}/offline-file owner: {installationId, name} → the license file (application/vnd.integrationguard.license, attachment); takes an installation slot (409 installation_limit); 409 offline_files_disabled
GET /api/portal/installations every installation of the account: {id, installationId, name, mode (ONLINE, OFFLINE), status (ACTIVE, DEACTIVATED), productVersion, licenseId, planName, activatedAt, lastSeenAt, offlineExpiresAt, usage}
POST /api/portal/installations/{id}/deactivate owner: frees the slot (online installations learn it at their next validation); limited to deactivationsPerMonth per 30 days (409 deactivation_limit)

Downloads (/api/portal/releases, /api/portal/downloads, /api/downloads/{token})

Published releases of the Customer Edition and their files (Phase 10). A customer can download with an ACTIVE, unexpired license or a TRIALING, ACTIVE or PAST_DUE subscription; the entitlement is checked again on every request, including each use of a link.

Endpoint Purpose
GET /api/portal/releases {canDownload, unavailableReason, latestVersion, releases:[{id, version, title, notes, securityUpdate, upgradeFromVersion, requirements, dockerImages:[{name, tag, digest}], releaseDate, latest, artifacts:[{id, kind (PACKAGE, SBOM, DOCUMENTATION, OTHER), fileName, sizeBytes, sha256}]}], installations:[{id, name, productVersion, upgradeAvailable, securityUpdate}], linkMinutes, linkMaxUses}
GET, HEAD /api/portal/downloads/{artifactId} the file with the portal session (Content-Disposition: attachment, X-Checksum-Sha256, Accept-Ranges: bytes, 206 for a Range, 416 for a range past the end); recorded as a download
POST /api/portal/downloads/{artifactId}/link {url, fileName, sha256, sizeBytes, expiresAt, maxUses}: a personal link for curl or wget on a server without a browser
GET, HEAD /api/downloads/{token} the file behind a link, without a session or CSRF token
  • A link's token is 32 random bytes, stored as its SHA-256 only. It works for the minutes and complete downloads set in the administration (default 60 minutes, 3 downloads): a request for the whole file uses one download, a Range request that resumes needs one used already, and HEAD only checks the link. Withdrawing the release revokes its links.
  • Errors: 403 not_entitled, 403 support_access_read_only (support sessions do not download), 429 too_many_links (50 links that still work per account), 404 for an unknown file or link, 410 download_link_expired, 410 download_link_used, 416 download_not_started (a link's first request must start at byte 0), 503 file_unavailable when the file is missing from the volume.

Support requests (/api/portal/support)

Everyone in the account sees and answers the account's requests; nobody sees another account's (404).

Endpoint Purpose
GET /api/portal/support/limits {attachmentMaxBytes, maxAttachments} for the request form
GET /api/portal/support/tickets?closed=false&page= paged {id, number (SUP-2026-00012), subject, category, status, lastMessageAt, createdAt}
POST /api/portal/support/tickets {subject, category (INSTALLATION, LICENSING, PAYMENT, MONITORING, TECHNICAL, FEATURE_REQUEST, OTHER), body, attachmentIds?} → the request
GET /api/portal/support/tickets/{id} {id, number, subject, category, status, openedBy, createdAt, closedAt, messages:[{id, author, fromSupport, body, createdAt, attachments:[{id, fileName, sizeBytes, sha256}]}], attachmentMaxBytes} (internal notes of the vendor team are never included)
POST /api/portal/support/tickets/{id}/messages {body, attachmentIds?}; a reply to a request that waits for the customer or is closed opens it again
POST /api/portal/support/tickets/{id}/close closes the request
POST /api/portal/support/uploads?fileName= the raw file as the request body → {id, fileName, sizeBytes, sha256}; refer to it in attachmentIds within 24 hours (at most 5 per message)
GET /api/portal/support/attachments/{id} an attachment, always as application/octet-stream with Content-Disposition: attachment and X-Content-Type-Options: nosniff
  • Statuses: OPEN (support answers next), IN_PROGRESS, WAITING_ON_CUSTOMER, CLOSED. The customer is e-mailed when support replies; the support address set in the administration (or the assignee) when the customer writes.
  • Errors: 400 validation_failed (fields subject, category, body, attachmentIds), 413 file_too_large (past the size set in the administration, 25 MB by default), 422 empty_file, 429 ticket_quota_exceeded (20 new requests per account and 24 hours), 429 upload_quota_exceeded (100 files or 1 GB per account and 24 hours).

Support access

An administrator with customers.impersonate can open a read-only view of a customer's portal, with a reason of at least ten characters that the customer is shown:

  • The administration receives a one-time link https://<portal host>/account/support-access#code=… (the code is after #, so it never reaches server logs). It must be opened within two minutes; the session then lasts for the minutes set in the administration (default 30, 5–120) and cannot be extended.
  • The session acts as the chosen portal user (the owner by default) and can only read: every request other than GET, HEAD, OPTIONS and sign-out answers 403 support_access_read_only. License keys are hidden and software cannot be downloaded.
  • The customer is e-mailed when the session starts, sees it in Sign-in & security and can end it there; the portal shows a banner with the staff member's name and the end time on every page. Starting, opening and ending are audited (customer.support_access_granted, …_started, …_ended).

Payment webhooks (/api/webhooks/payments/{provider})

POST only, no session, CSRF token or API key: each provider's adapter verifies the delivery itself — Stripe's Stripe-Signature (HMAC-SHA256 of t.body, 5-minute tolerance), PayPal's verify-webhook-signature call with the configured webhook id, Paddle's Paddle-Signature (ts;h1), the sandbox's Sandbox-Signature. Register the URL the administration shows under Payment methods (https://<portal host>/api/webhooks/payments/stripe, …/paypal, …/paddle).

  • 200 {received, accepted, duplicates} once the events are stored: each (provider, event id) is stored once and processed in the background (a repeat answers duplicates: 1 and changes nothing).
  • 400 {received: false, error} for an unknown or disabled provider, a missing or wrong signature, a stale timestamp or a body over 512 KB; nothing is stored. 503 when the signature cannot be checked right now (PayPal's verification API unreachable), so the provider delivers again. Nginx limits the route to POST, bodies of 1 MB and the ig_webhooks rate limit.
  • Processing is idempotent and moves state forward only: a payment for another amount or currency, a second payment of a paid invoice, or one for an account that already subscribed is recorded and flagged for finance (payment.needs_review in the audit log) instead of being applied.

Billing administration (/api/admin)

Vendor administration endpoints of Phase 8; each needs an active (MFA-completed) administrator session and the permission shown (reads need ….read, changes ….manage). Lists are paged (page, size up to 100).

Endpoints Permission Purpose
GET, PUT /api/admin/billing/settings settings seller (name, address, country, e-mail, tax id), invoice and credit note prefixes, footer, payment terms, default trial, renewal reminder, retry schedule ("1,3,5"), grace days, upgrade proration (IMMEDIATE_PRORATED, NEXT_PERIOD); version required (409 version_conflict)
GET, POST /api/admin/billing/tax-rates, PUT, DELETE …/{id} settings {name, country (null: default), ratePercent ("19" or "12.5"), exemptWithTaxId, note, active}; one active rate per country (409 tax_rate_exists)
GET /api/admin/billing/providers[/{code}], PUT …/{code}, POST …/{code}/test settings {displayName, enabled, currencies, settings:{…}, secrets:{…}, clearSecrets:[…], version}; secrets are write-only (the view answers secrets: {secretKey: true}), encrypted at rest; test makes a harmless authenticated call
GET, POST /api/admin/coupons, GET, PUT …/{id} coupons {code, name, discountType (PERCENT, AMOUNT), percent, amountMinor, currency, duration (ONCE, REPEATING, FOREVER), durationPeriods, planCodes, billingInterval, newCustomersOnly, maxRedemptions, validFrom, validUntil, active}; code and discount cannot change once created
GET /api/admin/catalog, GET, POST /api/admin/catalog/plans, PUT …/plans/{id} catalog plans with prices, entitlements ({code: {limit} | {unlimited: true} | {enabled: true}}), highlights and live subscription counts
POST …/plans/{id}/prices, DELETE …/plans/{id}/prices/{priceId} catalog {currency, interval, amountMinor} replaces the current price from now on; ending the last price of a published plan answers 409 last_price
POST …/plans/{id}/publish, POST …/plans/{id}/retire, PUT /api/admin/catalog/entitlements/{code} catalog publishing needs a price (409 no_price); retired plans keep their subscriptions
GET /api/admin/customers, GET …/{id} customers search (query, status); detail with users, subscriptions, invoices, payments and notes
POST …/{id}/suspend ({reason}), POST …/{id}/reactivate, POST …/{id}/notes, PUT …/{id}/billing customers suspension signs the account out at once
GET /api/admin/subscriptions, GET …/{id} subscriptions list and detail with the event history
POST /api/admin/subscriptions subscriptions manual (enterprise) subscription: {customerId, planCode, interval, currency, amountMinor?, provider (MANUAL, BANK_TRANSFER), periodEnd?, issueInvoice?, overrides?, note?}
POST …/{id}/change-plan, …/extend, …/cancel ({when: NOW | PERIOD_END, reason}), …/reactivate, …/discount, PUT …/{id}/entitlements subscriptions every change is a subscription event and audited
GET /api/admin/invoices, GET …/{id}, GET …/{id}/pdf invoices search by number, company or e-mail; customer filter
POST /api/admin/invoices invoices manual invoice {customerId, currency, lines:[{description, quantity, unitAmountMinor}], provider, dueDays?, notes?}, issued and e-mailed at once
POST …/{id}/void ({reason}), POST …/{id}/resend invoices only unpaid invoices are voided; numbers are never reused
POST /api/admin/invoices/{id}/payments payments.manage records a bank transfer or other payment: {provider (BANK_TRANSFER, MANUAL), reference, amountMinor (the full amount due), paidOn?, note?, reconciliation?}; invoices meant for a card provider need a documented reconciliation
POST /api/admin/invoices/{id}/reconcile payments.manage asks the providers about the invoice's checkouts and pending payments → {results:[…]}
GET /api/admin/payments, GET …/{id}, GET /api/admin/payments/events, POST …/events/{id}/retry payments payments (filters status, provider, query), refunds of a payment, received provider events (failed ones can be processed again)
POST /api/admin/payments/{id}/refunds refunds.manage {amountMinor?, reason, idempotencyKey (8–64 chars, one per form), cancelSubscription?}; a repeated key answers the same refund; a credit note is issued when the provider confirms
GET /api/admin/system/jobs, POST …/{id}/retry, GET /api/admin/system/emails, POST …/{id}/retry settings the worker's queues: workflow jobs (dead ones can be retried) and the e-mail outbox, without bodies or payloads

Licensing administration (/api/admin)

Phase 9 endpoints; permissions licenses.read / licenses.manage, installations.read / installations.manage, settings.read / settings.manage. The license key itself is never returned to administrators (only keyHint); customers see it in their portal and receive it by e-mail.

Endpoints Permission Purpose
GET /api/admin/licenses (status, origin SUBSCRIPTION/MANUAL, query, customer), GET …/{id} licenses list and detail (entitlements and their source, installations, activations, warnings)
GET …/{id}/validations licenses the license server requests of its installations (paged)
POST /api/admin/licenses licenses.manage manual license {customerId, planCode, expiresAt, maxInstallations?, entitlements?: {code: {limit, unlimited, enabled}}, notes?}; the key is e-mailed to the owner
POST …/{id}/reissue ({deactivateInstallations, reason?}), …/extend ({expiresAt, reason?}, manual licenses), …/suspend ({reason}), …/reactivate, …/revoke ({reason}), …/transfer ({customerId, reason}) licenses.manage each bumps the license version where installations must learn about it, and is audited
PUT …/{id}/entitlements ({overrides} or {reset: true}), PUT …/{id}/installation-limit ({maxInstallations}, null = default), PUT …/{id}/notes licenses.manage own entitlements make the license CUSTOM; reset follows the subscription again
POST …/{id}/offline-file licenses.manage {installationId, name} → a license file for that installation
GET /api/admin/installations (status, query, license), POST …/{id}/deactivate ({reason}) installations every installation with its last address and reported usage
GET, PUT /api/admin/licensing/settings settings {validationIntervalHours (1–168), graceDays (0–90), onlineTokenDays (1–90), defaultMaxInstallations, deactivationsPerMonth, offlineFilesEnabled, version}; validations must fit twice into a token's lifetime
GET /api/admin/licensing/keys settings.read {signingAvailable, problem, activeKeyId, keys:[{kid, algorithm, publicKey, status (ACTIVE, NEXT, RETIRED), firstSeenAt, lastUsedAt}], releaseKeyFile} — the public key file releases embed

Vendor administration: releases, support, customers and reports (/api/admin)

Phase 10 endpoints. Reads need the ….read permission, changes ….manage (releases.*, support.*, customers.*, subscriptions.*); customers.impersonate starts support access, downloads.read lists downloads, reports.read reads the reports, payments.read lists refunds and settings.* covers the administration settings.

Endpoints Permission Purpose
GET /api/admin/releases (status, query), POST, GET, PUT, DELETE …/{id} releases {version (semantic), title, notes, securityUpdate, upgradeFromVersion, requirements, dockerImages:[{name, tag, digest}], releaseDate, rowVersion}; only drafts are deleted; version and images are fixed once published (409 release_published)
POST …/{id}/publish ({notifyCustomers}), POST …/{id}/withdraw ({reason}) releases.manage publishing needs an installation package or a container image (409 release_incomplete); a withdrawn release can be offered again; customers are e-mailed on the first publication only, once each
PUT …/{id}/artifacts?fileName=&kind=&sha256= releases.manage the raw file as the body (drafts only), streamed to the files volume; the server computes the SHA-256 and refuses a differing expected one (422 checksum_mismatch); 409 artifact_exists, 413 file_too_large past IG_MAX_ARTIFACT_MEGABYTES
DELETE …/{id}/artifacts/{artifactId}, GET …/{id}/artifacts/{artifactId}/file releases remove a draft's file; download a file to check it
GET /api/admin/downloads (release, customer) downloads.read {id, release, releaseId, fileName, customerId, companyName, userEmail, channel (PORTAL, LINK), ipAddress, downloadedAt}
GET /api/admin/support/tickets (status or active, priority, category, assignee me/unassigned/id, customer, query), GET …/counts, GET …/assignees support the queue, counts per status and the staff who can be assigned (holders of support.manage)
GET, PUT /api/admin/support/tickets/{id} support detail with internal notes; PUT {assigneeId, priority (LOW, NORMAL, HIGH, URGENT), status, rowVersion} (409 version_conflict)
POST …/{id}/messages support.manage {body, internal, attachmentIds?, status?}: a reply (status WAITING_ON_CUSTOMER unless given; the customer is e-mailed) or an internal note (no e-mail, never shown to the customer)
POST …/{id}/uploads?fileName=, GET /api/admin/support/attachments/{id} support attachments, as in the portal
POST /api/admin/customers/{id}/support-access ({reason, userId?}), GET …/{id}/support-access, POST /api/admin/support-access/{grantId}/end customers.impersonate / customers.read start (→ {id, url, redeemBy, expiresAt, userEmail}), history [{id, admin, userEmail, reason, createdAt, redeemedAt, expiresAt, endedAt, endReason, active}], end now
GET /api/admin/customers/{id}/activity customers.read paged audit entries about the customer
GET /api/admin/reports/overview?currency= reports.read customers, subscriptions, licenses, installations, recurring revenue (mrrMinor, arrMinor, pastDueMrrMinor, payingCustomers, arpcMinor, outstandingMinor), the last 30 days of payments and refunds, churn (basis points) and the support queue
GET /api/admin/reports/revenue?currency= reports.read 12 months {month, collectedMinor, refundedMinor, netCollectedMinor, recognizedMinor} and a 6-month projection {month, projectedMinor, subscriptions}
GET /api/admin/reports/export/{customers|subscriptions|invoices|payments|refunds|revenue} reports.read CSV (UTF-8, at most 100,000 rows); cells starting with =, +, -, @, tab or carriage return are prefixed with '
GET /api/admin/refunds (status, query) payments.read refunds with their payment, invoice and customer
GET, PUT /api/admin/system/settings settings {settings:{supportEmail, attachmentMaxMb (1–100), downloadLinkMinutes (5–1440), downloadLinkMaxUses (1–20), supportAccessMinutes (5–120), notifyCustomersOfReleases, version}, freeBytes}
  • Amounts are never converted between currencies: every figure is for one currency (currency; by default USD when there is data in USD, otherwise the first currency with data), and currencies lists those with data.
  • Recurring revenue counts active and past-due subscriptions at their next renewal price after recurring discounts, before tax; a yearly plan counts one twelfth. Recognized revenue spreads paid invoices without tax over the period they pay for (by second, in UTC months), less credit notes. Collected is the payments of the month; refunds are shown separately. The projection follows each subscription that keeps renewing to its scheduled cancellation and switches to a pending price when it takes effect. Churn is the paying subscriptions that ended in the last 30 days divided by those paying 30 days ago.