Packet Broker Getting Started Commands

Getting Started

    Overview
  • Quick Start
  • What Is Packet Broker?
  • Network Configuration
  • Command-Line Interface
  • Terminology
  • API

API

The Packet Broker Mapper API can help you fetch gateway locations, online status and other gateway information for The Things Stack Community Edition, Cloud, Enterprise and Open Source deployments. This section contains the reference for the Packet Broker Mapper API and examples of forming an API call.

The OpenAPI definition of the Packet Broker Mapper API is available here.

You can also use Swagger UI to explore the Mapper API. Just enter https://mapper.packetbroker.net/api/v2/openapi.json in the URL field on the top and click Explore.

Examples

To get all gateways that are connected to Packet Broker:

curl https://mapper.packetbroker.net/api/v2/gateways

As a result of this API call, you will get a list of all gateways connected to Packet Broker and their details (like network, tenant, cluster and gateway identifiers, activity status, location, etc.).

To get info about a gateway demo-gw1 that’s connected to The Things Stack Community Edition:

curl https://mapper.packetbroker.net/api/v2/gateways/netID=000013,tenantID=ttn,id=demo-gw1
Show JSON API response
{
  "netID":"000013",
  "tenantID":"ttn",
  "id":"demo-gw1",
  "eui":"B827EBFFFE8DB885",
  "clusterID":"eu1.cloud.thethings.network",
  "updatedAt":"2022-05-04T14:55:35.52635Z",
  "location":{
    "latitude":43.856691,
    "longitude":18.382848,
    "altitude":500,
    "accuracy":0
  },
  "antennaPlacement":"INDOOR",
  "antennaCount":1,
  "online":true,
  "frequencyPlan":{
    "region":"EU_863_870",
    "loraMultiSFChannels":[
      868100000,
      868300000,
      868500000,
      867100000,
      867300000,
      867500000,
      867700000,
      867900000
    ]
  },
  "rxRate":2821.1191,
  "txRate":151.6022
}
← Terminology

On this page

  • Examples

Packet Broker

Packet Broker

Getting Started

Commands

About Us

The Things Network

The Things Industries

About this page

Last changed on 01 Jan 0001.