About postman to curl converter
Convert the requests in a Postman collection (v2.1 JSON) into cURL commands that can be run in a terminal or script.
When this helps
- Sharing requests with people who do not use Postman.
- Running API checks in CI.
- Documenting examples.
Variables
Postman variables like {{baseUrl}} are not resolved. Replace them with real values or shell variables.
A worked example
A collection with a login request and a get-profile request becomes two curl commands, each with its method, URL, headers and body. Replace {{baseUrl}} and {{token}} with real values or with shell variables before running them.
Uses
- Sharing examples in documentation without exporting the whole collection.
- Running quick smoke tests from a script or a CI job.
- Reproducing a problem on a server that has no Postman.
Authentication
Collection-level auth, such as a bearer token set in Postman, may not appear in each exported request. Add the header yourself, using an environment variable for the token.
