Update run.sh to use new API specification