Sai Krishna6147
Mega Guru

Hi @VishaalRanS 

When utilizing ServiceNow Rest APIs, you should adhere to the following best practices:

  1. Always make sure your rest api user has required access to the table and data. I would also suggest to give only " Web Service access only " to restrict the user's access to api access only.
  2. Instead of Basic auth, try using the OAuth as its more secure than Basic Auth.
  3. Always log the API failures so that you can check the issues in details when required.
  4. In Rest API's, the best way to practice is Http method.

Please mark this solution as "Helpful" and "accepted solution" if this solution helped you in any way.

Regards, 

Sai Krishna

 

View solution in original post