How Strapi can received POST requests from a web hook

Hi, I plan to connect an external webhook.

The fact Is that, on this APK there is no webhook URL provided, I can just put my strapi server url in the configuration panel of the APK

My question is : after what should I do to listen events from the webhook and do the logic that I want

I see only ressources about how to use strapi as a webhook but not the opposite

Tell me I have not been enough clear, have a great day :slight_smile:

So would that mean your apk will sending a post request to your server?
If that’s the case, you can just have a route and a controller react to what to do when a post request arrived at the url etc.

hi Eventyret, and thank for your answer
I think it is that, do you have any ressource that explain how to do this ? :blush:

have a nice day

Could you explain a bit more what you are trying to do then ? :slight_smile: If you are sending any data or getting data :slight_smile:
Most info about controllers can be found here Backend customization - Strapi Developer Documentation

Just create a new endpoint and you can extend it with your own logic or create a new handler.

I’m trying to listen the revenue cat webhook, to have access to subscription event

so any time there is an event I want to do something, but I don’t know how to have the event access :sweat_smile:

So depending on what you want to do here. So I’m going to just type this as a “food for thought” rather then a solution.

Set the URL from webhooks (which fires if someone buys something) to a STRAPI endpoint of your choice. Creating your OWN endpoint is what is in the link I gave above.
Then do the logic in strapi on what to do when it’s purchased what data to store etc.


Thank you Eventyret,

indeed I didn’t understood that the Webhooks just sending POST request that’s why I need my OWN endpoint to listen it

more clear thank to you

have a nice evening !

You are most welcome @squirelle