# REST Api 404 Errors

**URL:** <https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343>\
**Category:** The Things Stack v3\
**Created:** [June 21, 2024, 8:56pm UTC](https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343 "2024-06-21T20:56:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmhofmeister](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cmhofmeister/32/46549_2.png) [@cmhofmeister](https://www.thethingsnetwork.org/forum/u/cmhofmeister)\
**Post date:** [June 21, 2024, 8:56pm UTC](https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343/1 "2024-06-21T20:56:23Z")

</div>

Hi, I’m getting started with the rest api on our TTI Tenant. We hope to use the api for provisioning.

I used the Gs (Retrieve gateway connection statistics) as my first endpoint, and it worked! I thought I was off to the races, but I am having a terrible time getting the other endpoints to respond.

I am using an API Key will full access for A&A.

To sort prove that is working I attached a screenshot of a Gs.  
[https://xxx.nam1.cloud.thethings.industries/api/v3/gs/gateways/eui-123xyz/connection/stats](https://xxx.nam1.cloud.thethings.industries/api/v3/gs/gateways/eui-123xyz/connection/stats)  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/6/862e8a5722b7f066749a5ac5d92f95a8644c4aa8.png)

I have tried all the the following which come back with 404 errors like the uri is incorrect. I have to be missing something very basic. I apologize for any rookie errors, I’m sure if someone can show me what I’m missing I’ll be good.

[https://xxx.nam1.cloud.thethings.industries/api/v3/gateways](https://xxx.nam1.cloud.thethings.industries/api/v3/gateways)  
[https://xxx.nam1.cloud.thethings.industries/api/v3/applications](https://xxx.nam1.cloud.thethings.industries/api/v3/applications)  
[https://xxx.nam1.cloud.thethings.industries/api/v3/applications/xxx](https://xxx.nam1.cloud.thethings.industries/api/v3/applications/xxx)  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/a/1/a1eead07aed181693ca4f8be213910342a094835.png)

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [June 21, 2024, 9:24pm UTC](https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343/2 "2024-06-21T21:24:53Z")

</div>

Please post screenshots when you can post the text. Screenshots are a lot harder to read (especially when using a dark theme with dark lettering) and are not searchable.

---

<div class="post-metadata">

**Author:** ![cmhofmeister](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cmhofmeister/32/46549_2.png) [@cmhofmeister](https://www.thethingsnetwork.org/forum/u/cmhofmeister)\
**Post date:** [June 21, 2024, 9:30pm UTC](https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343/3 "2024-06-21T21:30:53Z")

</div>

Thanks, I posted the uris in text above the picture. I’m sorry the screenshots are hard to read, I’ll try to fix that.

Here is the response to: [https://xxx.nam1.cloud.thethings.industries/api/v3/gateways](https://xxx.nam1.cloud.thethings.industries/api/v3/gateways) (same error for all uris above).

Also easy to find, but here is a link the rest api docs: [Routes | The Things Stack for LoRaWAN](https://www.thethingsindustries.com/docs/api/reference/http/routes/)

```auto
{
    "message": "not found",
    "details": [
        {
            "namespace": "proxy",
            "attributes": {
                "flags": "NR",
                "cluster": "nam1.cloud.thethings.industries"
            },
            "correlation_id": "e143a471-e13a-4498-adeb-29d784649c65",
            "name": "404_route_not_found",
            "message_format": "not found",
            "@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails"
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![cmhofmeister](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cmhofmeister/32/46549_2.png) [@cmhofmeister](https://www.thethingsnetwork.org/forum/u/cmhofmeister)\
**Post date:** [June 24, 2024, 2:55pm UTC](https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343/4 "2024-06-24T14:55:58Z")

</div>

I seem to have found a solution that I hope will be useful to anyone else in North America getting started with the http client.

In the troubleshooting section mention is made that " the Identity Server component of The Things Stack is hosted only in the `eu1` cluster"

> **[Troubleshooting](https://www.thethingsindustries.com/docs/api/concepts/troubleshooting/)**
>
> Troubleshooting API

So the base uri changes based on what you are doing, such as  
[https://xxx.eu1.cloud.thethings.industries/api/v3/gateways](https://xxx.eu1.cloud.thethings.industries/api/v3/gateways)  
[https://xxx.nam1.cloud.thethings.industries/api/v3/gs/gateways/eui-123xyz/connection/stats](https://xxx.nam1.cloud.thethings.industries/api/v3/gs/gateways/eui-123xyz/connection/stats)

As a suggestion if anyone from TTS would see this, it would be nice to mention this upfront in the documents. Perhaps even mention what calls use the identify server for ease-of use. Just a thought.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 24, 2024, 9:05pm UTC](https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343/5 "2024-06-24T21:05:37Z")

</div>

> [@cmhofmeister](#):
>
> As a suggestion if anyone from TTS would see this, it would be nice to mention this upfront in the documents. Perhaps even mention what calls use the identify server for ease-of use. Just a thought.

Unlikely to occur unless you post an issue on GitHub - that’s the procedure.

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [June 25, 2024, 9:06pm UTC](https://www.thethingsnetwork.org/forum/t/rest-api-404-errors/68343/6 "2024-06-25T21:06:36Z")

</div>

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