#qwrts_webhooks

1 messages ยท Page 1 of 1 (latest)

hollow mirageBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1314318972690108487

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

waxen compassBOT
pearl mountain
#

Hi there ๐Ÿ‘‹ in order to receive Events on a webhook endpoint, you have to have a server or some sort of hosting solution where your webhook endpoint code, that runs when it receives an Event, can reside and be executed.

Then that endpoint also needs to be publicly accessible so our system can reach it to deliver Events.

river lintel
#

I do have a server but it was host from third party (I'm using Cybrancee)

#

where should i be looking for. do you have any examples?

pearl mountain
#

Not for that specific hosting provider, and not without understanding what stack you're using to host your webserver on that provider.

I'd suggest confirming the what you're using to run your webserver on that server, and then consult the documentation for that solution regarding how to build an endpoint/API in it.

river lintel
#

I'm currently hosting for Discord bot (this project i'm working on) and using NodeJS / its running on Docker (NodeJS 23)

#

they have options for Discord bot hosting and Web hosting. Does this mean i have to hosting another server?

pearl mountain
#

I'm not sure, I don't know what exactly they're offering you to use. You can check with hosting provider to see if they offer what you need.

Like I know for Node environements, a lot of folks will use Express as their webserver. But if the environment you're using is containerized there may be networking configurations/requirements that are specific to that environment.

river lintel
#

what I need to prepare?

I need a webserver of my own and it's URL (just unique url of it)?
or anything else?

pearl mountain
#

That's the gist of it.

You need a server hosting a webserver, which is hosting your endpoint.
You need that endpoint to be publicly available and for it to be accessible via a URL that you can share with us.
Then you need to write code to run on that server/endpoint that processes the Events we send to it.

river lintel
#

from what I understand

I need a webserver which hosting my endpoint (like using Express, etc.) and I need to copy that URL and endpoint to fill for creating the webhook

I'm i right?

pearl mountain
#

Yes

#

Though I'm not too sure what you mean by "copy that URL". The URL that you use will be based on which domain you purchase/maintain, in conjuction with the path you set when creating the endpoint in your webserver.

river lintel
#

example like i purchased a server for website (such as example.com) and create a webserver from it (example.com/stripe-webhook)

that example.com/stripe-webhook is the endpoint URL right?

pearl mountain
#

Yup

river lintel
#

thank you so much. Its a lot clear now

pearl mountain
#

Any time!

river lintel
#

the thread will automatically close right?

pearl mountain
#

I'll close it out