Jump to content

301 redirect when accessing API from PVA/Co-pilot


davidrb84

Recommended Posts

Hi all,
 
We're trying to use Hornbill's chatbot API as documented here but I'm running into problems; regardless of request I send I seem to get a 301 redirect back to the documentation pages.
 
I have tried a few requests from the documentation examples such as
curl --location 'https://api.hornbill.com/testuopservicedesk/xmlmc/apps/com.hornbill.servicemanager
--header 'Authorization: ESP-APIKEY ***api-key***' \
--header 'Content-Type: application/json' \
--data-raw '{"@service":"apps/com.hornbill.servicemanager","@method":"chatbotLogRequest","params":{"userId":"Copilot","requestType":"Incident","summary":"Test","description":"testtest"}}'
 
but all respond with a 301.
 
Following the documentation for Hornbill PVAs, I also find that in the included Power Automate Flow the HTTP request step fails (as attached), where I believe this has previously run successfully.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...