NetBird Networks API

The Networks API from NetBird — 7 operation(s) for networks.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 16

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/networks List all networks · List all Networks #
Ask an LLM
“Which networks exist in my NetBird account?”
“Can I see every network I have set up?”
Tell an agent
List all networks.
Show every network in my account.
POST /api/networks Create a network · Create a Network #
Ask an LLM
“How do I create a new network?”
“Can I give a new network a description when I create it?”
Tell an agent
Create a network named {name}.
Create network {name} described as {description}.
GET /api/networks/{networkId} Get a network's details · Retrieve a Network #
Ask an LLM
“What name and description does a specific network have?”
“Can I look up one network by its ID?”
Tell an agent
Get network {networkId}.
Show the details of network {networkId}.
PUT /api/networks/{networkId} Rename or replace a network · Update a Network #
Ask an LLM
“How do I rename an existing network?”
“Can I replace a network's whole definition at once?”
Tell an agent
Rename network {networkId} to {name}.
Replace network {networkId} with name {name} and description {description}.
DELETE /api/networks/{networkId} Delete a network · Delete a Network #
Ask an LLM
“How do I delete a network?”
“Can I remove a network I no longer use?”
Tell an agent destructive · confirm first
Delete network {networkId}.
Remove network {networkId} from my account.
GET /api/networks/{networkId}/resources List a network's resources · List all Network Resources #
Ask an LLM
“Which resources are in a given network?”
“Can I list every resource address in one network?”
Tell an agent
List the resources in network {networkId}.
Show all resource addresses defined in network {networkId}.
POST /api/networks/{networkId}/resources Add a resource to a network · Create a Network Resource #
Ask an LLM
“How do I add a new resource address to a network?”
“Can I restrict a network resource to certain groups?”
Tell an agent
Add resource {name} at {address} to network {networkId}, groups {groups}, enabled {enabled}.
Create a new resource {name} in network {networkId} with address {address}, groups {groups}, enabled {enabled}, described as {description}.
GET /api/networks/{networkId}/resources/{resourceId} Get a network resource · Retrieve a Network Resource #
Ask an LLM
“What address and groups does a specific network resource have?”
“Can I look up one resource in a network?”
Tell an agent
Get resource {resourceId} in network {networkId}.
Show the address and groups of network resource {resourceId} in network {networkId}.
PUT /api/networks/{networkId}/resources/{resourceId} Update a network resource · Update a Network Resource #
Ask an LLM
“How do I change the address of an existing network resource?”
“Can I disable a resource without deleting it?”
Tell an agent
Update resource {resourceId} in network {networkId} to address {address}, groups {groups}, enabled {enabled}.
Rename network resource {resourceId} in network {networkId} to {name}, address {address}, groups {groups}, enabled {enabled}.
DELETE /api/networks/{networkId}/resources/{resourceId} Delete a network resource · Delete a Network Resource #
Ask an LLM
“How do I remove a resource from a network?”
“Can I delete a single network resource by ID?”
Tell an agent destructive · confirm first
Delete resource {resourceId} from network {networkId}.
Remove network resource {resourceId} in network {networkId}.
GET /api/networks/{networkId}/routers List a network's routers · List all Network Routers #
Ask an LLM
“Which routers are configured in a given network?”
“Can I list all routes set up in one network?”
Tell an agent
List the routers in network {networkId}.
Show all routes configured for network {networkId}.
POST /api/networks/{networkId}/routers Add a route to a network · Create a Network Router #
Ask an LLM
“How do I add a new route to a network?”
“Can I set a metric and masquerade on a network route?”
Tell an agent
Add a route to network {networkId} with metric {metric}, masquerade {masquerade}, enabled {enabled}.
Create a route in network {networkId} for peer {peer} with metric {metric}, masquerade {masquerade}, enabled {enabled}.
GET /api/networks/{networkId}/routers/{routerId} Get a network router · Retrieve a Network Router #
Ask an LLM
“What metric and peer does a specific network route have?”
“Can I look up one route in a network?”
Tell an agent
Get router {routerId} in network {networkId}.
Show the metric and peer of route {routerId} in network {networkId}.
PUT /api/networks/{networkId}/routers/{routerId} Update a network router · Update a Network Router #
Ask an LLM
“How do I change the metric of an existing route?”
“Can I switch a route to a peer group instead of a single peer?”
Tell an agent
Update router {routerId} in network {networkId} to metric {metric}, masquerade {masquerade}, enabled {enabled}.
Change route {routerId} in network {networkId} to peer group {peer_groups}, metric {metric}, masquerade {masquerade}, enabled {enabled}.
DELETE /api/networks/{networkId}/routers/{routerId} Delete a network router · Delete a Network Router #
Ask an LLM
“How do I remove a route from a network?”
“Can I delete a single network route by ID?”
Tell an agent destructive · confirm first
Delete router {routerId} from network {networkId}.
Remove route {routerId} in network {networkId}.
GET /api/networks/routers List all network routers · List all Network Routers #
Ask an LLM
“Which routes exist across all my networks?”
“Can I list every router in my account?”
Tell an agent
List all network routers.
Show every route configured in my account.

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:netbird-networks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

