skip to content
Alvin Lucillo

Querying mock server logs

/ 1 min read

If you are using Postman’s mock server, you may realize that searching their logs to verify your test becomes hard. To help with this, you can use Postman API collection. Look for /mocks/:mockId/call-logs.

Important notes:

  1. Use sort value servedAt and direction value desc in query params to sort by that key and sorting order
  2. Use include value request.body in query params to include the request body in the result (it’s not included by default)
  3. Replace :mockId in the path params with your mock server id, which you can found from the mock server url (e.g., https://[mock-server-id-here].mock.pstmn.io)