Describe your API request in a form and get the cURL command, quoted correctly for your terminal. Pick macOS or Linux, Windows cmd or PowerShell, add headers, a bearer token or basic auth, and a JSON, form or multipart body. Switch the output to fetch(), Axios or HTTPie for the same request. Nothing is sent; the page only writes the command.
Writing the code runs in your browser. What you type never leaves this device.
This page only writes the code. It never sends your request or sees your token.
GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS
Bearer token, basic auth or an API key header, written as the right header
JSON, URL-encoded form, multipart upload (-F file=@path) or raw text bodies
Quoting for bash and zsh, Windows cmd (curl.exe) and PowerShell
Query parameters encoded for you and merged into the URL
One click to see the same request as fetch(), Axios or HTTPie
Check that an endpoint, token and payload work from the terminal before you wire them into your app.
Paste one command into a ticket or Slack so a teammate sees exactly the request that failed.
Call a webhook or trigger a job from a cron script, CI step or a server without a browser.
Most docs show bash quoting. Switch to cmd or PowerShell and the quotes and line breaks are rewritten for you.
Windows 10 and 11 include curl.exe. In cmd, wrap values in double quotes and escape the quotes inside JSON as \". In PowerShell, call curl.exe rather than curl, because curl is an alias for Invoke-WebRequest in Windows PowerShell 5.1. The generator writes both forms, with ^ or a backtick at the end of each line.
A command with a real token in it is a working credential. Before you paste one into a ticket or chat, replace the token with a placeholder such as YOUR_API_TOKEN, or read it from an environment variable: -H "Authorization: Bearer $API_TOKEN".
fetch() Code Generator
JavaScript fetch code for any API request, with error handling
Axios Code Generator
Axios request code with params, headers, auth and body
HTTPie Command Generator
HTTPie commands with typed JSON fields, query params and auth
API Response Time Tester
Test API endpoint latency, headers, and status codes
Webhook Tester
Test and debug webhooks online
HTTP Headers Reference
What each common request and response header does, with examples
HTTP Client
Send API requests from the browser and copy them as code
cURL Converter
cURL to Python, fetch, Axios, Go, PHP or HTTPie
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
How to call your own API from an IVR flow: sync vs async HTTP requests, tokens like {{digits}} and {{var.order_id}}, success codes, retries, timeouts, HMAC signature verification and HTTP logs.
Outbound IVR API code examples in Node.js, Python, PHP and cURL: POST /v1/ivr/calls with a flow ID, phone number and variables. The Use via API panel builds the code for your flow, checks readiness and places a test call.
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.