Hi Team, I am getting an error while http request and status code resulting in 401

HTTP/1.1 401 Unauthorized
Date: Mon, 24 Mar 2025 05:57:37 GMT
Content-Length: 0
Connection: keep-alive
request-context: appId=cid-v1:354c7cb9-ae5a-4d16-84a7-f13242bbac6d
x-envoy-upstream-service-time: 1268
x-UiPath-targetservice-duration: 1268
RateLimit-Remaining: 9998
X-UiPath-Correlation-ID: 94c00e4f-00d1-4687-b0b8-b272d8f86738
RateLimit-Policy: 5000;w=300
RateLimit-Limit: 10000
WWW-Authenticate: Bearer realm=“UiPath
cf-cache-status: DYNAMIC
Server: cloudflare
CF-RAY: 9253ee9518965f83-EWR

@Krupa_Shah1,

Check your authentication method and credentials. A “401 Unauthorized” error indicates that your request to access a resource failed because you haven’t provided valid authentication credentials or your session has expired

Hi,

How can we get bearer token with api?

Regards,

Krupa

@Krupa_Shah1,

Check the API documentation you are using. Details will available in there.

@Krupa_Shah1 Welcome to community!!

go throw below video, you may get solution,

Happy Automation!!