Fix endpoint to correct one by checking accessToken