NetBird · Capability

NetBird REST API — Routes

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

Run with Naftiko NetbirdRoutes

What You Can Do

GET
Get — List all Routes
/v1/api/routes
POST
Post — Create a Route
/v1/api/routes
GET
Get — Retrieve a Route
/v1/api/routes/{routeid}
PUT
Put — Update a Route
/v1/api/routes/{routeid}
DELETE
Delete — Delete a Route
/v1/api/routes/{routeid}

MCP Tools

list-all-routes

List all Routes

read-only idempotent
create-route

Create a Route

retrieve-route

Retrieve a Route

read-only idempotent
update-route

Update a Route

idempotent
delete-route

Delete a Route

idempotent

Capability Spec

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