How can I view the post output of an API using curl API? or What’s the best way to check the post out

18 Replies, 934 Views

Pro tip: Use `jq` to pretty-print JSON responses. Like this:

```
curl -X POST https://example.com/api -d '{"key":"value"}' | jq
```

Makes the post output of an api using curl api way easier to read. If you don’t have `jq`, install it—it’s a game-changer.

Messages In This Thread



Users browsing this thread: 1 Guest(s)