Post the contents of a local file as the request body.
Section: Config Files and Scripting
Send request body from a file
bash
bash
curl -X POST -H 'Content-Type: application/json' --data @payload.json https://api.example.com/itemsExplanation
Prefix a filename with `@` for `--data` to read from file.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Config Files and Scripting