cancel
Showing results for 
Search instead for 
Did you mean: 

unable to create a POST call using HTTP action

JishnuP_Nair
Level 3

Hi All,

I need some help. I am trying to do a HTTP POST call which is working fine in postman.
As per postman these are the attributes.
Authorization:
Basic Auth with client id and secret.

Body :
content type : application/x-www-form-urlencoded
Key :grant_Type 
Value : client credentials

Could you please help me setup the same in HTTP in blueprism 



------------------------------
Jishnu P Nair
Developer
Ey
Asia/Kolkata
------------------------------

17 REPLIES 17

ewilson
Staff
Staff

Hello @JishnuP_Nair 

Is there any content in the body of the request, or is this simply an authorization request?

Cheers,



------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

27603.png

27604.png



------------------------------
Jishnu P Nair
Developer
Ey
Asia/Kolkata
------------------------------

Hi Eric
please find the postman screenshots



------------------------------
Jishnu P Nair
Developer
Ey
Asia/Kolkata
------------------------------

@JishnuP_Nair 

NOTE: Make sure you've downloaded the latest Utility - HTTP VBO from the Digital Exchange.

Here's the basic layout.

27605.png
27606.png
27607.png
Cheers,



------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi ERIC

{"error":"invalid_request"}

this is the response i am getting

thanks,
jishnu



------------------------------
Jishnu P Nair
Developer
Ey
Asia/Kolkata
------------------------------

@JishnuP_Nair 

Oops! My mistake. You don't need the headers collection. You'll actually add "grant_type=client_credentials" to the Body parameter of the request. Is this an internal API that you're working with or a something from a public web service? Might make troubleshooting it a bit easier if I can review the developer documentation for the service, if it's public.

Cheers,



------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Eric,

this is an internal API. I am not at liberty to share the details.
27620.pngthis is ok?



------------------------------
Jishnu P Nair
Developer
Ey
Asia/Kolkata
------------------------------

@JishnuP_Nair 

The best way to determine if you have the correct body setup is to run the request in Postman and then look at the request/response in Postman Console. You can access the Console along the bottom left of the Postman UI:

27624.png
This will open another display that initially shows a single line for each request. You can then expand that line and see the contents of the request including the headers and body.

27625.png
Cheers, 



------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi Eric,
I am using the latest HTTP VBO.
27632.pngThis is the request console details. But even here also i am getting error code 400



------------------------------
Jishnu P Nair
Developer
Ey
Asia/Kolkata
------------------------------