Setting up custom webhooks
jkellogg01
HOBBYOP

a year ago

This is a bit more of a generic question, but I want to set up a custom webhook to hit my own server when it's deployed. The docs don't really have a ton of information about rolling your own webhook endpoints, is that not an intended use case? If that's not the case, is there somewhere I can find more information about the http requests that the webhooks send than what can be found at https://docs.railway.app/reference/webhooks and https://docs.railway.app/guides/webhooks ?

9 Replies

jkellogg01
HOBBYOP

a year ago

N/A


a year ago

first can you explain your usecase?


jkellogg01
HOBBYOP

a year ago

basically I want to give my server access to my spotify account when it restarts, so I want to hit an endpoint on the server when the deployment is complete that will generate a magic link and email it to me so that I can do the authorization manually.


jkellogg01
HOBBYOP

a year ago

I really wish spotify had a way to do so programatically but it looks like their api is built more for getting end-user information so the only way to get an access key is to go through the OAuth flow manually


a year ago

why would that ever require hitting your service with a webhook?


jkellogg01
HOBBYOP

a year ago

would it make more sense to just do it on startup? I thought about that but I felt like it was too hacky


jkellogg01
HOBBYOP

a year ago

but maybe that's the more sensible way to do it


a year ago

hacky would be having railway call the service with a webhook


jkellogg01
HOBBYOP

a year ago

cool


Loading...