Get your free beta license ↗
API operation · dns group
POST

/dns/clients

First published 21 Oct 20260.2.13Unchanged since publication

Register an UrbeStack server as a DNS distribution client

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers201 Created

Supply the client's licensed IPv4 address and a label of 1 to 64 printable ASCII characters. Requests authenticated with the key must originate from that IPv4 address. Once connected, the client sends its zones to this server, whose nameservers serve them.

The response returns the registered client, the key and the propagation results in told. The key is shown only in this response. It lists every node in the network and includes this server's licensed IPv4 address, web interface port and hostname, and a secret. The client uses the hostname to verify this server's certificate. UrbeStack stores the secret as a hash. Paste the key into the Distribution nodes tab in the client's DNS zones section, or supply it to the client's installer. To replace an existing key and retain the client's zones, use Generate new key in the client's details or run urbestack-dns-client-key.

This server must be a distribution node. A server that sends its own zones to a distribution node returns 409. A missing licensed IPv4 address or a license refusal returns 402, and a missing web interface hostname returns 400. UrbeStack rejects this server's own IPv4 address and returns 409 for an IPv4 address already registered to a client or node.

As a command

Run as root on the server

Request body

JSON ·DnsClientCreate· 2 fields
addressstringRequired
Licensed IPv4 address of the client. Every call made with the client's key must originate from this IP address.
labelstringRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/dns/clients" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "info@example.com",
    "label": "my laptop"
  }'
Response · 201 Created
{
  "client": {
    "address": "info@example.com",
    "also_nameservers": [
      "text"
    ],
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": "text",
    "created_on": "text",
    "disconnected_at": "text",
    "hostname": "server.example.com",
    "ipv4": "text",
    "ipv6": "text",
    "joined_at": "text",
    "joining_as": "text",
    "label": "my laptop",
    "last_error": "text",
    "last_seen_at": "text",
    "nameserver": "text",
    "node": true,
    "port": 8443,
    "zones": 1
  },
  "key": "panel.port",
  "told": [
    {
      "done": true,
      "error": "Domain 'example.com' already exists",
      "host": "text",
      "kind": "profile",
      "node": "text",
      "subject": "text"
    }
  ]
}

Errors

17 errors, each a status and a sentence
400--address and --label are required
400<address> is this server's own address
400A node needs the nameserver name it will answer for
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid label: 1 to 64 printable ASCII characters
400Invalid port
400Invalid setting key
401Authentication required
404Setting '<key>' not found
409<address> has already been added as a node but has not joined yet. To replace its key, open the pending node's details and choose Generate new key
409<address> is already a node of this network and answers for
409<ns> is the only nameserver name this server answers for. The new node needs a name of its own
409A client already exists for <address> (label: <was.label>;
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.13 on 21 Oct 2026.
urbestack.com/docs/api/post-dns-clients/