# Endpoint for User Information

**URL:** https://meta.discourse.org/t/endpoint-for-user-information/160145
**Category:** Development
**Tags:** rest-api
**Created:** [August 7, 2020, 5:58pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145 "2020-08-07T17:58:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Alexander](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander/32/497634_2.png) [@Alexander](https://meta.discourse.org/u/Alexander)
#### Post date: [August 7, 2020, 5:58pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145/1 "2020-08-07T17:58:52Z")

</div>

Hi all!

I would like to know if there is currently (or could be implemented) an endpoint that contains information about the user

I am making an application that uses the User API Keys, everything works perfectly, but I would like to get information about the user who “logged in using their User API Key”

Something like “[discourse.example.com/user.json](http://discourse.example.com/user.json)”

Currently I did not find something like this in Discourse API Docs, and also not while reverse engineering the API

If someone could guide me I would be very grateful!

Thanks in advance!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 7, 2020, 10:04pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145/2 "2020-08-07T22:04:08Z")

</div>

Does [https://meta.discourse.org/u/Alexander.json](https://meta.discourse.org/u/Alexander.json) give you what you want?

> [@Alexander](#):
>
> and also not while reverse engineering the API

Oops. Sorry.

~~The API Docs don’t always keep up with everything, check out[How to reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576).~~

---

<div class="post-metadata">

### Author: ![Alexander](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander/32/497634_2.png) [@Alexander](https://meta.discourse.org/u/Alexander)
#### Post date: [August 7, 2020, 10:29pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145/3 "2020-08-07T22:29:16Z")

</div>

> [@pfaffman](#):
>
> Does [https://meta.discourse.org/u/Alexander.json](https://meta.discourse.org/u/Alexander.json) give you what you want?

Not really at first

Since I have not found how to obtain, at least, the username of the user

That is why an endpoint like the one I mentioned above could be useful to obtain information, even very basic, of the current user

---

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [August 7, 2020, 10:41pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145/4 "2020-08-07T22:41:46Z")

</div>

I don’t think we’ve got an official endpoint to finding out “who I am” without giving a username.

However, you can still detect it by way of following [Discourse Meta - The Official Support Forum for Discourse](https://meta.discourse.org/my/summary) down a bit - that will redirect to the current user’s page.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [August 7, 2020, 10:52pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145/5 "2020-08-07T22:52:27Z")

</div>

It’s not officially in the API docs, but I think [https://meta.discourse.org/session/current.json](https://meta.discourse.org/session/current.json) might be useful for this purpose

---

<div class="post-metadata">

### Author: ![Alexander](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexander/32/497634_2.png) [@Alexander](https://meta.discourse.org/u/Alexander)
#### Post date: [August 7, 2020, 10:55pm UTC](https://meta.discourse.org/t/endpoint-for-user-information/160145/6 "2020-08-07T22:55:00Z")

</div>

It is exactly what I needed! 😃

Thank you very much!!
