Getting status code 401 and [ { "message": "Session expired or invalid", "errorCode": "INVALID_SESSION_ID" } ] while http post request


Hi All,
I’m a newbie to UI Path. I want to send a JSON body using the POST method of Request activity.
I have added a bearer token to the post request.
getting this error.
[
{
“message”: “Session expired or invalid”,
“errorCode”: “INVALID_SESSION_ID”
}
]

please kindly help me with your solution @Vishal_Kalra
Thanks in Advance.

HI @Pratiksha_Mahajan is there any authorization token?

hi @Tapan_Behera1 , yes there is an authorization token that is being fetched successfully and is being passed to the Headers section of the Http Request

Okay then kindly verify that if something is missing there I think.