Your command is almost perfect for Curl POST give input from file! Just add the JSON header:
```
curl -X POST -H "Content-Type: application/json" -d @data.json http://example.com/api
```
If you’re new to curl, I’d recommend using [Insomnia](https://insomnia.rest/)—it’s a bit more user-friendly for API testing.
```
curl -X POST -H "Content-Type: application/json" -d @data.json http://example.com/api
```
If you’re new to curl, I’d recommend using [Insomnia](https://insomnia.rest/)—it’s a bit more user-friendly for API testing.
