NetBird · Capability

NetBird REST API — Networks

NetBird REST API — Networks. 16 operations. Lead operation: List all Networks. Self-contained Naftiko capability covering one Netbird business surface.

Run with Naftiko NetbirdNetworks

What You Can Do

GET
Get — List all Networks
/v1/api/networks
POST
Post — Create a Network
/v1/api/networks
GET
Get — List all Network Routers
/v1/api/networks/routers
GET
Get — Retrieve a Network
/v1/api/networks/{networkid}
PUT
Put — Update a Network
/v1/api/networks/{networkid}
DELETE
Delete — Delete a Network
/v1/api/networks/{networkid}
GET
Get — List all Network Resources
/v1/api/networks/{networkid}/resources
POST
Post — Create a Network Resource
/v1/api/networks/{networkid}/resources
GET
Get — Retrieve a Network Resource
/v1/api/networks/{networkid}/resources/{resourceid}
PUT
Put — Update a Network Resource
/v1/api/networks/{networkid}/resources/{resourceid}
DELETE
Delete — Delete a Network Resource
/v1/api/networks/{networkid}/resources/{resourceid}
GET
Get — List all Network Routers
/v1/api/networks/{networkid}/routers
POST
Post — Create a Network Router
/v1/api/networks/{networkid}/routers
GET
Get — Retrieve a Network Router
/v1/api/networks/{networkid}/routers/{routerid}
PUT
Put — Update a Network Router
/v1/api/networks/{networkid}/routers/{routerid}
DELETE
Delete — Delete a Network Router
/v1/api/networks/{networkid}/routers/{routerid}

MCP Tools

list-all-networks

List all Networks

read-only idempotent
create-network

Create a Network

list-all-network-routers

List all Network Routers

read-only idempotent
retrieve-network

Retrieve a Network

read-only idempotent
update-network

Update a Network

idempotent
delete-network

Delete a Network

idempotent
list-all-network-resources

List all Network Resources

read-only idempotent
create-network-resource

Create a Network Resource

retrieve-network-resource

Retrieve a Network Resource

read-only idempotent
update-network-resource

Update a Network Resource

idempotent
delete-network-resource

Delete a Network Resource

idempotent
list-all-network-routers-2

List all Network Routers

read-only idempotent
create-network-router

Create a Network Router

retrieve-network-router

Retrieve a Network Router

read-only idempotent
update-network-router

Update a Network Router

idempotent
delete-network-router

Delete a Network Router

idempotent

Capability Spec

netbird-networks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: NetBird REST API — Networks
  description: 'NetBird REST API — Networks. 16 operations. Lead operation: List all Networks. Self-contained Naftiko capability
    covering one Netbird business surface.'
  tags:
  - Netbird
  - Networks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NETBIRD_API_KEY: NETBIRD_API_KEY
