# Issues with the /get-users ending point

**URL:** https://meta.discourse.org/t/issues-with-the-get-users-ending-point/316362
**Category:** Development
**Tags:** rest-api
**Created:** [July 15, 2024, 5:29pm UTC](https://meta.discourse.org/t/issues-with-the-get-users-ending-point/316362 "2024-07-15T17:29:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jchuramp](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jchuramp](https://meta.discourse.org/u/jchuramp)
#### Post date: [July 15, 2024, 5:29pm UTC](https://meta.discourse.org/t/issues-with-the-get-users-ending-point/316362/1 "2024-07-15T17:29:06Z")

</div>

Seems there are issues the /get-users ending point preventing us from retrieving up to date data

Wondering if there was progress / status update on this issue on when this should start working

> **[Discourse API Docs](https://docs.discourse.org/#tag/Users/operation/listUserActions)**

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [July 15, 2024, 6:13pm UTC](https://meta.discourse.org/t/issues-with-the-get-users-ending-point/316362/2 "2024-07-15T18:13:50Z")

</div>

Hi, welcome to meta 🙂

Can you clarify what data you are trying to retrieve? `/get-users ` endpoint doesn’t exist, and the link points to `/user_actions`. It’s unclear to me what data you need. 🤔

---

<div class="post-metadata">

### Author: ![akaushikramp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akaushikramp/32/432043_2.png) [@akaushikramp](https://meta.discourse.org/u/akaushikramp)
#### Post date: [July 16, 2024, 2:24pm UTC](https://meta.discourse.org/t/issues-with-the-get-users-ending-point/316362/3 "2024-07-16T14:24:39Z")

</div>

Hey there, we are querying the `/admin/users/list/active.json` endpoint for active users, and get back a 404 Not Found error consistently. I’m confident the issue isn’t related to an API token or anything, because we can query `/user_actions?username=<...>` endpoint without issue. I inspected the browser network traffic when on the admin users page and the API call that the discourse app is making looks identical to what we are attempting. Here are the headers we pass to the request (both `users/list/active` and `user_actions`:

```plaintext
Accept: application/json
Api-Username: system
Api-Token: <token>

```

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [July 16, 2024, 2:37pm UTC](https://meta.discourse.org/t/issues-with-the-get-users-ending-point/316362/4 "2024-07-16T14:37:47Z")

</div>

Hey, welcome Anirudh 🙂

`Api-Token` doesn’t exist, it should be `Api-Key`!

> [@Discourse REST API Documentation](https://meta.discourse.org/t/discourse-rest-api-documentation/22706):
>
> Discourse API Please view the Discourse API Documentation site for detailed info: [https://docs.discourse.org](https://docs.discourse.org)information_source Authentication API requests must use HTTP header based authentication. Pass your Api-Key and Api-Username as HTTP headers. Authentication via query parameters or request body is not supported (this was removed in April 2020). Please see the example cURL request below. The only API endpoints that continue to support credentials in query parameters are requests to…

---

<div class="post-metadata">

### Author: ![akaushikramp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akaushikramp/32/432043_2.png) [@akaushikramp](https://meta.discourse.org/u/akaushikramp)
#### Post date: [July 16, 2024, 3:05pm UTC](https://meta.discourse.org/t/issues-with-the-get-users-ending-point/316362/5 "2024-07-16T15:05:28Z")

</div>

Oh amazing, I was using `Api-Key` in our automated script but in my local testing I used `Api-Token` 🤦. Thanks that solved it!
