Passing parameters to the API