Skip to content

Postman To Curl API

POST https://api.findutils.com/api/tools/postman-to-curl/execute

Convert a Postman collection (v2.x JSON) into curl commands, one per request, and return them as a script plus a per-request list. Folders are walked recursively; a single request object is accepted too. Each command carries the method, resolved URL (raw or host/path/query), enabled headers, bearer or basic auth, and raw, urlencoded, or form-data bodies. Output uses short flags by default; long_form switches to --request, --header, --user, --data, --form.

Request body

application/json
  • collection

    string required

    Postman collection JSON text (export format v2.0 or v2.1), or a single request object.

  • include_headers

    boolean optional

    Emit -H for each enabled header. Default: true. Default true.

  • long_form

    boolean optional

    Use long flags (--request, --header, --user, --data, --form). Default: false. Default false.

Example arguments

Verified
{
  "collection": {
    "item": [
      {
        "name": "Get Users",
        "request": {
          "method": "GET",
          "url": {
            "raw": "https://api.example.com/users"
          },
          "header": [
            {
              "key": "Accept",
              "value": "application/json"
            }
          ]
        }
      }
    ]
  }
}