export api in postman as curl code example
Example 1: postman export curl command
Click the Code button (it's right below Save).
Select curl from the drop-down menu.
Example 2: how to generate curl command from postman
Click the Code button on the right
And copy the curl command