How to fix it
- Navigate to
System Web Services > Outbound > REST Messageand open your REST Message record. - Click the Authentication tab and verify the authentication type matches what your target API expects (Basic, OAuth 2.0, etc.).
- If using Basic Auth, verify the
User nameandPasswordfields contain the correct credentials for the target system. - If using OAuth 2.0, check if the
Access tokenfield is populated and click Get OAuth Token to refresh if needed. - Navigate to
User Administration > Usersand search for the user account making inbound REST calls to your instance. - Open the user record and verify
Activeis checked,Locked outis unchecked, andPassword needs resetis unchecked. - Click the Roles tab and verify
rest_serviceappears in the roles list. If not, click Edit and add it. - For outbound calls, check the HTTP Headers tab on your REST Message and verify an
Authorizationheader exists if using manual Basic Auth. - Navigate to
System OAuth > Application Registryif using OAuth for inbound calls and verify the client ID, secret, and redirect URI match your client application. - Check
System Logs > System Log > Alland filter bySource contains RESTto see detailed authentication failure messages. - If the issue persists, navigate to
System Security > Security Rulesand 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.