Hello @Kothai Ramanathan and thank you for your question. Pipeline parameters are meant only for use as inputs to pipelines. Once a pipeline is running, pipeline parameters are read-only. This makes them unsuitable for returning values.
Do not worry, it is still possible to retrieve values. You were very very close. While parameters are read-only, variables are writable.
Instead, I suggest adding a SetVariable activity to your pipeline, where you set the value you want to retrieve. Then you can use the rest API to query activityRuns for that pipelineRun. Then you can retrieve the value from the set variable activity.
As example, I created a trivially simple pipeline with 1 parameter and 1 variable, and 1 set variable activity assignign the parameter to the value.
Then in Postman, I did a post call to
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns?api-version=2018-06-01
Please let me know if this helps or if you have more questions.
Thank you
Martin