The API request doesn't work

Dear All,

I am trying to call an api using http request activity but I am getting an error from it :frowning:

The API request code

The http request activity

The error

Please help me out !
Thank you so much :slight_smile:

Hello @Rusira_Liyanage
Kindl;y check your api parameter. I think you are passing body content in the API parameter.
Kindly use properties, of Body option to send body content in api
image
For more refer to this thread

Is this working in postman? I think you can get rid of the body from the parameters, but don’t think that is the issue. You have a Body property outside of this wizard.

Also you can try to get rid of the apikey parameter and use the authentication below instead of None to “Oauth2” and put the api key there.

Hello Rusira, :smiley:

Please, go to your activity properties and on “Headers” (at “Options” session) include your apikey. Ok? This way I believe it will work!

Note: Don’t forget to delete your parameter apikey.

I attached my .xaml file for you! It’s working!

APILayer.xaml (6.4 KB)

Hello Brunabruna :slight_smile:

It worked !!

Thank you so much for your kind support :slight_smile:
You are the best !!

1 Like

Hi @Gokul_Jayakumar,

Thank you so much for your kind support !! :slight_smile:

This will be helpful for me in the future

Hi @bnastase,

Thank you so much for your kind support !! :slight_smile:

This will be helpful for me in the future.

Thank you very much, Rusira! :star_struck:
Don’t forget to mark my answer as a solution. :pray:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.