- Home
- Skills
- APIs & Backend
- HTTP Collection Converter
Works with the AI Agents you already use
HTTP Collection Converter
Convert API request collections between Postman, curl, HAR, and .http formats or generate client code.
$1
HTTP Collection Converter
Example session with this skill installed
Convert this curl command to a Python requests script: curl -X POST https://api.acme.com/v2/webhooks -H "Authorization: Bearer secret_123" -H "Content-Type: application/json" -d '{"id": "evt_1"}'
- Read your context and instructions
- Compiled the http collection converter
I have converted the curl command into a Python requests script. The authorization token has been replaced with a variable placeholder for security.
Python Requests Implementation
import requests
url = "https://api.acme.com/v2/webhooks"
headers = {
"Authorization": "Bearer {{token}}",
"Content-Type": "application/json"
}
payload = {
"id": "evt_1"
}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
print("Success:", response.json())
else:
print(f"Error {response.status_code}: {response.text}")
Next steps
- Replace
{{token}}with your actual API key or environment variable. - Install the dependency using
pip install requestsif not already present. - Wrap the logic in a function to handle different payload IDs.
Connects securely to your tools. The creator never sees your data.
About this skill
API testing workflows often break when moving between tools. Manually recreating Postman collections as version-controlled .http files or code snippets is tedious and error-prone. This skill automates the translation of API request definitions across different formats and languages.
What it does
- Multi-format translation converts between Postman v2.1, Insomnia v4, curl, HAR, and
.httpfiles. - Environment generation extracts variables into
http-client.env.jsonfiles for VS Code and JetBrains. - Code generation outputs executable snippets in Python, JavaScript, and httpie.
- Data preservation maintains folder structures, auth headers, and complex body types like raw JSON or form-data.
- Secret scrubbing automatically replaces sensitive headers with placeholders to prevent accidental credential leaks.
How it works
- Source detection analyzes your input, whether it is a file path, a raw curl command, or a HAR log.
- Format selection defines the target output using the
--toflag (e.g.,curl,python,http). - Targeted filtering uses the
--filterflag to isolate specific endpoints from large logs. - Output execution generates the final file or code block ready for version control or testing.
Frameworks & tools
The skill uses a Python-based conversion engine compatible with Postman Collection v2.1, Insomnia v4, VS Code REST Client, JetBrains HTTP Client, and standard HAR formats.
Why this beats prompting it yourself
Manual prompting often loses nested folder structures or mangles complex application/x-www-form-urlencoded bodies. This skill uses specific parsing logic to ensure variables and auth methods remain consistent across formats without hallucinations.
Use cases
- Migrating API collections from Postman to repo-resident
.httpfiles. - Converting cURL commands from documentation into reusable Python scripts.
- Extracting API traffic from a browser HAR file into a clean HTTP collection.
- Generating JavaScript fetch snippets for frontend implementation.
Known limitations
Requires Python 3 for the conversion scripts. Does not support Postman v1 collections or deprecated Insomnia versions.
Requires Python 3. Does not support Postman v1 or legacy Insomnia formats. Secret scrubbing is on by default and requires a flag to disable.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago
Requires
Permissions
Allowed Hosts