curl and jq 8 · Authentication and headers

Send a bearer token

Authenticate with a token from an environment variable.

curl -H "Authorization: Bearer $TOKEN" https://api.example.com/me

Official curl and jq 8 documentation

More authentication and headers commands

All authentication and headers commands · curl and jq 8 cheatsheet

Was this page helpful?