How to fix it

  1. Navigate to System Web Services > Outbound > REST Message and open your REST Message record.
  2. Click the Authentication tab and verify the authentication type matches what your target API expects (Basic, OAuth 2.0, etc.).
  3. If using Basic Auth, verify the User name and Password fields contain the correct credentials for the target system.
  4. If using OAuth 2.0, check if the Access token field is populated and click Get OAuth Token to refresh if needed.
  5. Navigate to User Administration > Users and search for the user account making inbound REST calls to your instance.
  6. Open the user record and verify Active is checked, Locked out is unchecked, and Password needs reset is unchecked.
  7. Click the Roles tab and verify rest_service appears in the roles list. If not, click Edit and add it.
  8. For outbound calls, check the HTTP Headers tab on your REST Message and verify an Authorization header exists if using manual Basic Auth.
  9. Navigate to System OAuth > Application Registry if using OAuth for inbound calls and verify the client ID, secret, and redirect URI match your client application.
  10. Check System Logs > System Log > All and filter by Source contains REST to see detailed authentication failure messages.
  11. If the issue persists, navigate to System Security > Security Rules and check for IP address restrictions that might block your client.
💡

Test your REST Message immediately after making changes by clicking 'Test' link next to the HTTP Method. This will show you the exact response and help confirm authentication is working.