# How to get username for webhook when user clicked button

**URL:** https://meta.discourse.org/t/how-to-get-username-for-webhook-when-user-clicked-button/231012
**Category:** Development
**Tags:** rest-api
**Created:** [June 24, 2022, 12:13pm UTC](https://meta.discourse.org/t/how-to-get-username-for-webhook-when-user-clicked-button/231012 "2022-06-24T12:13:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DragonByte](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DragonByte](https://meta.discourse.org/u/DragonByte)
#### Post date: [June 24, 2022, 12:13pm UTC](https://meta.discourse.org/t/how-to-get-username-for-webhook-when-user-clicked-button/231012/1 "2022-06-24T12:13:34Z")

</div>

Hello! 👋

I created banner for my users with `form action="url_webhook"` and button “Send”, when user click on button, my Discourse send information to webhook url, but it’s header output don’t have `username` who clicked a button. How to get this parametr?

```plaintext
<div><b>Hello!</b>
<p>Please click a button to notify Staff</p>
<button id="Send">Send</button>
</div>

```

---

<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: [June 24, 2022, 1:11pm UTC](https://meta.discourse.org/t/how-to-get-username-for-webhook-when-user-clicked-button/231012/2 "2022-06-24T13:11:08Z")

</div>

It might help to take a couple steps back and say what it is you’re trying to accomplish.

---

<div class="post-metadata">

### Author: ![DragonByte](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DragonByte](https://meta.discourse.org/u/DragonByte)
#### Post date: [June 24, 2022, 2:12pm UTC](https://meta.discourse.org/t/how-to-get-username-for-webhook-when-user-clicked-button/231012/3 "2022-06-24T14:12:17Z")

</div>

When user click the button, forum send POST to external webhook: [https://example.com/confirm](https://example.com/confirm). So I don’t see in the `request headers` the `username` who send this post (click button).

I need to get `username` of user who clicked on the button.

**Example:** when user _Alex1_ click button _Send_, my forum send POST to webhook url with this value: _Alex1_

Sorry fo rmy bad English ☹
