Here’s my go-to curl POST example for APIs:
```
curl -X POST \
https://example.com/api \
-H 'Content-Type: application/json' \
-d '{"name": "test"}'
```
Bonus: If the API uses HTTPS and you’re getting cert errors, add `-k` (but only for testing—don’t ship that!).
```
curl -X POST \
https://example.com/api \
-H 'Content-Type: application/json' \
-d '{"name": "test"}'
```
Bonus: If the API uses HTTPS and you’re getting cert errors, add `-k` (but only for testing—don’t ship that!).
