# DELETE /dns/nodes/{address}/joining

First published 12 Nov 2026 (release 0.2.28) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Cancel a pending node invitation

- Who may call it: administrator
- Token scope, any of: dns, all
- Answers: 200 OK

Call as an administrator with a token that has the dns scope. Canceling revokes the joining key and removes the pending registration for a new server. For an existing client, it removes only the invitation and preserves the client's zones and client key. The operation returns 409 if the node has already joined. A joined node must leave or be removed.

UrbeStack notifies the other nodes. A 200 response includes canceled set to true, the invited server's IPv4 address in address, client, and the notification results in told.

## As a command

- [urbestack-dns-node-add](https://urbestack.com/docs/commands/urbestack-dns-node-add.md): Registers another UrbeStack server as a node of this server's DNS distribution network and issues a joining key.

## Parameters

- `address` (path, string, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X DELETE "$API/dns/nodes/info@example.com/joining" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "address": "info@example.com",
  "canceled": true,
  "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
  },
  "told": [
    {
      "done": true,
      "error": "Domain 'example.com' already exists",
      "host": "text",
      "kind": "profile",
      "node": "text",
      "subject": "text"
    }
  ]
}
```

## Errors

- 400: --address is required
- 400: <address> is this server's own address
- 400: A node needs the nameserver name it will answer for
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid label: 1 to 64 printable ASCII characters
- 400: Invalid port
- 400: Invalid setting key
- 401: Authentication required
- 404: Setting '<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: <c.address> joined the network already: it is a node, not one that waits
- 409: <ns> is the only nameserver name this server answers for. The new node needs a name of its own
- 409: A client already exists for <address> (label: <was.label>; 
- 409: No joining key waits for <c.address>
