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
https://tierradelbienestar.com/v2
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
https://tierradelbienestar.com/v2/latierradelbienestar#9498/Appgyver%20es%20el%20front%20end

with parameters from the link or headers