I am trying to use this API using custom action in a button. It should create a wizard when activated.
I tried every possible solution to receive a successful test result but I keep getting an error 401.
I’m not sure if I did it correctly. But test was successful.
In the Docs my eyes went here and
Note that the rest of the documentation and guides will simply includeemail-address and api-keyfor the examples. You must include your authentication header for all requests.
Most clients will implement basic authentication for you, however if you need to implement it yourself, you need to base64 encode your email address and password or API key seperated by a colon. For example, if your email address is firstname.lastname@example.org and your API key is myhorseisamazing, then you would base64 encode email@example.com:myhorseisamazing, which would result in a2VhbnUucmVldmVzQGVzY3Jvdy5jb206bXlob3JzZWlzYW1hemluZw==. Using this value, you would then pass the Authorizationheader with the value: Basic a2VhbnUucmVldmVzQGVzY3Jvdy5jb206bXlob3JzZWlzYW1hemluZw==
And under the docs the 401 error code :
Then I searched about that in the forum and I found this post that Colin posted.
And I clicked that link and then I gave the email and the password there that I gave on Escrow and it gave me Authorization: Basic and a ID. Then I copied the Basic with the ID and I created a Header first and added Authorization and added the Basic and ID to the value. Then I added a query and I put -u for name and to the value I entered the email address that gave to escrow and entered the API key that created in escrow and added a space between com and API key starting word/number .
Then I created the 2nd query and added Content-Type as name and application/json as the value. Then I pasted the JSON in the Body section and created the inputs and renamed the JSON body with that inputs. And finally I got Test Successful.
You have got the value for the header from here right?
And you have put your escrow email and password right? Because when I tested with a fake one it didn’t worked and received the 401 error. I think you have to put the email and password that you used for login to escrow. And If I’m correct you need to use this value as for your every escrow API integration.
Yeah the problem is he is using a Sandbox email. So the Base URL has to be changed like this ( Image added )
For me the test was successful first because I didn’t use a sandbox email. And after I tried with a sandbox email I got the same error ( 401 ) and after reading the Docs it says if you are using a sandbox email the Base URL has to be like this. ( Image added ). And tried changing the Base URL and the test was successful!