Docs
API & data reference
The external REST API, outgoing webhook payload formats, and exactly what a config export/import does and doesn't carry. Written for the person scripting against Islandr, not for clicking through the Admin Console.
External automation API
REST API
A separate, versioned facade under /api/external/v1/ — deliberately not the same
endpoints the Admin Console's own UI calls. The internal API is free to reshape itself as the UI
evolves; this one is a stability-committed contract for scripts, CI pipelines, and infrastructure-as-code.
Authentication
API keys, not session cookies. Create one in the Admin Console under API Keys — the raw key is shown exactly once at creation, never again. Send it as a bearer token:
curl -H "Authorization: Bearer islandr_<your-key>" \ https://your-islandr-host/api/external/v1/peers
A key reaches only what its scopes cover — peers:read, peers:write,
users:read, users:write, resources:read, grants:read,
audit:read, monitoring:read. Scopes are chosen when the key is created and
cannot be widened afterwards. A scoped key never reaches the console's own internal API; only the
full scope is admin-equivalent. Revoking a key is immediate and permanent (revoked keys
are kept, not deleted, for the audit trail).
Endpoints (v1)
| Method | Path | Scope | Notes |
|---|---|---|---|
GET | /peers | peers:read | Every peer, newest first. |
POST | /peers | peers:write | Create a client peer (pass userId as a query
parameter) or a site gateway peer (omit userId, set "type": "site" in the body).
The response includes the generated private key material exactly once. |
PUT | /peers/{id}/enabled | peers:write | Enable or disable one peer; its owner's account stays as it is. |
GET | /users | users:read | Every user. |
PUT | /users/{id}/enabled | users:write | Enable or disable a user. Disabling takes their peers down with the account. |
GET | /sites | resources:read | Every site. An external network (a partner) lists all its
address ranges in cidrs, the primary one — also in cidr — first. |
GET | /resources | resources:read | Every resource, across all sites. |
GET | /roles | resources:read | Every role. |
GET | /grants | grants:read | Every grant in effect, resolved the way the firewall resolves it. This is the installation's complete access picture in one call — prefer a short-lived key for a job that only reports. |
GET | /audit | audit:read | The audit log, read-only, paged with a before cursor. |
GET | /metrics | monitoring:read | Health gauges in the Prometheus text format: enforcement ok, age of the last ruleset apply, TLS certificate days left, connected peers as a total. Nothing per peer or per person. |
GET | /edge/{id}/plan | plan:read | The peers this edge hub is to serve, with public key and
tunnel addresses; serial rises when the list changes. Preshared keys are not in it, only whether a peer has one. |
GET | /edge/{id}/psks | psks:read | Preshared keys of the peers that may reach this edge. |
POST | /edge/{id}/status | telemetry:write | The edge reports handshakes and traffic of its peers; a key it does not carry is refused. |
Deliberately small — what automation actually needs, not a mirror of every internal endpoint.
Nothing here can change ACLs, roles or settings: the writable operations are creating a peer,
enabling or disabling a peer or a user, and an edge hub reporting its status. The /edge/… keys
are bound to one edge hub when they are created. Running an edge hub still needs edge software that
is not part of Islandr. Every running hub also serves this list as
/llms.txt, written for an agent to read.
OpenAPI spec
The full machine-readable spec (hand-written, not runtime-generated — it never drifts from an annotation processor's idea of the API, and adds nothing to the native-image build) is served directly by any running instance, no authentication required:
curl https://your-islandr-host/api/openapi.yml
Feed it to openapi-generator, Postman, or any OpenAPI 3.0.3-compatible client generator.
It's also linked from the API Keys page in the Admin Console.
Turning the facade off
An admin who never intends to use external automation can disable the whole facade — every
/api/external/v1/* route then returns 404 (not 401/403,
so it doesn't even confirm the surface exists) regardless of an otherwise-valid key. Toggle in
Settings → External automation API.
Outgoing notifications
Webhooks
Configured per-URL in the Admin Console under Webhooks, each with its own filter of which event types it receives. Delivery: up to 3 attempts with backoff (2s, 8s) — a receiver that's down for a minute still gets the event once it's back. Two payload formats, chosen per webhook.
Event types
| Key | Fired when… |
|---|---|
peer.connected | A peer establishes a handshake after being offline. |
peer.disconnected | A previously connected peer goes stale/silent. |
peer.enabled | A peer is enabled — by an admin or the Peer-Scheduler. |
peer.disabled | A peer is disabled — by an admin or the Peer-Scheduler. |
acl.grant_created | A resource access grant is created. |
acl.grant_revoked | A resource access grant is revoked. |
discovery.scan_completed | A network discovery scan finishes. |
acme.cert_renewed | The ACME/Let's Encrypt certificate renews successfully. |
acme.cert_renewal_failed | An ACME renewal attempt fails. |
firewall.apply_failed | The firewall rules could not be applied. |
backup.failed | A scheduled backup did not reach the bucket. |
user.created | A user is created — by an admin, on first OIDC sign-in, by a Google Workspace import or through the API. |
user.updated | A user's name or e-mail changes, by an admin or from the identity provider at sign-in; changedFields names which. |
user.enabled | A user is enabled. |
user.disabled | A user is disabled. |
user.deleted | A user is deleted. |
The user.* events are for provisioning the same people into another system. Their
data carries id, email, name, roleIds,
enabled and source (local, oidc, import
or api) — never a password hash or an avatar. A plain sign-in sends nothing, and an event
goes out only once the change is committed.
Format: generic (default)
Islandr's own JSON envelope, HMAC-SHA256-signed so the receiver can verify authenticity:
{
"event": "peer.connected",
"timestamp": "2026-08-23T07:12:04.331Z",
"actor": "admin",
"target": "Peer:office-laptop",
"data": { "peerId": "3f1c…" }
}
Sent with two headers:
| Header | Value |
|---|---|
X-Islandr-Signature | sha256=<hex hmac> — HMAC-SHA256 of
the raw request body, keyed with the webhook's own secret (shown once at creation, rotatable
afterwards). |
X-Islandr-Delivery | A random UUID, unique per delivery attempt — use it to deduplicate retries on the receiving end. |
HMAC-SHA256(secret, raw_body) yourself and comparing
hex strings — constant-time compare, don't just == it.
Format: Gotify
Renders Gotify's native push shape
instead, and posts straight to its /message endpoint — no separate receiver needed on
your side if you already run a Gotify server:
{
"title": "islandr — Peer connected",
"message": "**Peer:office-laptop**\n- peerId: `3f1c…`",
"priority": 5,
"extras": { "client::display": { "contentType": "text/markdown" } }
}
Priority is 8 (not 5) for acme.cert_renewal_failed and peer.disconnected —
high enough to break through Do-Not-Disturb if the Gotify client is configured that way. No
X-Islandr-Signature header is sent for this format — Gotify has no signature-verification
story, and its own app token (configured as the webhook's "secret") already authenticates the request
via a ?token= query parameter.
Extra auth header (either format)
If the receiving end — or a reverse proxy in front of it — needs its own auth header
(Authorization, X-API-Key, anything), configure one optional name/value
pair per webhook. It's sent on every delivery alongside whatever the format above already sends,
never as a replacement for it.
Backup & migration
Config export/import
A versioned JSON snapshot of the instance's configuration — for backups and for moving an install
to new hardware. Downloaded/uploaded from the Admin Console's Settings page, or over the API with a
key that holds config:export or config:import.
The envelope carries a version (the format), an appVersion (which Islandr
wrote the file, informational only) and exportedAt. Older files import into newer
Islandr; a file written by a newer Islandr is refused rather than imported, because
importing it would silently drop the fields that build doesn't know about and restore a
configuration quietly different from the one backed up. The refusal happens before anything is
touched, so a rejected import leaves the running configuration intact.
Backups to an S3 bucket
Since 1.4.0 Islandr writes the same data to an S3-compatible bucket by itself — AWS S3, Cloudflare R2, Backblaze B2, MinIO — daily, weekly or on demand, under Backup in the Admin Console. Each backup is one file, encrypted with a backup key that is shown once and that you write down. A freshly installed hub restores from the bucket's details and that key; the old hub is not needed.
Islandr never deletes a backup, and the access key you give it should not be able to either: write,
read and list are enough. A hub that is taken over can then add to the bucket but not erase what is
in it. Old backups expire through a lifecycle rule on the bucket. A scheduled run that fails is
written to the audit log and sent as the webhook event backup.failed. Setup, an IAM
policy and a lifecycle rule are in the
backup guide.
Included
Every table of the configuration, column for column. A table or column added in a later release is part of the export from the day it exists, with nothing to keep in step by hand:
- Users, with their local password hashes, avatars and security keys; roles and memberships.
- Peers, including their schedule (
validUntil, recurring enable/disable windows). - Networks — including whether one is external — resources with their DNS names, ports, port groups and each port's capacity and RDP options.
- Every grant: role, type, network, and direct user or site grants, with their per-port links.
- Identity providers (Microsoft 365, Google Workspace, custom OIDC), webhooks, edge hubs, and external-API keys. Of a key only the hash exists, which is enough: an issued key keeps authenticating after a restore, and a revoked one stays revoked.
- The settings, except the host-bound ones below.
- The private keys Islandr stores for devices: always in an S3 backup, which is encrypted; in the
plain export only when requested with
includePrivateKeys=true.
Not included — and why
- The hub's own identity and network position — WireGuard public key and endpoint, uplink interface, TLS certificate and ACME state, trusted-proxy settings. They belong to the host; a fresh install keeps its own.
- Sessions. Nobody is signed in after a restore.
- The audit log and the activity history. They are the history of that hub, not its configuration.
- Live port reservations. A reservation is a running session with an end time; after a rebuild nobody holds anything. The ports' capacity configuration does travel.
- When each device last connected, and the traffic counters. Readings of one host's interface, stale the moment they are restored.
- The backup settings themselves — the bucket and the backup key, which you have just typed in to restore.