For debugging, I’d recommend Postman or Insomnia—way easier to test APIs visually. But if you’re stuck with curl, here’s what works for me:
```
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-d '{"key":"value"}' \
-v
```
The `-v` flag is a lifesaver for seeing the full post output of an api using curl api, including errors.
```
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-d '{"key":"value"}' \
-v
```
The `-v` flag is a lifesaver for seeing the full post output of an api using curl api, including errors.
