Skip to main content

API Reference

Everything you can do in the console is backed by Subnetly's REST API. The same API powers the web app, so any resource you manage in the UI can be automated.

Interactive reference & authentication
note

This page is a conventions-and-orientation reference; the interactive reference above is the complete, generated endpoint list.

Base URL

https://api.subnetly.com

All endpoints are versioned under /v1.

Authentication

The API uses API tokens. Create one under Settings → API Tokens and send it as a bearer token:

Authorization: Bearer sbnt_your_token_here

A token is bound to one tenant, so there's nothing else to send. Requests without a valid token return 401. Full details and curl examples: Authentication.

Request and response format

  • Requests and responses are JSON (Content-Type: application/json), except bulk imports which accept text/csv.
  • List endpoints support pagination via limit and offset query parameters and return a total count.
  • Standard HTTP status codes: 2xx success, 400 validation error, 401 unauthenticated, 403 forbidden, 404 not found, 409 conflict.

Example

curl https://api.subnetly.com/v1/dns/zones \
-H "Authorization: Bearer sbnt_your_token_here"

Resource map

The API mirrors the product areas in this documentation:

AreaRepresentative endpointsDocs
DNS zones & records/v1/dns/zones, .../zones/{id}/recordsDNS
Public DNS/v1/public-dns, .../{id}/records, .../{id}/sync, .../{id}/validate-delegationPublic DNS
DNS firewall (RPZ)/v1/dns/rpz zones and rulesDNS firewall
DHCP scopes/v1/dhcp/scopes, scope options, reservations, leasesDHCP
DHCP HA groups/v1/dhcp/ha-groups, .../{id}/membersHA groups
IPAM/v1/ipam/subnets, split/merge/allocate, options, exportIPAM
Agents/v1/agents, events, role, cert-rotate, reissueAgents
Zone/scope deployments/v1/agents/{id}/zone-deployments, .../scope-deployments, .../dns-config, .../dhcp-config, .../dns-viewsConfiguration & roles
Windows migration/v1/agents/{id}/migration-preview, .../migrate, .../sync-windows-inventoryWindows migration
Sites/v1/sites, .../{id}Sites
Intelligence/v1/advisor, /v1/risk-score, .../scan-delta-summaryNetwork Intelligence
Import / export/v1/ipam/subnets/import, /v1/import/ip-subnets, /v1/import/ip-records, /v1/admin/exportImport & Export
API tokens/v1/api-tokensAPI Tokens
Administration/v1/admin/audit, /v1/admin/members, member permissionsSettings
Webhooks/v1/webhooks, .../{id}/test, .../{id}/deliveriesSettings
Notifications/v1/notifications, unread count, /v1/notification-preferencesSettings
MSP/api/msp/dashboard and per-client resourcesMSP Guide

Common patterns

  • CreatePOST to the collection (e.g. POST /v1/dns/zones).
  • ListGET the collection with limit/offset.
  • UpdatePUT (or a dedicated action sub-path) on the resource.
  • DeleteDELETE the resource, or a .../delete action endpoint where used.
  • Actions — operations like sync, validate-delegation, cert-rotate, migrate, and reissue are POST sub-paths on a resource.

Webhooks

Subnetly can call your endpoints when events occur. Outbound webhooks are signed with an X-Subnetly-Signature header so you can verify authenticity. Configure them in Settings → Webhooks.