Here’s a foolproof curl post example:
```
curl -X POST https://example.com/api \
-H 'Content-Type: application/json' \
-d '{"field1":"value1", "field2":"value2"}'
```
Bonus: Use `jq` to prettify JSON responses like this:
```
curl ... | jq
```
If you’re stuck, paste your error—we’ll figure it out!
```
curl -X POST https://example.com/api \
-H 'Content-Type: application/json' \
-d '{"field1":"value1", "field2":"value2"}'
```
Bonus: Use `jq` to prettify JSON responses like this:
```
curl ... | jq
```
If you’re stuck, paste your error—we’ll figure it out!