capability:
  consumes:
  - type: http
    namespace: netbird-networks
    baseUri: https://api.netbird.io
    description: NetBird REST API — Networks business capability. Self-contained, no shared references.
    resources:
    - name: api-networks
      path: /api/networks
      operations:
      - name: get
        method: GET
        description: List all Networks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-networks-routers
      path: /api/networks/routers
      operations:
      - name: get
        method: GET
        description: List all Network Routers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-networks-networkId
      path: /api/networks/{networkId}
      operations:
      - name: get
        method: GET
        description: Retrieve a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
      - name: put
        method: PUT
        description: Update a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Delete a Network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
    - name: api-networks-networkId-resources
      path: /api/networks/{networkId}/resources
      operations:
      - name: get
        method: GET
        description: List all Network Resources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
      - name: post
        method: POST
        description: Create a Network Resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-networks-networkId-resources-resourceId
      path: /api/networks/{networkId}/resources/{resourceId}
      operations:
      - name: get
        method: GET
        description: Retrieve a Network Resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
        - name: resourceId
          in: path
          type: string
          description: The unique identifier of a network resource
          required: true
      - name: put
        method: PUT
        description: Update a Network Resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
        - name: resourceId
          in: path
          type: string
          description: The unique identifier of a resource
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Delete a Network Resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          required: true
        - name: resourceId
          in: path
          type: string
          required: true
    - name: api-networks-networkId-routers
      path: /api/networks/{networkId}/routers
      operations:
      - name: get
        method: GET
        description: List all Network Routers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
      - name: post
        method: POST
        description: Create a Network Router
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-networks-networkId-routers-routerId
      path: /api/networks/{networkId}/routers/{routerId}
      operations:
      - name: get
        method: GET
        description: Retrieve a Network Router
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
        - name: routerId
          in: path
          type: string
          description: The unique identifier of a router
          required: true
      - name: put
        method: PUT
        description: Update a Network Router
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          description: The unique identifier of a network
          required: true
        - name: routerId
          in: path
          type: string
          description: The unique identifier of a router
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Delete a Network Router
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: networkId
          in: path
          type: string
          required: true
        - name: routerId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.NETBIRD_API_KEY}}'
  exposes:
  - type: rest
    namespace: netbird-networks-rest
    port: 8080
    description: REST adapter for NetBird REST API — Networks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/networks
      name: api-networks
      description: REST surface for api-networks.
      operations:
      - method: GET
        name: get
        description: List all Networks
        call: netbird-networks.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create a Network
        call: netbird-networks.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/networks/routers
      name: api-networks-routers
      description: REST surface for api-networks-routers.
      operations:
      - method: GET
        name: get
        description: List all Network Routers
        call: netbird-networks.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/networks/{networkid}
      name: api-networks-networkid
      description: REST surface for api-networks-networkId.
      operations:
      - method: GET
        name: get
        description: Retrieve a Network
        call: netbird-networks.get
        with:
          networkId: rest.networkId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a Network
        call: netbird-networks.put
        with:
          networkId: rest.networkId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Network
        call: netbird-networks.delete
        with:
          networkId: rest.networkId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/networks/{networkid}/resources
      name: api-networks-networkid-resources
      description: REST surface for api-networks-networkId-resources.
      operations:
      - method: GET
        name: get
        description: List all Network Resources
        call: netbird-networks.get
        with:
          networkId: rest.networkId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create a Network Resource
        call: netbird-networks.post
        with:
          networkId: rest.networkId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/networks/{networkid}/resources/{resourceid}
      name: api-networks-networkid-resources-resourceid
      description: REST surface for api-networks-networkId-resources-resourceId.
      operations:
      - method: GET
        name: get
        description: Retrieve a Network Resource
        call: netbird-networks.get
        with:
          networkId: rest.networkId
          resourceId: rest.resourceId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a Network Resource
        call: netbird-networks.put
        with:
          networkId: rest.networkId
          resourceId: rest.resourceId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Network Resource
        call: netbird-networks.delete
        with:
          networkId: rest.networkId
          resourceId: rest.resourceId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/networks/{networkid}/routers
      name: api-networks-networkid-routers
      description: REST surface for api-networks-networkId-routers.
      operations:
      - method: GET
        name: get
        description: List all Network Routers
        call: netbird-networks.get
        with:
          networkId: rest.networkId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create a Network Router
        call: netbird-networks.post
        with:
          networkId: rest.networkId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/networks/{networkid}/routers/{routerid}
      name: api-networks-networkid-routers-routerid
      description: REST surface for api-networks-networkId-routers-routerId.
      operations:
      - method: GET
        name: get
        description: Retrieve a Network Router
        call: netbird-networks.get
        with:
          networkId: rest.networkId
          routerId: rest.routerId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a Network Router
        call: netbird-networks.put
        with:
          networkId: rest.networkId
          routerId: rest.routerId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Network Router
        call: netbird-networks.delete
        with:
          networkId: rest.networkId
          routerId: rest.routerId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: netbird-networks-mcp
    port: 9090
    transport: http
    description: MCP adapter for NetBird REST API — Networks. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-all-networks
      description: List all Networks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: netbird-networks.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-network
      description: Create a Network
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: netbird-networks.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-network-routers
      description: List all Network Routers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: netbird-networks.get
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-network
      description: Retrieve a Network
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: netbird-networks.get
      with:
        networkId: tools.networkId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-network
      description: Update a Network
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: netbird-networks.put
      with:
        networkId: tools.networkId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-network
      description: Delete a Network
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: netbird-networks.delete
      with:
        networkId: tools.networkId
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-network-resources
      description: List all Network Resources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: netbird-networks.get
      with:
        networkId: tools.networkId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-network-resource
      description: Create a Network Resource
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: netbird-networks.post
      with:
        networkId: tools.networkId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-network-resource
      description: Retrieve a Network Resource
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: netbird-networks.get
      with:
        networkId: tools.networkId
        resourceId: tools.resourceId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-network-resource
      description: Update a Network Resource
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: netbird-networks.put
      with:
        networkId: tools.networkId
        resourceId: tools.resourceId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-network-resource
      description: Delete a Network Resource
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: netbird-networks.delete
      with:
        networkId: tools.networkId
        resourceId: tools.resourceId
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-network-routers-2
      description: List all Network Routers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: netbird-networks.get
      with:
        networkId: tools.networkId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-network-router
      description: Create a Network Router
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: netbird-networks.post
      with:
        networkId: tools.networkId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-network-router
      description: Retrieve a Network Router
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: netbird-networks.get
      with:
        networkId: tools.networkId
        routerId: tools.routerId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-network-router
      description: Update a Network Router
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: netbird-networks.put
      with:
        networkId: tools.networkId
        routerId: tools.routerId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-network-router
      description: Delete a Network Router
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: netbird-networks.delete
      with:
        networkId: tools.networkId
        routerId: tools.routerId
      outputParameters:
      - type: object
        mapping: $.