Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Received 401 - Unauthorized even with Refresh Token Available

Charles Fredie
Tera Contributor

Hi,

I have an integration setup where I am sending a JSON payload to another ServiceNow instance. I am using Flow Designer in which I am using a Custom Action in which I am using REST Step and within that I am passing the connection record, within the OAuth credential record I can see the token expiry is in august 2026 but today the integration failed with 401 error code,

Can anyone help me out on the reason why this happened?
Thanks

1 REPLY 1

Tanushree Maiti
Kilo Patron

Hi @Charles Fredie ,

 

401  is authentication error. Before asking  3rd party team (where integration request is going) to provide

correct Client id /Secret Or credential , just try this once , if you have not done.

 

  • Token URL: End point provided by 3rd party
  • Client ID/Secret: Use Client ID/Secret  provided by 3rd party
  • Grant Type: Select Client Credentials for server-to-server communication.

Share the screen shot as well.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: