Chirpstack Rest API list tenants endpoint

Hi everyone,

I’m trying to implement a way to automatically provision gateways, devices profiles and devices to Chirpstack right after installing it using Docker and V4. To do that I’m using the Chirpstack REST API docker also, with the aim to provision everything throught HTTP requests.

In most of the requests I have to make, I need to provide the tenantID. I’m planning to use the default tenant: ChirpStack. As I’m planning to have just this tenant, I would expect to retreive it’s ID through the api/tenants endpoint. But I’m getting the following response:

Response body

Download

{
  "totalCount": 1,
  "result": []
}

The totalCount field confirms I have one tenant, but the result field is empty. Why is that? I would expect to have all the information related to the ChirpStack tenant in the result field.

Thanks in advance,

Marc

Please look at the API request parameters. You are missing the limit parameter, which defaults to 0 hence you only get the counts.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.