With the “exportAs” input parameter set to “pdf”, the response payload will also provide an “exportUrl” parameter in addition to the gammaUrl parameter. You can use that exportUrl to then download the pdf version. Would that work for your use case?