Post in curl is tricky! Your example should work, but maybe the API needs more. Check if you’re missing:
- Auth headers (`-H "Authorization: Bearer token"`)
- User-Agent (`-H "User-Agent: MyApp"`)
Some APIs reject empty UAs. Also, `jq` (https://stedolan.github.io/jq/) helps parse JSON responses if the output is messy.
- Auth headers (`-H "Authorization: Bearer token"`)
- User-Agent (`-H "User-Agent: MyApp"`)
Some APIs reject empty UAs. Also, `jq` (https://stedolan.github.io/jq/) helps parse JSON responses if the output is messy.
