# Получение адреса электронной почты пользователя через API

**URL:** <https://meta.discourse.org/t/get-e-mail-address-for-a-user-via-api/122006>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [03.Июль.2019 12:48:02 UTC](https://meta.discourse.org/t/get-e-mail-address-for-a-user-via-api/122006 "2019-07-03T12:48:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [03.Июль.2019 13:09:17 UTC](https://meta.discourse.org/t/get-e-mail-address-for-a-user-via-api/122006/4 "2019-07-03T13:09:17Z")

</div>

Этот запрос работает у меня:

```plaintext
curl "http://example.com/users/joffreyjaffeux/emails.json" \
     -H 'Api-Username: joffreyjaffeux' \
     -H 'Api-Key: xxx' \
     -H 'Content-Type: application/json; charset=utf-8' \

```

---

_[View the full topic](https://meta.discourse.org/t/get-e-mail-address-for-a-user-via-api/122006)._