netbird-networks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NetBird REST Networks 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: Networks
paths:
  /api/networks:
    get:
      summary: List all Networks
      description: Returns a list of all networks
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      responses:
        '200':
          description: A JSON Array of Networks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Network'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiNetworks
      x-operation-id-source: derived
    post:
      summary: Create a Network
      description: Creates a Network
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      requestBody:
        description: New Network request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkRequest'
      responses:
        '200':
          description: A Network Object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Network'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: postApiNetworks
      x-operation-id-source: derived
  /api/networks/{networkId}:
    get:
      summary: Retrieve a Network
      description: Get information about a Network
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      responses:
        '200':
          description: A Network object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Network'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiNetworksByNetworkId
      x-operation-id-source: derived
    put:
      summary: Update a Network
      description: Update/Replace a Network
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      requestBody:
        description: Update Network request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkRequest'
      responses:
        '200':
          description: A Network object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Network'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: putApiNetworksByNetworkId
      x-operation-id-source: derived
    delete:
      summary: Delete a Network
      description: Delete a network
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      responses:
        '200':
          description: Delete status code
          content: {}
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: deleteApiNetworksByNetworkId
      x-operation-id-source: derived
  /api/networks/{networkId}/resources:
    get:
      summary: List all Network Resources
      description: Returns a list of all resources in a network
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      responses:
        '200':
          description: A JSON Array of Resources
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NetworkResource'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiNetworksByNetworkIdResources
      x-operation-id-source: derived
    post:
      summary: Create a Network Resource
      description: Creates a Network Resource
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      requestBody:
        description: New Network Resource request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkResourceRequest'
      responses:
        '200':
          description: A Network Resource Object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkResource'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: postApiNetworksByNetworkIdResources
      x-operation-id-source: derived
  /api/networks/{networkId}/resources/{resourceId}:
    get:
      summary: Retrieve a Network Resource
      description: Get information about a Network Resource
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      - in: path
        name: resourceId
        required: true
        schema:
          type: string
        description: The unique identifier of a network resource
      responses:
        '200':
          description: A Network Resource object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkResource'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiNetworksByNetworkIdResourcesByResourceId
      x-operation-id-source: derived
    put:
      summary: Update a Network Resource
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      - in: path
        name: resourceId
        required: true
        schema:
          type: string
        description: The unique identifier of a resource
      requestBody:
        description: Update Network Resource request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkResourceRequest'
      responses:
        '200':
          description: A Network Resource object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkResource'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: putApiNetworksByNetworkIdResourcesByResourceId
      x-operation-id-source: derived
    delete:
      summary: Delete a Network Resource
      description: Delete a network resource
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
          description: The unique identifier of a network
      - in: path
        name: resourceId
        required: true
        schema:
          type: string
          description: The unique identifier of a network resource
      responses:
        '200':
          description: Delete status code
          content: {}
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: deleteApiNetworksByNetworkIdResourcesByResourceId
      x-operation-id-source: derived
  /api/networks/{networkId}/routers:
    get:
      summary: List all Network Routers
      description: Returns a list of all routers in a network
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      responses:
        '200':
          description: A JSON Array of Routers
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NetworkRouter'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiNetworksByNetworkIdRouters
      x-operation-id-source: derived
    post:
      summary: Create a Network Router
      description: Creates a Network Router
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      requestBody:
        description: New Network Router request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkRouterRequest'
      responses:
        '200':
          description: A Router Object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkRouter'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: postApiNetworksByNetworkIdRouters
      x-operation-id-source: derived
  /api/networks/{networkId}/routers/{routerId}:
    get:
      summary: Retrieve a Network Router
      description: Get information about a Network Router
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      - in: path
        name: routerId
        required: true
        schema:
          type: string
        description: The unique identifier of a router
      responses:
        '200':
          description: A Router object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkRouter'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiNetworksByNetworkIdRoutersByRouterId
      x-operation-id-source: derived
    put:
      summary: Update a Network Router
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
        description: The unique identifier of a network
      - in: path
        name: routerId
        required: true
        schema:
          type: string
        description: The unique identifier of a router
      requestBody:
        description: Update Network Router request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NetworkRouterRequest'
      responses:
        '200':
          description: A Router object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkRouter'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: putApiNetworksByNetworkIdRoutersByRouterId
      x-operation-id-source: derived
    delete:
      summary: Delete a Network Router
      description: Delete a network router
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: networkId
        required: true
        schema:
          type: string
          description: The unique identifier of a network
      - in: path
        name: routerId
        required: true
        schema:
          type: string
          description: The unique identifier of a router
      responses:
        '200':
          description: Delete status code
          content: {}
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: deleteApiNetworksByNetworkIdRoutersByRouterId
      x-operation-id-source: derived
  /api/networks/routers:
    get:
      summary: List all Network Routers
      description: Returns a list of all routers in a network
      tags:
      - Networks
      security:
      - BearerAuth: []
      - TokenAuth: []
      responses:
        '200':
          description: A JSON Array of Routers
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NetworkRouter'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiNetworksRouters
      x-operation-id-source: derived
