use endpoint param