NetBird Ingress Ports API

Interact with and view information about the ingress peers and ports.

GitHub OpenAPI

Operations 10

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/peers/{peerId}/ingress/ports List a peer's ingress port allocations · List all Port Allocations #
Ask an LLM
“Which ports are forwarded to a peer through ingress?”
“Can I filter a peer's ingress port allocations by name?”
Tell an agent
List ingress port allocations for peer {peerId}.
Show ingress port allocations on peer {peerId} named {name}.
POST /api/peers/{peerId}/ingress/ports Create an ingress port allocation · Create a Port Allocation #
Ask an LLM
“How do I forward ports to a peer through ingress?”
“Can I set a direct port when creating an ingress port allocation?”
Tell an agent
Create ingress port allocation {name} on peer {peerId} enabled {enabled}.
Create ingress port allocation {name} on peer {peerId} enabled {enabled} with port ranges {port_ranges}.
GET /api/peers/{peerId}/ingress/ports/{allocationId} Get one ingress port allocation · Retrieve a Port Allocation #
Ask an LLM
“What ports does a specific ingress allocation forward?”
“Is a given ingress port allocation enabled?”
Tell an agent
Get ingress port allocation {allocationId} on peer {peerId}.
Show the port ranges of ingress allocation {allocationId} for peer {peerId}.
PUT /api/peers/{peerId}/ingress/ports/{allocationId} Update an ingress port allocation · Update a Port Allocation #
Ask an LLM
“How do I change the port ranges on an existing ingress allocation?”
“Can I disable an ingress port allocation?”
Tell an agent
Update ingress port allocation {allocationId} on peer {peerId} to name {name} and enabled {enabled}.
Set port ranges {port_ranges} on ingress allocation {allocationId} for peer {peerId}, keeping name {name} and enabled {enabled}.
DELETE /api/peers/{peerId}/ingress/ports/{allocationId} Delete an ingress port allocation · Delete a Port Allocation #
Ask an LLM
“How do I stop forwarding ports to a peer through ingress?”
“Can I remove an ingress port allocation?”
Tell an agent destructive · confirm first
Delete ingress port allocation {allocationId} from peer {peerId}.
Remove the ingress allocation {allocationId} on peer {peerId}.
GET /api/ingress/peers List ingress peers · List all Ingress Peers #
Ask an LLM
“Which peers are set up as ingress peers?”
“What ingress peers are available for port forwarding?”
Tell an agent
List all ingress peers.
Show every peer configured as an ingress peer.
POST /api/ingress/peers Create an ingress peer · Create a Ingress Peer #
Ask an LLM
“How do I make a peer an ingress peer for port forwarding?”
“Can I make an ingress peer a fallback if no local ingress peer is found?”
Tell an agent
Create ingress peer {peer_id} enabled {enabled} with fallback {fallback}.
Set up peer {peer_id} as an ingress peer with fallback {fallback} and enabled {enabled}.
GET /api/ingress/peers/{ingressPeerId} Get an ingress peer · Retrieve a Ingress Peer #
Ask an LLM
“Is a given ingress peer enabled?”
“What fallback setting does an ingress peer have?”
Tell an agent
Get ingress peer {ingressPeerId}.
Show whether ingress peer {ingressPeerId} is enabled and a fallback.
PUT /api/ingress/peers/{ingressPeerId} Update an ingress peer · Update a Ingress Peer #
Ask an LLM
“How do I change whether an ingress peer is a fallback?”
“Can I disable an ingress peer?”
Tell an agent
Update ingress peer {ingressPeerId} to enabled {enabled} and fallback {fallback}.
Set ingress peer {ingressPeerId} as fallback {fallback} with enabled {enabled}.
DELETE /api/ingress/peers/{ingressPeerId} Delete an ingress peer · Delete a Ingress Peer #
Ask an LLM
“How do I remove an ingress peer?”
“Can I delete an ingress peer I no longer use?”
Tell an agent destructive · confirm first
Delete ingress peer {ingressPeerId}.
Remove the ingress peer {ingressPeerId}.

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-ingress-ports-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-ingress-ports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NetBird REST Ingress Ports 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: Ingress Ports
  description: Interact with and view information about the ingress peers and ports.
  x-cloud-only: true
