โ09-22-2023 12:40 PM
Is it possible to implement an API that does not require credentials? Ultimately, I would like to implement a GET call with query parameters through a hyperlink. I want that to return a custom HTML response to the user.
I can't seem to get past the authentication requirement though.
Has anyone done anything similar?
Solved! Go to Solution.
โ09-23-2023 06:55 AM
Yes you can use the HTTP connector and specify no authentication in the connector details.
โ09-25-2023 07:09 AM
Ah, I see, sorry for the misunderstanding. I've used Workato's "webhook" trigger for that same purpose... it provides an API endpoint that can be called without authentication to serve as a notification endpoint of a change being made elsewhere. The webhook wizard is pretty good, where it gives you the endpoint and then listens. Meanwhile you go to the other system and generate the call, and Workato "detects" it and generates the input schema for you.
The part I'm not familiar with is generating an HTML response. Mine doesn't give a response beyond the 200 Ok, and their doc looks like it's not meant to give much more.
And the API Platform, if you have that module, doesn't have an authentication-less option. But it can just use an Auth Token in plain text so you can "approximate" no authentication? ๐ My responses for those have always been JSON. It looks like the Content Type options are JSON and Text/Xml, so I'm not sure HTML would be supported. I'd ask Support to be sure on that one.
Sorry I couldn't be more help.
โ10-03-2023 05:34 AM
Hi @bboren ,
This is Marlon from the support team.
HTTP Webhook doesn't have a configurable response, unlike API Platform. However, the API Platform requires authentication.
โ09-23-2023 06:55 AM
Yes you can use the HTTP connector and specify no authentication in the connector details.
โ09-24-2023 06:05 AM
Thanks for the reply. I think I did not word my post right. I am not trying to create an outbound API call. I want to support an inbound API call. Essentially I want to replace a webhook and provide a custom response that is HTML. So I want the call to trigger my recipe when another system calls it.
The HTML trigger seemed to perform an HTML call on a schedule. Not support an inbound call.
โ09-25-2023 07:09 AM
Ah, I see, sorry for the misunderstanding. I've used Workato's "webhook" trigger for that same purpose... it provides an API endpoint that can be called without authentication to serve as a notification endpoint of a change being made elsewhere. The webhook wizard is pretty good, where it gives you the endpoint and then listens. Meanwhile you go to the other system and generate the call, and Workato "detects" it and generates the input schema for you.
The part I'm not familiar with is generating an HTML response. Mine doesn't give a response beyond the 200 Ok, and their doc looks like it's not meant to give much more.
And the API Platform, if you have that module, doesn't have an authentication-less option. But it can just use an Auth Token in plain text so you can "approximate" no authentication? ๐ My responses for those have always been JSON. It looks like the Content Type options are JSON and Text/Xml, so I'm not sure HTML would be supported. I'd ask Support to be sure on that one.
Sorry I couldn't be more help.
โ09-25-2023 10:57 AM
Thank you. Ultimately, I want someone to be able to click a hyperlink to call a webhook and have it respond with something better than {"ok"}. I want something simple like "Your request was processed." or "Your request failed". Everything is there for the webhook other than being able to change the response.