On this page

    1. Home
    2. API
    3. API Reference
    4. Network
    5. Network Clients

    Network Clients

    This endpoint retrieves a list of all clients (devices, proxies, and residents) currently registered to your network. It provides detailed information about each client's state, configuration, and recent connections.


    GET /network/clients

    Get list of clients for the network. This includes details about their device type, authentication time, provision mode, and active connections.

    Request

    GET /network/clients

    Headers:

    {
      "Host": "api.bringyour.com",
      "Authorization": "Bearer YOUR_JWT_TOKEN",
      "Accept": "application/json"
    }

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    A successful response returns an object containing an array of clients.

    {
      "clients": [
        {
          "client_id": "udid",
          "source_client_id": "udid",
          "device_id": "udid",
          "network_id": "udid",
          "description": "string",
          "device_name": "string",
          "device_spec": "string",
          "create_time": "string",
          "auth_time": "string",
          "provide_mode": 0,
          "proxy_client": {
            "http_proxy_url": "string",
            "https_proxy_url": "string",
            "socks_proxy_url": "string",
            "auth_token": "string",
            "instance_id": "string",
            "proxy_host": "string",
            "socks_proxy_port": 0,
            "http_proxy_port": 0,
            "https_proxy_port": 0,
            "wg_config": {
              "wg_proxy_port": 0,
              "client_private_key": "string",
              "client_public_key": "string",
              "client_ipv4": "string",
              "proxy_public_key": "string",
              "config": "string"
            }
          },
          "resident": {
            "client_id": "udid",
            "instance_id": "udid",
            "resident_id": "udid",
            "resident_host": "string",
            "resident_service": "string",
            "resident_block": "string",
            "resident_internal_ports": [0]
          },
          "connections": [
            {
              "client_id": "udid",
              "connection_id": "udid",
              "connect_time": "string",
              "disconnect_time": "string",
              "connection_host": "string",
              "connection_service": "string",
              "connection_block": "string"
            }
          ]
        }
      ]
    }

    Fields

    FieldTypeDescription
    clientsarrayList of clients associated with the network.
    clients[].client_idstringUnique identifier (UDID) for the client.
    clients[].source_client_idstringSource client identifier if this is a derived or ancillary client.
    clients[].device_idstringUnique identifier for the hardware device.
    clients[].network_idstringThe ID of the network this client belongs to.
    clients[].descriptionstringA description or name for the client.
    clients[].device_namestringHuman-readable name of the device.
    clients[].device_specstringHardware or software specification string.
    clients[].provide_modeintegerProvide Mode enum value.
    clients[].proxy_clientobjectProxy configuration relay details, including WireGuard (WG) config if applicable.
    clients[].residentobjectDetails if the client is running a resident service.
    clients[].connectionsarrayRecent or active connection history.

    Enums

    Provide Mode

    ValueTitleDescription
    0DefaultDefault provision mode.
    1NoneClient does not provide bandwidth.
    2NetworkProvides to own network.
    3Friends & FamilyProvides to specific contacts.
    4PublicProvides to the public network.
    5StreamStreaming optimized mode.

    Example

    HTTP Request

    GET /network/clients HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Accept: application/json

    Successful HTTP Response

    {
      "clients": [
        {
          "client_id": "550e8400-e29b-41d4-a716-446655440000",
          "device_name": "My Laptop",
          "provide_mode": 2,
          "auth_time": "2025-01-20T12:00:00Z",
          "connections": []
        }
      ]
    }


    Powered by Sudoc v2.5.0
    Hide table of contents