Use cURL to authenticate with JWT Bearer tokens
Example to pass the Bearer token in the Authorization header: curl -H ‘Accept: application/json’ -H "Authorization: Bearer ${TOKEN}" https://api.website.com/v1/userscurl -H ‘Accept: application/json’ -H "Authorization: Bearer ${TOKEN}" https://api.website.com/v1/users If you need to get the Bearer token use this: curl -s -X POST -H ‘Accept: application/json’ -H ‘Content-Type: application/json’ –data ‘{"username":"{username}","password":"{password}"}’ https://api.website.com/v1/authcurl -s -X POST -H ‘Accept: […]