Hey! For the curl authorization header, your syntax is correct. Just make sure the token is valid and not expired. APIs can be super picky about that.
For Basic Auth, `-u` is the easiest, but if you wanna use headers, you’ll need to encode the credentials. Here’s how:
```bash
curl -H "Authorization: Basic $(echo -n 'username:password' | base64)" https://api.example.com
```
Also, check out https://httpie.io/ for a more user-friendly way to test API requests.
For Basic Auth, `-u` is the easiest, but if you wanna use headers, you’ll need to encode the credentials. Here’s how:
```bash
curl -H "Authorization: Basic $(echo -n 'username:password' | base64)" https://api.example.com
```
Also, check out https://httpie.io/ for a more user-friendly way to test API requests.
