COMMUNITY
How can I send a custom POST request via webhook?
almost 4 years ago by Mihir Luthra
I want to use snatchbot in my iOS app.
The way I found is to enable API (bot -> channels -> API). Then I could use POST requests to add messages to chatbot:
curl --request POST \
--url 'https://snatchbot.me//channels/api/api/idbot_id/appapp_key/apsapp_secret?user_id=user_id' \
--header 'content-type: application/json'
I need to keep my app updated with the latest conversations happening in between bot and the user. For that I could use a webhook to post to the specified url when any change occurs. Although I need to customize the JSON body being sent through the webhook.
I am Backend-as-a-Service which expects data being sent to be structured in a particular format. Is it possible to customize the data being sent through webhook?