call get_access_endpoint correctly