parse endpoint