In a Postman Flows action, the Request block gets input data from a scenario. That enables you to test the action locally. This topic explains how to create scenarios for Request blocks in actions whose HTTP request bodies need to be formatted as form-data
or x-www-form-urlencoded
data. For actions whose request bodies will only require plain JSON, skip this topic and follow the procedure here instead.
Deploy the action. Don’t add any new blocks yet. Deploying an action that doesn’t “do anything” is fine at this stage.
In the Deploy modal, click Open in HTTP request to open the HTTP request editor.
In the HTTP request editor, select the POST request method.
(Optional) Configure parameters, authorization, headers, scripts, and settings as desired.
Configure the request body in the Body tab. Choose one of the following two options, depending on whether your action will require its HTTP request body to be formatted as x-www-form-urlencoded
or form-data
:
Option one: Select x-www-form-urlencoded, then enter the keys and example values.
Option two: Select form-data, then enter the keys and example values for your form fields.
Form data values are of type
Text
by default, but you can alternatively selectFile
, add a file. If the file hasn’t been uploaded to the Postman cloud yet, clickUpload file to team to make it available to your teammates.
Save and send the request.
Assuming that the action responds with 200 OK
, click Home to open the Analytics tab.
In the Action column, click the name of the action you’re sending requests to, to open its details at right.
Under Run Logs, click Request to reveal details. In the Body section, click Copy to copy the request body.
Click Open action to return to your action.
Create or edit a scenario, and in the Body field, paste the request body that you copied while in the request editor.
Save and run the scenario.
Click the Body output of the Request block to open the block footer, and verify that the block emitted the correct request body, headers, and parameters.
Based on the correctly formed request body that’s available in the block footer, add blocks to your action to process the request body data as desired.
Last modified: 2025/10/11