# 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:** [7월 27, 2016, 5:17오후 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:** 1

<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:** [7월 27, 2016, 5:17오후 UTC](https://meta.discourse.org/t/use-api-to-get-mail-address-for-given-username/47872/1 "2016-07-27T17:17:06Z")

</div>

Hello,

I want to hack a script that routes incoming mails @association.org from the server to the private mail accounts of the association members. I assume that all members have a forum account and want to reuse the already approved mail address from the forum db.

I checked the data that is returned from the forum API for a given username, but I cannot find the mail address. How do I get it?

---

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