About curl / api request builder
cURL is a command-line tool for sending HTTP requests. The builder turns method, URL, headers and body into the matching command.
Common flags
- -X sets the method, -H adds a header and -d sends a body.
- -i shows response headers, and -v shows the whole exchange.
- -L follows redirects.
Quoting
Wrap JSON in single quotes on Linux and macOS. On Windows Command Prompt, use double quotes and escape the inner ones.
A worked example
To create a user, choose POST, enter the URL, add the header Content-Type: application/json and the body {"name":"Asha"}. The tool writes the matching curl command, which you can paste into a terminal or share with a colleague for debugging.
Useful flags
- -i includes response headers, -v shows the full exchange.
- -L follows redirects, -k skips certificate checks (only for testing).
- --max-time sets a timeout so a command cannot hang.
