NetBird DNS Zones API

Interact with and view information about custom DNS zones.

Operations 10

GET /api/dns/zones List all DNS Zones
POST /api/dns/zones Create a DNS Zone
GET /api/dns/zones/{zoneId} Retrieve a DNS Zone
PUT /api/dns/zones/{zoneId} Update a DNS Zone
DELETE /api/dns/zones/{zoneId} Delete a DNS Zone
GET /api/dns/zones/{zoneId}/records List all DNS Records
POST /api/dns/zones/{zoneId}/records Create a DNS Record
GET /api/dns/zones/{zoneId}/records/{recordId} Retrieve a DNS Record
PUT /api/dns/zones/{zoneId}/records/{recordId} Update a DNS Record
DELETE /api/dns/zones/{zoneId}/records/{recordId} Delete a DNS Record

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/netbird-dns-zones-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

netbird-dns-zones-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NetBird REST Accounts DNS Zones API
  description: API to manipulate groups, rules, policies and retrieve information about peers and users
  version: 0.0.1
servers:
- url: https://api.netbird.io
  description: Default server
security:
- BearerAuth: []
- TokenAuth: []
tags:
- name: DNS Zones
  description: Interact with and view information about custom DNS zones.
paths:
  /api/dns/zones:
    get:
      summary: List all DNS Zones
      description: Returns a list of all custom DNS zones
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      responses:
        '200':
          description: A JSON Array of DNS Zones
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Zone'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
    post:
      summary: Create a DNS Zone
      description: Creates a new custom DNS zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      requestBody:
        description: A DNS zone object
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ZoneRequest'
      responses:
        '200':
          description: A JSON Object of the created DNS Zone
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zone'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
  /api/dns/zones/{zoneId}:
    get:
      summary: Retrieve a DNS Zone
      description: Returns information about a specific DNS zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      responses:
        '200':
          description: A JSON Object of a DNS Zone
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zone'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
    put:
      summary: Update a DNS Zone
      description: Updates a custom DNS zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      requestBody:
        description: A DNS zone object
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ZoneRequest'
      responses:
        '200':
          description: A JSON Object of the updated DNS Zone
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Zone'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
    delete:
      summary: Delete a DNS Zone
      description: Deletes a custom DNS zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      responses:
        '200':
          description: Zone deletion successful
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
  /api/dns/zones/{zoneId}/records:
    get:
      summary: List all DNS Records
      description: Returns a list of all DNS records in a zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      responses:
        '200':
          description: A JSON Array of DNS Records
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DNSRecord'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
    post:
      summary: Create a DNS Record
      description: Creates a new DNS record in a zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      requestBody:
        description: A DNS record object
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DNSRecordRequest'
      responses:
        '200':
          description: A JSON Object of the created DNS Record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DNSRecord'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
  /api/dns/zones/{zoneId}/records/{recordId}:
    get:
      summary: Retrieve a DNS Record
      description: Returns information about a specific DNS record
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      - in: path
        name: recordId
        required: true
        schema:
          type: string
        description: The unique identifier of a DNS record
        example: chacbco6lnnbn6cg5s92
      responses:
        '200':
          description: A JSON Object of a DNS Record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DNSRecord'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
    put:
      summary: Update a DNS Record
      description: Updates a DNS record in a zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      - in: path
        name: recordId
        required: true
        schema:
          type: string
        description: The unique identifier of a DNS record
        example: chacbco6lnnbn6cg5s92
      requestBody:
        description: A DNS record object
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DNSRecordRequest'
      responses:
        '200':
          description: A JSON Object of the updated DNS Record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DNSRecord'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
    delete:
      summary: Delete a DNS Record
      description: Deletes a DNS record from a zone
      tags:
      - DNS Zones
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: zoneId
        required: true
        schema:
          type: string
        description: The unique identifier of a zone
        example: chacbco6lnnbn6cg5s91
      - in: path
        name: recordId
        required: true
        schema:
          type: string
        description: The unique identifier of a DNS record
        example: chacbco6lnnbn6cg5s92
      responses:
        '200':
          description: Record deletion successful
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/not_found'
        '500':
          $ref: '#/components/responses/internal_error'
components:
  schemas:
    ZoneRequest:
      type: object
      properties:
        name:
          description: Zone name identifier
          type: string
          maxLength: 255
          minLength: 1
          example: Office Zone
        domain:
          description: Zone domain (FQDN)
          type: string
          example: example.com
        enabled:
          description: Zone status
          type: boolean
          default: true
        enable_search_domain:
          description: Enable this zone as a search domain
          type: boolean
          example: false
        distribution_groups:
          description: Group IDs that defines groups of peers that will resolve this zone
          type: array
          items:
            type: string
            example: ch8i4ug6lnn4g9hqv7m0
      required:
      - name
      - domain
      - enable_search_domain
      - distribution_groups
    Zone:
      allOf:
      - type: object
        properties:
          id:
            description: Zone ID
            type: string
            example: ch8i4ug6lnn4g9hqv7m0
          records:
            description: DNS records associated with this zone
            type: array
            items:
              $ref: '#/components/schemas/DNSRecord'
        required:
        - id
        - enabled
        - records
      - $ref: '#/components/schemas/ZoneRequest'
    DNSRecordRequest:
      type: object
      properties:
        name:
          description: FQDN for the DNS record. Must be a subdomain within or match the zone's domain.
          type: string
          example: www.example.com
        type:
          $ref: '#/components/schemas/DNSRecordType'
        content:
          description: DNS record content (IP address for A/AAAA, domain for CNAME)
          type: string
          maxLength: 255
          minLength: 1
          example: 192.168.1.1
        ttl:
          description: Time to live in seconds
          type: integer
          minimum: 0
          example: 300
      required:
      - name
      - type
      - content
      - ttl
    DNSRecordType:
      type: string
      description: DNS record type
      enum:
      - A
      - AAAA
      - CNAME
      example: A
    DNSRecord:
      allOf:
      - type: object
        properties:
          id:
            description: DNS record ID
            type: string
            example: ch8i4ug6lnn4g9hqv7m0
        required:
        - id
      - $ref: '#/components/schemas/DNSRecordRequest'
  responses:
    requires_authentication:
      description: Requires authentication
      content: {}
    internal_error:
      description: Internal Server Error
      content: {}
    bad_request:
      description: Bad Request
      content: {}
    not_found:
      description: Resource not found
      content: {}
    forbidden:
      description: Forbidden
      content: {}
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Enter the token with the `Token` prefix, e.g. "Token nbp_F3f0d.....".