How to download the Process Packages from orchestrator using API

I want to automate it. can you suggest me how can i do it?