How to get username for webhook when user clicked button

Hello! :wave:

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?

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

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

1 Like

When user click the button, forum send POST to external webhook: 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 :frowning:

1 Like