Having trouble with curl sending JSON? Need help troubleshooting!

18 Replies, 1856 Views

Thanks, everyone! I tried a bunch of your suggestions, and it turns out the API was expecting an additional header for authentication. I added `-H "Authorization: Bearer <token>"` and it worked!

Also, using `-v` was super helpful for debugging. I’ll definitely check out JSONLint and Postman for future issues.

One last question: Does anyone know if there’s a way to pretty-print the JSON response from curl? It’s a bit hard to read as-is. Thanks again!

Messages In This Thread



Users browsing this thread: 1 Guest(s)