# Postman To Curl — REST API endpoint `postman-to-curl`

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.

- Category: network
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/postman-to-curl/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/postman-to-curl/
- Same tool on the other surface: https://findutils.com/mcp/postman-to-curl/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/postman-to-curl/execute \
  -H "Content-Type: application/json" \
  -d '{
    "collection": "{\"item\":[{\"name\":\"Get Users\",\"request\":{\"method\":\"GET\",\"url\":{\"raw\":\"https://api.example.com/users\"},\"header\":[{\"key\":\"Accept\",\"value\":\"application/json\"}]}}]}"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/postman-to-curl
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `collection` | string | yes | Postman collection JSON text (export format v2.0 or v2.1), or a single request object. |
| `include_headers` | boolean | no | Emit -H for each enabled header. Default: true. Default: `true`. |
| `long_form` | boolean | no | Use long flags (--request, --header, --user, --data, --form). Default: false. Default: `false`. |

Example arguments (verified):

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

Decoded `collection` argument (readability only — send it as a string):

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

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:postman_to_curl`. Full MCP reference: https://findutils.com/mcp/postman-to-curl/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
