In the developer console, I am only able to view the logs of an API call that I made from within the developer console (tests) or from workbench. But when I make a call from Postman, I do not see any logs to view. How can I view logs of API calls that are made from external resources like Postman?

  • You will need to turn on the debug log for the User which is invoking the call. E.g., if you used say User A's credentials to get the access token, just enable the Debug Logs for that User in Salesforce, and you will be able to view the logs. – Jayant Das Feb 4 '19 at 19:28
  • The user I have does have Debug Logs turned on. – BlondeSwan Feb 4 '19 at 19:31
  • Are you verifying the logs under Setup --> Debug Logs and don't see any? I don't see a reason why if the debug logs are turned on for a User does not show up in the Debug Logs. – Jayant Das Feb 4 '19 at 19:33
  • my user is in the User Trace Flags section, but there isn't a single instance under Debug Logs – BlondeSwan Feb 4 '19 at 19:35
  • @BlondeSwan are you invoking the API with a guest user, by chance? – krigi Feb 4 '19 at 20:50

In the Developer Console, uncheck Debug > Show My Current Logs Only. Any API calls that generate logs from this point on should appear in the Developer Console.

Alternatively, you can set Trace Flags in Setup > Monitoring > Debug Logs, and view the logs generated there.

Note that not all actions generate logs, such as running a query or describing an object. You need to actually perform some sort of DML or execute a class.

  • Unchecking Show My Current Logs doesn't change anything, and when I attempt to reload, it just gets checked again and marks all my read logs as unread.... As for the Debug Logs, there are none appearing. I'm attempting to go System.debug(requestBody) to print out the body of the request made, but I can't access the log for externally made calls... – BlondeSwan Feb 4 '19 at 19:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.