api to retrieve params for id