Not able to send Token to API

Ready to post? :mag: First, try searching for your answer.
Hi

i was able to Access Token using curl POST
Sending the token to the API but below error How to achieve

curl --request GET --url 'http://api.xxxx.xxx.xx' --header 'authorization: Bearer eyJhbGcixxxxxxxxo9S1w' --header 'content-type: application/json'
{"statusCode":404,"message":"Cannot GET /"} 
 curl --request GET --url 'https://api.xxx.xxxx.xxx/api/v1/api-catalog/apps/all' --header 'authorization: Bearer eyJhbGciOiJ QOa9S1w' --header 'content-type: application/json'
{"statusCode":401,"message":"Unauthorized"}