paths:
  /api/peers/{peerId}/ingress/ports:
    get:
      x-cloud-only: true
      summary: List all Port Allocations
      description: Returns a list of all ingress port allocations for a peer
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: peerId
        required: true
        schema:
          type: string
        description: The unique identifier of a peer
      - in: query
        name: name
        schema:
          type: string
        description: Filters ingress port allocations by name
      responses:
        '200':
          description: A JSON Array of Ingress Port Allocations
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/IngressPortAllocation'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiPeersByPeerIdIngressPorts
      x-operation-id-source: derived
    post:
      x-cloud-only: true
      summary: Create a Port Allocation
      description: Creates a new ingress port allocation for a peer
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: peerId
        required: true
        schema:
          type: string
        description: The unique identifier of a peer
      requestBody:
        description: New Ingress Port Allocation request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngressPortAllocationRequest'
      responses:
        '200':
          description: A Ingress Port Allocation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngressPortAllocation'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: postApiPeersByPeerIdIngressPorts
      x-operation-id-source: derived
  /api/peers/{peerId}/ingress/ports/{allocationId}:
    get:
      x-cloud-only: true
      summary: Retrieve a Port Allocation
      description: Get information about an ingress port allocation
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: peerId
        required: true
        schema:
          type: string
        description: The unique identifier of a peer
      - in: path
        name: allocationId
        required: true
        schema:
          type: string
        description: The unique identifier of an ingress port allocation
      responses:
        '200':
          description: A Ingress Port Allocation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngressPortAllocation'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiPeersByPeerIdIngressPortsByAllocationId
      x-operation-id-source: derived
    put:
      x-cloud-only: true
      summary: Update a Port Allocation
      description: Update information about an ingress port allocation
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: peerId
        required: true
        schema:
          type: string
        description: The unique identifier of a peer
      - in: path
        name: allocationId
        required: true
        schema:
          type: string
        description: The unique identifier of an ingress port allocation
      requestBody:
        description: update an ingress port allocation
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngressPortAllocationRequest'
      responses:
        '200':
          description: A Ingress Port Allocation object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngressPortAllocation'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: putApiPeersByPeerIdIngressPortsByAllocationId
      x-operation-id-source: derived
    delete:
      x-cloud-only: true
      summary: Delete a Port Allocation
      description: Delete an ingress port allocation
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: peerId
        required: true
        schema:
          type: string
        description: The unique identifier of a peer
      - in: path
        name: allocationId
        required: true
        schema:
          type: string
        description: The unique identifier of an ingress port allocation
      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: deleteApiPeersByPeerIdIngressPortsByAllocationId
      x-operation-id-source: derived
  /api/ingress/peers:
    get:
      x-cloud-only: true
      summary: List all Ingress Peers
      description: Returns a list of all ingress peers
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      responses:
        '200':
          description: A JSON Array of Ingress Peers
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/IngressPeer'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiIngressPeers
      x-operation-id-source: derived
    post:
      x-cloud-only: true
      summary: Create a Ingress Peer
      description: Creates a new ingress peer
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      requestBody:
        description: New Ingress Peer request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngressPeerCreateRequest'
      responses:
        '200':
          description: A Ingress Peer object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngressPeer'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: postApiIngressPeers
      x-operation-id-source: derived
  /api/ingress/peers/{ingressPeerId}:
    get:
      x-cloud-only: true
      summary: Retrieve a Ingress Peer
      description: Get information about an ingress peer
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: ingressPeerId
        required: true
        schema:
          type: string
        description: The unique identifier of an ingress peer
      responses:
        '200':
          description: A Ingress Peer object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngressPeer'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: getApiIngressPeersByIngressPeerId
      x-operation-id-source: derived
    put:
      x-cloud-only: true
      summary: Update a Ingress Peer
      description: Update information about an ingress peer
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: ingressPeerId
        required: true
        schema:
          type: string
        description: The unique identifier of an ingress peer
      requestBody:
        description: update an ingress peer
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngressPeerUpdateRequest'
      responses:
        '200':
          description: A Ingress Peer object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngressPeer'
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/requires_authentication'
        '403':
          $ref: '#/components/responses/forbidden'
        '500':
          $ref: '#/components/responses/internal_error'
      operationId: putApiIngressPeersByIngressPeerId
      x-operation-id-source: derived
    delete:
      x-cloud-only: true
      summary: Delete a Ingress Peer
      description: Delete an ingress peer
      tags:
      - Ingress Ports
      security:
      - BearerAuth: []
      - TokenAuth: []
      parameters:
      - in: path
        name: ingressPeerId
        required: true
        schema:
          type: string
        description: The unique identifier of an ingress peer
      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: deleteApiIngressPeersByIngressPeerId
      x-operation-id-source: derived
