API not found when accessing from localhost

I can only assume your reverse proxy is translating the api urls. Normally an api call starts with something like /service/rest/v1.