Replay API Calls in Postman

Moesif supports selecting and exporting API Calls as a Postman Collection for easy replay. This enables a few different functionalities, including:

  • exporting API calls for debugging any problematic API calls or even sequences of API calls
  • Creating robust test suites in Postman from your actual API data in Moesif

Replaying API calls in Postman requires two simple steps, one to export the data from Moesif and one to import from. This functionality doesn’t even require a Postman account.

Exporting the calls in Moesif

Navigate to the Live Event Log screen.

Moesif Live Event Log screen

Select the calls that you want to export into the Postman Collection. Simply select the checkboxes beside the calls you want to export and click Run in Postman to export them.

Select Request for Export

Exporting the calls into a Postman collection will include everything you need to recreate an API call. This will include the body, headers, params, etc.

Once you click the Run in Postman button, a modal will appear to allow you to download the collection. Click Download Postman Collection to download the collection file to your local machine.

Download Postman Collection button

The Postman Collection will be downloaded and ready to load into Postman.

Loading the collection into Postman

In Postman, click the Collections tab on the right side of screen and then click Import.

Import into Postman

A modal will appear where you can either pick the Postman Collection file from a file picker or drag-and-drop the file onto the modal to import it. Once the file is selected, you’ll see the contents in the modal.

Import modal for Postman Collection

Click Import to actually bring the collection into Postman. You should now see the collection displayed in the Collections pane in Postman.

Collection added to Collection List

Replaying the requests and debugging

With the collection now available in Postman, select one of the requests to replay.

Select request to play from Postman Collection

Every detail of the request will be populated including the params, headers, and body. From here, you can click the blue Send button beside the URL to send an exact copy of the web API request to your endpoint.

Updated: