Support for API callbacks / webhooks

Hi all,
Do you know if Wappler and the final website can receive API callbacks?

Thanks.

1 Like

THAT would be awesome!

1 Like

Do you mean webhooks?

Yes you can already use your server connect actions for that.

The only difference is that instead of posting the data through a form now another service calls them and post the data

4 Likes

Yes, I mean webhooks.

OK, perfect! I will try it.

Thanks!

Hi @George,

I have tried to find something in the Wappler documentation regarding this topic, but I cannot find anything useful.

SCENARIO
After sending a request to an API using the Server Connect + API Action, I need to capture and treat the content sent back by the API endpoint (it uses several PUT requests). It is not just a normal HTTP Response from the initial Request.

For what I know, these are called “callbacks”.

If you use the callback URL, then the API can connect to the callback URL and send or receive some data. That means API can connect to you later (after API call).

EXAMPLE

Diagram

  1. YOU send data using request to API
  2. API sends data using second request to YOU

Is it possible to process those requests with Wappler?

Thanks

2 Likes

Any help on this, please?

Thanks.

Just as I indicated in my previous post - you can define the callbacks as your server connect action files.

So in your case - you call the initial API from one server connect action.

And you define another server connect action as to receive the callback.

Just give the full url to the Server Connect Action as callback url. You usually have to specify that on the remote API service.

Have a complete tutorial for this?

@bsg This was a pretty old thread, so there are many new improvements to Wappler in the meantime that might be a better fit:

This is one place to look:
https://community.wappler.io/c/docs/api-and-json/40

Much of the same content here, but it seems best to check both:

And if you learn from videos, there are multiple great API-focused videos in this playlist https://www.youtube.com/playlist?list=PLUjqTJN3byC9W9UFjsV9f9vefe_ZSFQfb

Hope this helps!

Perfect, i’ll check.