401 for all endpoints

Hi there,

I’m trying to configure the API for an OpenEMR server.
I am able to receive aBearer token using Password Grant end point. But when I try for example “/apis/default/api/patient” using the returned token, it returns 401 with empty body.
The Bearer token is used in Postman in Authorization section.

Any idea why this is not working. (none of the “/apis/default/api” endpoints work)

What do your server logs tell you? Have you enabled the debug logs under Globals -> Logging -> System Error Logging Options?

1 Like