Failed to verify Keycloak Token

I am trying to call keycloak client with access_token, so that it wont redirect to login page for accessing the client. But Keycloak redirects to login page and shows below error in keycloak logs

[] (default task-8) Failed to verify identity token: Token type is incorrect. Expected ‘Serialized-ID’ but was ‘Bearer’

Thanks in advance for any suggestions.