Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

API is not working in POSTMAN

Devansh1
Tera Contributor

Hi all, 

we are trying to hi the api for our third-party website we have created record in Application Registry and a integration user with required roles, now the problem is when we are hitting tha api it is generating an error. 

(attached SS).

And the main thing is when we are trying to do with our another instance it is working fine. 

we have almost tried everything, what could be problem ......

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Devansh1 

so are you consuming OAuth endpoint?

since you are trying from postman and it worked for 1 instance and not for other, did you compare the roles etc?

Also check ACL on OAuth profile table and oauth_credential table

Non-admin users cannot retrieve OAuth token from OAuth Credentials table to make outbound REST call 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

We are sending this api with the method of 'POST' . it is working fine for the others instance only getting error in our instance. 

 so we have made the user and application registry in both the instances and tested for which we want to hit the api. 

Could be problem from SN side??

@Devansh1 

I already informed what you need to check in above comment.

please check that.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader