Your curl command for Curl POST give input from file is close! Just add the header for JSON:
```
curl -X POST -H "Content-Type: application/json" -d @data.json http://example.com/api
```
If you’re still having trouble, try using [HTTPie](https://httpie.io/)—it’s like curl but simpler for API requests.
```
curl -X POST -H "Content-Type: application/json" -d @data.json http://example.com/api
```
If you’re still having trouble, try using [HTTPie](https://httpie.io/)—it’s like curl but simpler for API requests.
