Getting error while entering token accessing rest apis

**When I am accessing rest apis and generated toke successfuly and sending bearer token then i am getting this error

Url:** https://localhost/openemr/apis/default/fhir/Patient

Error: {
“error”: “An error occurred”,
“message”: “Unauthorized”,
“code”: 0
}