Skip to content
Get startedDashboardSupport

Reports

The reports API lets you run SQL queries against a data lake with all of your PostGrid data. You can use this to run ad-hoc SQL queries or save them as reports. You can bulk export data from these reports to fit all of your reporting needs. A saved report can also carry a schedule, in which case PostGrid runs it for you on that cadence, producing an export each time and optionally emailing recipients you nominate. If your organization has sub-organizations, PostGrid can include their data in your data lake so that a single query spans your whole hierarchy — every table then carries an organization column identifying the organization each row belongs to. Contact support@postgrid.com to enable this. Note that the data this API provides may be up to 2 hours behind your current PostGrid environment. Your test and live data lakes are fully segregated, so you’ll need a live API key to run queries against your live data.

You can request access to this to this feature by reaching out to support@postgrid.com

Create Saved Report
print_mail.reports.create(ReportCreateParams**kwargs) -> Report
POST/print-mail/v1/reports
Run Ad-hoc Query
print_mail.reports.sample(ReportSampleParams**kwargs) -> ReportSample
POST/print-mail/v1/reports/samples
Update Report
print_mail.reports.update(strid, ReportUpdateParams**kwargs) -> Report
POST/print-mail/v1/reports/{id}
List Saved Reports
print_mail.reports.list(ReportListParams**kwargs) -> SyncSkipLimit[Report]
GET/print-mail/v1/reports
Retrieve Saved Report
print_mail.reports.retrieve(strid) -> Report
GET/print-mail/v1/reports/{id}
Delete Saved Report
print_mail.reports.delete(strid) -> DeletedResponse
DELETE/print-mail/v1/reports/{id}
Preview a Report Schedule
print_mail.reports.preview_schedule(ReportPreviewScheduleParams**kwargs) -> SchedulePreview
POST/print-mail/v1/reports/schedule_previews
ModelsExpand Collapse
One of the following:
One of the following:
One of the following:

The reports API lets you run SQL queries against a data lake with all of your PostGrid data. You can use this to run ad-hoc SQL queries or save them as reports. You can bulk export data from these reports to fit all of your reporting needs. A saved report can also carry a schedule, in which case PostGrid runs it for you on that cadence, producing an export each time and optionally emailing recipients you nominate. If your organization has sub-organizations, PostGrid can include their data in your data lake so that a single query spans your whole hierarchy — every table then carries an organization column identifying the organization each row belongs to. Contact support@postgrid.com to enable this. Note that the data this API provides may be up to 2 hours behind your current PostGrid environment. Your test and live data lakes are fully segregated, so you’ll need a live API key to run queries against your live data.

You can request access to this to this feature by reaching out to support@postgrid.com

Sample a Saved Report
print_mail.reports.samples.create(strid, SampleCreateParams**kwargs) -> ReportSample
POST/print-mail/v1/reports/{id}/samples
ModelsExpand Collapse

The reports API lets you run SQL queries against a data lake with all of your PostGrid data. You can use this to run ad-hoc SQL queries or save them as reports. You can bulk export data from these reports to fit all of your reporting needs. A saved report can also carry a schedule, in which case PostGrid runs it for you on that cadence, producing an export each time and optionally emailing recipients you nominate. If your organization has sub-organizations, PostGrid can include their data in your data lake so that a single query spans your whole hierarchy — every table then carries an organization column identifying the organization each row belongs to. Contact support@postgrid.com to enable this. Note that the data this API provides may be up to 2 hours behind your current PostGrid environment. Your test and live data lakes are fully segregated, so you’ll need a live API key to run queries against your live data.

You can request access to this to this feature by reaching out to support@postgrid.com

Create a Report Export
print_mail.reports.exports.create(strreport_id, ExportCreateParams**kwargs) -> ReportExport
POST/print-mail/v1/reports/{reportID}/exports
List Report Exports
print_mail.reports.exports.list(strreport_id, ExportListParams**kwargs) -> SyncSkipLimit[ReportExport]
GET/print-mail/v1/reports/{reportID}/exports
Get Report Export
print_mail.reports.exports.retrieve(strexport_id, ExportRetrieveParams**kwargs) -> ReportExport
GET/print-mail/v1/reports/{reportID}/exports/{exportID}
Delete Report Export
print_mail.reports.exports.delete(strexport_id, ExportDeleteParams**kwargs) -> DeletedResponse
DELETE/print-mail/v1/reports/{reportID}/exports/{exportID}
ModelsExpand Collapse