# Request from API doesn't update User#last\_seen\_at

**URL:** https://meta.discourse.org/t/request-from-api-doesnt-update-user-last-seen-at/108528
**Category:** Support
**Created:** [February 6, 2019, 7:56pm UTC](https://meta.discourse.org/t/request-from-api-doesnt-update-user-last-seen-at/108528 "2019-02-06T19:56:10Z")
**Posts on this page:** 1
**Showing post:** 10

<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: [April 15, 2019, 4:36pm UTC](https://meta.discourse.org/t/request-from-api-doesnt-update-user-last-seen-at/108528/10 "2019-04-15T16:36:17Z")

</div>

> [@david](#):
>
> we have the DISCOURSE\_VISIBLE header for XHR requests, we could certainly make that work on API requests as well.

You can now set DISCOURSE\_VISIBLE=“true” on API requests, and Discourse will update the last\_seen time for the user

[https://github.com/discourse/discourse/commit/af86cf46dc003f19ba52f71826f057884f1119ba](https://github.com/discourse/discourse/commit/af86cf46dc003f19ba52f71826f057884f1119ba)

---

_[View the full topic](https://meta.discourse.org/t/request-from-api-doesnt-update-user-last-seen-at/108528)._
