# Use API to get mail address for given username

**URL:** <https://meta.discourse.org/t/use-api-to-get-mail-address-for-given-username/47872>\
**Category:** Product Support\
**Created:** [Julho 27, 2016, 5:17pm UTC](https://meta.discourse.org/t/use-api-to-get-mail-address-for-given-username/47872 "2016-07-27T17:17:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)\
**Post date:** [Julho 27, 2016, 5:55pm UTC](https://meta.discourse.org/t/use-api-to-get-mail-address-for-given-username/47872/5 "2016-07-27T17:55:15Z")

</div>

I was studying the file [discourse/config/routes.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/config/routes.rb) but did not realised that it was `PUT`. Now it works. 🙂

---

_[View the full topic](https://meta.discourse.org/t/use-api-to-get-mail-address-for-given-username/47872)._
