API V3: Network Operations Center endpoints return 404

Greetings everyone,

I’ve been trying these endpoints to query stats from my gateways but every single one returns a 404.

Endpoint under test: Noc.QueryGatewaysConnected
Request:

curl -X POST 'https://nam1.cloud.thethings.network/api/v3/noc/gateways/connected' \
     -H 'Authorization:Bearer NNSXS.xxyyzz' \
     -H 'Content-Type:application/json' \
     -d '{
            "from": "0001-01-01T00:00:00Z",
            "to": "0001-01-01T05:00:00Z",
            "bucket_interval": "1s",
        }'

Response:

{
   "details":[
      {
         "namespace":"proxy",
         "correlation_id":"2cbee1bb-41ee-46ba-b11d-425c22e03769",
         "name":"404_route_not_found",
         "@type":"type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
         "attributes":{
            "cluster":"nam1.cloud.thethings.network",
            "flags":"NR"
         },
         "message_format":"not found"
      }
   ],
   "message":"not found"
}

Endpoint under test: Noc.QueryGatewaysConnectivityTimes

Request:

curl -X POST 'https://nam1.cloud.thethings.network/api/v3/noc/gateways/connectivity' \
     -H 'Authorization:Bearer NNSXS.VXLNZSJ3ZH5KNJGSHYZR3C4OFETVFD6S7DC744Q.GW56TKR4O6N42VYQGBKA4RTR4ABSGD2WLSX5ZBLAVCRW63HFW7VQ' \
     -H 'Content-Type:application/json' \
     -d '{
            "from": "0001-01-01T00:00:00Z",
            "to": "0001-01-01T05:00:00Z"
        }'

Response:

{
   "details":[
      {
         "correlation_id":"7f3e78f3-c442-41f8-abdd-78d37aa07ff4",
         "@type":"type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
         "name":"404_route_not_found",
         "attributes":{
            "cluster":"nam1.cloud.thethings.network",
            "flags":"NR"
         },
         "namespace":"proxy",
         "message_format":"not found"
      }
   ],
   "message":"not found"
}

I don’t know what could I be missing over here. I’d really appreciate comments and suggestions on this matter.

Thanks in advance.
Best regards.

The Network Operations Center is a feature only accessible by network admins. In the case of TTN, this is TTI Operations staff.

If you want access to a NOC, you need your own private The Things Stack instance, e.g. The Things Stack Cloud. For more information on this, visit The Things Stack

Not sure what you want exactly, but there is also an API to get gateway info at packetbroker.net
For example, for one of the gateways I administer:
https://mapper.packetbroker.net/api/v2/gateways/netID=000013,tenantID=ttn,id=revspace

Returns something like this:

{
  "netID": "000013",
  "tenantID": "ttn",
  "id": "revspace",
  "eui": "0000024B080606AC",
  "clusterID": "eu1.cloud.thethings.network",
  "updatedAt": "2022-12-24T17:33:45.368043Z",
  "location": {
    "latitude": 52.07803560835089,
    "longitude": 4.392136037349702,
    "altitude": 9,
    "accuracy": 0
  },
  "antennaPlacement": "OUTDOOR",
  "antennaCount": 1,
  "online": true,
  "frequencyPlan": {
    "region": "EU_863_870",
    "loraMultiSFChannels": [
      868100000,
      868300000,
      868500000,
      867100000,
      867300000,
      867500000,
      867700000,
      867900000
    ]
  },
  "rxRate": 207.45602,
  "txRate": 0
}