Yo, 401 errors are the worst! For the curl authorization header, make sure your token is valid and not expired. Sometimes APIs are picky about trailing slashes or extra spaces.
If you’re using Basic Auth, `-u` is the quickest way, but you can also manually encode the credentials and use the header like:
```bash
curl -H "Authorization: Basic $(echo -n 'username:password' | base64)" https://api.example.com
```
Give it a shot and let us know!
If you’re using Basic Auth, `-u` is the quickest way, but you can also manually encode the credentials and use the header like:
```bash
curl -H "Authorization: Basic $(echo -n 'username:password' | base64)" https://api.example.com
```
Give it a shot and let us know!
