# Discourse\_api URL not found error

**URL:** <https://meta.discourse.org/t/discourse-api-url-not-found-error/168071>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [October 23, 2020, 12:58pm UTC](https://meta.discourse.org/t/discourse-api-url-not-found-error/168071 "2020-10-23T12:58:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [October 23, 2020, 2:13pm UTC](https://meta.discourse.org/t/discourse-api-url-not-found-error/168071/2 "2020-10-23T14:13:30Z")

</div>

This is very likely an api key authentication issue.

If you open up a new incognito browser window to your site you are not logged into and browse to that route `https://yoursite/admin/dashboard.json` will return

```plaintext
{"errors":["The requested URL or resource could not be found."],"error_type":"not_found"}

```

But if you are logged into your site and browse to the same url you should see the json result.

One other thing to check is if api key to “all users” or “single user”? If it is set to single user make sure it matches with the user you are making the api request for.

That being said it looks like the two dashboard endpoints in the api gem need updating. the `get_dashboard_stats` still works, but doesn’t return as much info as it used to and looks like `get_dashboard_stats_totals` will need updating.

---

_[View the full topic](https://meta.discourse.org/t/discourse-api-url-not-found-error/168071)._
