The API cannot do it.
I think it unlikely that it ever would be a feature: the data flow would require the device file(s) to first be uploaded to Dashboard to then be delivered via the API endpoint. Aside from the temporary data storage needed, there's potential for accidental/deliberate misuse, GDPR etc., if I were Meraki I'd never add such a feature.
Having the script upload direct to somewhere as suggested by @PhilipDAth is how I'd do it.