Flow designer Rest API call with Basic auth. report auth failed, but works in Postman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 09:44 AM
I am trying to use Flow Designer Rest Step to call a API with basic auth. Here is the result from Postman. It is working fine.
Here is the snapshot in the flow designer
here is the API response
could anyone share some ideas? and how could I retrieve the header info in the header after the call returned successfully?
- Labels:
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 09:54 AM
Hi
why do you use a MID server? Is it really necessary?
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 10:11 AM
the API host is a internal server. so I use MID server to access that

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 10:08 AM
Looks like you need to add the credential to the request as it is not automatically being used.
According to the Zerto documentation, you need to an Authorization header with value of 'Basic {credential}'
You can drag {credential} from the 'Credential Value' variable data pill from your REST step and it should work.
As an aside, I would always advocate using Connection and Credential Aliases rather than define inline connections, it means you don't need to change/release the Action each time you want to connect it to a different URL.
Hope this helps,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 10:19 AM