yo, had the same issue last week!
You def need headers for JSON. Try this:
```curl -X POST https://example.com/api -H "Content-Type: application/json" -d '{"key":"value"}'```
If it fails, maybe the server expects form data? Swap `-d` for `-F` and remove the JSON header.
Also, `curl --verbose` helps debug errors.
You def need headers for JSON. Try this:
```curl -X POST https://example.com/api -H "Content-Type: application/json" -d '{"key":"value"}'```
If it fails, maybe the server expects form data? Swap `-d` for `-F` and remove the JSON header.
Also, `curl --verbose` helps debug errors.
