← Learn
Safe
curl -s -H "Authorization: Bearer $API_TOKEN" https://example.com/api/status | jq .

cross-platform · bash · Advanced

Calls an authenticated API and pretty-prints the JSON response. The token comes from an environment variable rather than being typed inline, and the response is piped into a JSON formatter, not a shell.

Think you can spot these under time pressure?

Start Training

More Networking