Sorry for my late reply.
Basically, the Python script I created correctly uploads the files using your API. However, when I click on “Generate download URL”, this is the address that comes out:
https://mywebsite/?wpdmdl=7053&masterkey
As you can see, the masterkey is missing.
Then I have to go into the download, click update, and magically the masterkey is generated, and it correctly generates the link:
https://mywebsite/?wpdmdl=7053&masterkey=fL1HPluIpPl-ym9zVcmGZhkRswTEcdstsShcujn00WeWdSvIeSyFpxvkcCfwfsJxdQfSiEUI85oGTAK5NjG3C-CfKsxYdSylELJiG5BgF18
I need the masterkey to be generated immediately when I upload the file via the API.