components:
  responses:
    requires_authentication:
      description: Requires authentication
      content: {}
    internal_error:
      description: Internal Server Error
      content: {}
    forbidden:
      description: Forbidden
      content: {}
    bad_request:
      description: Bad Request
      content: {}
  schemas:
    NetworkRequest:
      type: object
      properties:
        name:
          description: Network name
          type: string
          example: Remote Network 1
        description:
          description: Network description
          type: string
          example: A remote network that needs to be accessed
      required:
      - name
    NetworkRouter:
      allOf:
      - type: object
        properties:
          id:
            description: Network Router Id
            type: string
            example: chacdk86lnnboviihd7g
        required:
        - id
      - $ref: '#/components/schemas/NetworkRouterRequest'
    NetworkResourceRequest:
      allOf:
      - $ref: '#/components/schemas/NetworkResourceMinimum'
      - type: object
        properties:
          groups:
            description: Group IDs containing the resource
            type: array
            items:
              type: string
              example: chacdk86lnnboviihd70
        required:
        - groups
        - address
    NetworkResource:
      allOf:
      - type: object
        properties:
          id:
            description: Network Resource ID
            type: string
            example: chacdk86lnnboviihd7g
          type:
            $ref: '#/components/schemas/NetworkResourceType'
          groups:
            description: Groups that the resource belongs to
            type: array
            items:
              $ref: '#/components/schemas/GroupMinimum'
        required:
        - id
        - type
        - groups
      - $ref: '#/components/schemas/NetworkResourceMinimum'
    GroupMinimum:
      type: object
      properties:
        id:
          description: Group ID
          type: string
          example: ch8i4ug6lnn4g9hqv7m0
        name:
          description: Group Name identifier
          type: string
          example: devs
        peers_count:
          description: Count of peers associated to the group
          type: integer
          example: 2
        resources_count:
          description: Count of resources associated to the group
          type: integer
          example: 5
        issued:
          description: How the group was issued (api, integration, jwt)
          type: string
          enum:
          - api
          - integration
          - jwt
          example: api
      required:
      - id
      - name
      - peers_count
      - resources_count
    Network:
      allOf:
      - type: object
        properties:
          id:
            description: Network ID
            type: string
            example: chacdk86lnnboviihd7g
          routers:
            description: List of router IDs associated with the network
            type: array
            items:
              type: string
              example: ch8i4ug6lnn4g9hqv7m0
          routing_peers_count:
            description: Count of routing peers associated with the network
            type: integer
            example: 2
          resources:
            description: List of network resource IDs associated with the network
            type: array
            items:
              type: string
              example: ch8i4ug6lnn4g9hqv7m1
          policies:
            description: List of policy IDs associated with the network
            type: array
            items:
              type: string
              example: ch8i4ug6lnn4g9hqv7m2
        required:
        - id
        - routers
        - resources
        - routing_peers_count
        - policies
      - $ref: '#/components/schemas/NetworkRequest'
    NetworkResourceMinimum:
      type: object
      properties:
        name:
          description: Network resource name
          type: string
          example: Remote Resource 1
        description:
          description: Network resource description
          type: string
          example: A remote resource inside network 1
        address:
          description: Network resource address (either a direct host like 1.1.1.1 or 1.1.1.1/32, or a subnet like 192.168.178.0/24, or domains like example.com and *.example.com)
          type: string
          example: 1.1.1.1
        enabled:
          description: Network resource status
          type: boolean
          example: true
      required:
      - name
      - address
      - enabled
    NetworkRouterRequest:
      type: object
      properties:
        peer:
          description: Peer Identifier associated with route. This property can not be set together with `peer_groups`
          type: string
          example: chacbco6lnnbn6cg5s91
        peer_groups:
          description: Peers Group Identifier associated with route. This property can not be set together with `peer`
          type: array
          items:
            type: string
            example: chacbco6lnnbn6cg5s91
        metric:
          description: Route metric number. Lowest number has higher priority
          type: integer
          maximum: 9999
          minimum: 1
          example: 9999
        masquerade:
          description: Indicate if peer should masquerade traffic to this route's prefix
          type: boolean
          example: true
        enabled:
          description: Network router status
          type: boolean
          example: true
      required:
      - metric
      - masquerade
      - enabled
    NetworkResourceType:
      description: Network resource type based of the address
      type: string
      enum:
      - host
      - subnet
      - domain
      example: host
  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.....".