Skip to content
Get started

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. 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 [email protected]

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}
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. 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 [email protected]

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. 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 [email protected]

Create a Report Export
print_mail.reports.exports.create(strreport_id, ExportCreateParams**kwargs) -> ReportExport
POST/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