A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"info":{"name":"API"},"item":[{"name":"Get Users","request":{"method":"GET","url":{"raw":"https://api.example.com/users"},"header":[{"key":"Authorization","value":"Bearer token123"}]}},{"name":"Create User","request":{"method":"POST","url":{"raw":"https://api.example.com/users"},"header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\"name\":\"John\"}"}}}]}# Get Users
curl -X GET 'https://api.example.com/users' \
-H 'Authorization: Bearer token123'
# Create User
curl -X POST 'https://api.example.com/users' \
-H 'Content-Type: application/json' \
-d '{"name":"John"}'
Convert a Postman v2.1 or Insomnia collection into cURL, HTTPie or fetch(). Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.