It would be useful to use the API to generate a report from a template.
The API action could be similar to this:
The filter to use for the report (a quick filter or maybe a custom filter expression)
The report template to use
The url to the report document (PDF)