In the header, the value for “Authorization” must be “Basic APIkey:X” where APIkey:X must be Base64-encoded.
E.g. if your API key is W25uOtAmhj8V8zT9JJHh, then you must encode W25uOtAmhj8V8zT9JJHh:X to base64, resulting in: “VzI1dU90QW1oajhWOHpUOUpKSGg6WA==”. Then you pass in the header:
But when I execute the flow then Dialog 2.3(the last statement before triggering create ticket api) gets executed again after creating the ticket in freshdesk and then in the Team Inbox in Freshchat i see that the bot has failed due to unexpected error.
I also want the ticket id created to be displayed in the chat, please help.
It’s very difficult to help you in this case, since there’s a lot of variables in a Freddy Self Service flow. We would need to see your flow, flow actions, flow conversation logs, in order to try to help you.
Perhaps you can find out what’s happening reading the documentation: Freddy Self-service : Freshdesk
Or you could write to support@freshchat.com to get specialized help.