If you're stuck, try https://reqbin.com/ - it lets you test curl post a url commands live. Super handy.
Also, here’s a template:
```
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-H "Authorization: Bearer xxx" \
-d '{"field":"value"}'
```
If it still fails, maybe the API is down?
Also, here’s a template:
```
curl -X POST https://example.com/api \
-H "Content-Type: application/json" \
-H "Authorization: Bearer xxx" \
-d '{"field":"value"}'
```
If it still fails, maybe the API is down?
