Connect appgyver call to discord

How do you make a restApi in your app and also from there you make http requests to the discord app
lets say you do your restApi from appgyver
the link could look like
That would be the main link, (for example)
from the bot you can make requests with fetch with the user who sends a message and its content

with parameters from the link or headers