Webhook api response

when i am hitting the webhook api http://localhost:5005/webhooks/rest/webhook with body

body: { “message”: “hello”, “sender”:“me” }

Then it’s giving the response below:

success response: [ { “recipient_id”:“me”, “text”:“Hello!how can i help you” }]

for Webhook api there is no failure response mentioned. So, i just want to know if there is any failure response for webhook api ,that i need to handle it

please tell me how can i know the failure response,i checked in rasa api doc,i did not get any information what will be the failure response?

thanks in advance

Hi @mohankumar, there could be a variety of failure responses just as any HTTP request, e.g. if your server is up you might get a 502 service unavailable or if you start it with an auth token, if you don’t provide the token you’d probably get a 403 unauthorized. I’d recommend in your app to handle the general case in which you don’t receive a 200 response.

Hi @erohmensing, using url:http://localhost:5005/webhooks/rest/webhook, can we get intent along with response. if possible can u please help me, Thanks in advance

No, it will only give you the response. However if you run with --enable-api you can check the intent with http://localhost:5005/model/parse

You can just get intent and entity list when you call localhost:5005/model/parse with payload {“text”:“Who are you ?”}