Use HTTPie as a user-friendly HTTP client to test APIs from the command line.

Install for any os

apt install httpie

Make a request

http -v https://example.com/api/users 'Authorization:bearer abc123'