components:
  schemas:
    AvailablePorts:
      type: object
      properties:
        tcp:
          description: Number of available TCP  ports left on the ingress peer
          type: integer
          example: 45765
        udp:
          description: Number of available UDP ports left on the ingress peer
          type: integer
          example: 50000
      required:
      - tcp
      - udp
    IngressPeer:
      type: object
      properties:
        id:
          description: ID of the ingress peer
          type: string
          example: ch8i4ug6lnn4g9hqv7m0
        peer_id:
          description: ID of the peer that is used as an ingress peer
          type: string
          example: x7p3kqf2rdd8j5zxw4n9
        ingress_ip:
          description: Ingress IP address of the ingress peer where the traffic arrives
          type: string
          example: 192.34.0.123
        available_ports:
          $ref: '#/components/schemas/AvailablePorts'
        enabled:
          description: Indicates if an ingress peer is enabled
          type: boolean
          example: true
        connected:
          description: Indicates if an ingress peer is connected to the management server
          type: boolean
          example: true
        fallback:
          description: Indicates if an ingress peer can be used as a fallback if no ingress peer can be found in the region of the forwarded peer
          type: boolean
          example: true
        region:
          description: Region of the ingress peer
          type: string
          example: germany
      required:
      - id
      - peer_id
      - ingress_ip
      - available_ports
      - enabled
      - connected
      - fallback
      - region
    IngressPortAllocation:
      type: object
      properties:
        id:
          description: ID of the ingress port allocation
          type: string
          example: ch8i4ug6lnn4g9hqv7m0
        name:
          description: Name of the ingress port allocation
          type: string
          example: Ingress Peer Allocation 1
        ingress_peer_id:
          description: ID of the ingress peer that forwards the ports
          type: string
          example: x7p3kqf2rdd8j5zxw4n9
        region:
          description: Region of the ingress peer
          type: string
          example: germany
        enabled:
          description: Indicates if an ingress port allocation is enabled
          type: boolean
          example: true
        ingress_ip:
          description: Ingress IP address of the ingress peer where the traffic arrives
          type: string
          example: 192.34.0.123
        port_range_mappings:
          description: List of port ranges that are allowed to be used by the ingress peer
          type: array
          items:
            $ref: '#/components/schemas/IngressPortAllocationPortMapping'
      required:
      - id
      - name
      - ingress_peer_id
      - region
      - enabled
      - ingress_ip
      - port_range_mappings
    IngressPeerUpdateRequest:
      type: object
      properties:
        enabled:
          description: Defines if an ingress peer is enabled
          type: boolean
          example: true
        fallback:
          description: Defines if an ingress peer can be used as a fallback if no ingress peer can be found in the region of the forwarded peer
          type: boolean
          example: true
      required:
      - enabled
      - fallback
    IngressPortAllocationPortMapping:
      type: object
      properties:
        translated_start:
          description: The starting port of the translated range of forwarded ports
          type: integer
          example: 80
        translated_end:
          description: The ending port of the translated range of forwarded ports
          type: integer
          example: 320
        ingress_start:
          description: The starting port of the range of ingress ports mapped to the forwarded ports
          type: integer
          example: 1080
        ingress_end:
          description: The ending port of the range of ingress ports mapped to the forwarded ports
          type: integer
          example: 1320
        protocol:
          description: Protocol accepted by the ports
          type: string
          enum:
          - tcp
          - udp
          - tcp/udp
          example: tcp
      required:
      - translated_start
      - translated_end
      - ingress_start
      - ingress_end
      - protocol
    IngressPeerCreateRequest:
      type: object
      properties:
        peer_id:
          description: ID of the peer that is used as an ingress peer
          type: string
          example: ch8i4ug6lnn4g9hqv7m0
        enabled:
          description: Defines if an ingress peer is enabled
          type: boolean
          example: true
        fallback:
          description: Defines if an ingress peer can be used as a fallback if no ingress peer can be found in the region of the forwarded peer
          type: boolean
          example: true
      required:
      - peer_id
      - enabled
      - fallback
    IngressPortAllocationRequestPortRange:
      type: object
      properties:
        start:
          description: The starting port of the range of forwarded ports
          type: integer
          example: 80
        end:
          description: The ending port of the range of forwarded ports
          type: integer
          example: 320
        protocol:
          description: The protocol accepted by the port range
          type: string
          enum:
          - tcp
          - udp
          - tcp/udp
          example: tcp
      required:
      - start
      - end
      - protocol
    IngressPortAllocationRequestDirectPort:
      type: object
      properties:
        count:
          description: The number of ports to be forwarded
          type: integer
          example: 5
        protocol:
          description: The protocol accepted by the port
          type: string
          enum:
          - tcp
          - udp
          - tcp/udp
          example: udp
      required:
      - count
      - protocol
    IngressPortAllocationRequest:
      type: object
      properties:
        name:
          description: Name of the ingress port allocation
          type: string
          example: Ingress Port Allocation 1
        enabled:
          description: Indicates if an ingress port allocation is enabled
          type: boolean
          example: true
        port_ranges:
          description: List of port ranges that are forwarded by the ingress peer
          type: array
          items:
            $ref: '#/components/schemas/IngressPortAllocationRequestPortRange'
        direct_port:
          description: Direct port allocation
          $ref: '#/components/schemas/IngressPortAllocationRequestDirectPort'
      required:
      - name
      - enabled
  responses:
    requires_authentication:
      description: Requires authentication
      content: {}
    internal_error:
      description: Internal Server Error
      content: {}
    forbidden:
      description: Forbidden
      content: {}
    bad_request:
      description: Bad Request
      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.....".