You might be missing quotes or escaping issues in your JSON. Try this:
```
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-d @data.json
```
Put your JSON in a file (`data.json`) to avoid shell messing with the syntax.
Also, 400 could mean the server expects a different format. Check the API docs—some want form-data, not JSON.
```
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-d @data.json
```
Put your JSON in a file (`data.json`) to avoid shell messing with the syntax.
Also, 400 could mean the server expects a different format. Check the API docs—some want form-data, not JSON.
