API Reference
Libraries
API Overview
Address Verification
Standard Address Verification API.
Provides endpoints to verify and standardize addresses across US and Canada, supporting both structured and freeform inputs.
Note that this uses a different set of lookups than our international API.
Verify
Get Lookup Info
Get Autocomplete Previews
Autocomplete
Batch Verification
Suggest Addresses
Parse An Address
Lookup City Or State From Postal Or Zip Code
Lookup Zip Code From City Or State
Intl Address Verification
International Address Verification API.
Provides endpoints to verify and standardize international addresses, supporting both structured and freeform inputs.
Verify
Batch Verification
Get Autocomplete Previews
Get Autocomplete Advanced Previews
Autocomplete
Print Mail
Print MailContacts
Create Contact
List Contacts
Get Contact
Delete Contact
Print MailTemplates
Create Template
List Templates
Get Template
Update Template
Delete Template
Print MailTrackers
Create and manage Trackers.
Trackers can be used to track interactions in your orders through personalized URLs and QR codes.
As a brief introduction to using Trackers in your orders, a QR code can be generated by using the Tracker’s ID as a merge variable in your orders HTML and Templates. The following example HTML uses Trackers to generate personalized URLs (PURLs) in your orders.
See the following guide for more details: https://postgrid.readme.io/reference/trackers-1
Create Tracker
List Trackers
Update Tracker
Get Tracker
Delete Tracker
List Tracker Visits
Print MailLetters
Create Letter
List Letters
Get Letter
Cancel Letter
Get Letter Preview
Cancel Letter With Note
Progress Status
Print MailPostcards
Create Postcard
List Postcards
Get Postcard
Cancel Postcard
Get Postcard Preview
Cancel Postcard With Note
Progress Status
Print MailBank Accounts
Create Bank Account
List Bank Accounts
Get Bank Account
Delete Bank Account
Print MailCheques
Create Cheque
List Cheques
Get Cheque
Cancel Cheque
Get Cheque Preview
Retrieve Cheque Deposit-Ready PDF (Digital Only)
Cancel Cheque With Note
Progress Status
Print MailSelf Mailers
Create Self Mailer
List Self Mailers
Get Self Mailer
Cancel Self Mailer
Get Self Mailer Preview
Progress Status
Print MailCampaigns
The campaigns API enables you to send out large volumes of fully personalized mail to a mailing list.
Create Campaign
List Campaigns
Get Campaign
Update Campaign
Delete Campaign
Send Campaign
Print MailMailing List Imports
The mailing list imports API enables you to import contact lists from files and validate them for use in campaigns.
Create Mailing List Import
List Mailing List Imports
Update Mailing List Import
Get Mailing List Import
Delete Mailing List Import
Print MailMailing Lists
The mailing lists API enables you to manage collections of contacts that can be used for bulk mail campaigns.
Create Mailing List
List Mailing Lists
Get Mailing List
Update Mailing List
Delete Mailing List
Submit a Mailing List Job
Print MailReports
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 support@postgrid.com
Create Saved Report
Run Ad-hoc Query
Update Report
List Saved Reports
Retrieve Saved Report
Delete Saved Report
Print MailReportsSamples
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 support@postgrid.com
Sample a Saved Report
Print MailReportsExports
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 support@postgrid.com
Create a Report Export
Get Report Export
Delete Report Export
Print MailSub Organizations
Sub-organizations enable you to create isolated PostGrid accounts (“sub-organizations”) under your PostGrid account (the “parent organization”). Each sub-organization has fully isolated resources and users, and can act independently.
This allows you to isolate different departments or even re-sell PostGrid entirely.
You can request access to this feature by reaching out to support@postgrid.com
Create a sub-organization.
List sub-organizations.
Get a sub-organization.
List users for a sub-organization.
Print MailBoxes
Create Box
List Boxes
Get Box
Cancel Box
Progress Status
Print MailSnap Packs
Snap packs are pressure-sealed mailers that resemble official documents and encourage higher open rates. They do not require envelopes and are opened by tearing along perforated edges. The sealed design keeps contents hidden until opened, making snap packs ideal for sensitive or important documents such as contracts, forms, or notices.
You can request access to this feature by reaching out to support@postgrid.com
Create Snap Pack
List Snap Packs
Capabilities
Get Snap Pack
Cancel
Progress Status
Print MailTargeted List Builds
Beta: the targeted list builds API is in beta and is subject to breaking changes. Endpoint shapes, status values, and filter fields may change without notice.
The targeted list builds API lets you programmatically build mailing lists of US consumers (B2C) or US companies (B2B) that match a set of demographic, geographic, and firmographic filters.
The lifecycle of a list build is:
- Create a list build by supplying either
usConsumersorusCompaniesfilters. A quote is generated asynchronously — poll the resource or wait for itsstatusto becomequote_ready. - Review the
quote(total count and price per contact) and maskedpreviewRecords. Adjust the filters with an update call if needed — this will regenerate the quote. - Confirm the build. This deducts the appropriate amount of list build
credits from your organization (in live mode) and begins constructing
the mailing list.
buildProgressPercentreflects progress from 0 to 100. - Once
statusiscompleted, the ID of the resulting mailing list is available in themailingListfield and can be used like any other mailing list in the PostGrid API.
Targeted list builds must be enabled on your organization before they can be used. Contact PostGrid support to request access.
Create Targeted List Build
List Targeted List Builds
Get Targeted List Build
Update Targeted List Build
Delete Targeted List Build
Confirm Targeted List Build
Print MailTargeted List BuildsFilters
Beta: the targeted list builds API is in beta and is subject to breaking changes. Endpoint shapes, status values, and filter fields may change without notice.
The targeted list builds API lets you programmatically build mailing lists of US consumers (B2C) or US companies (B2B) that match a set of demographic, geographic, and firmographic filters.
The lifecycle of a list build is:
- Create a list build by supplying either
usConsumersorusCompaniesfilters. A quote is generated asynchronously — poll the resource or wait for itsstatusto becomequote_ready. - Review the
quote(total count and price per contact) and maskedpreviewRecords. Adjust the filters with an update call if needed — this will regenerate the quote. - Confirm the build. This deducts the appropriate amount of list build
credits from your organization (in live mode) and begins constructing
the mailing list.
buildProgressPercentreflects progress from 0 to 100. - Once
statusiscompleted, the ID of the resulting mailing list is available in themailingListfield and can be used like any other mailing list in the PostGrid API.
Targeted list builds must be enabled on your organization before they can be used. Contact PostGrid support to request access.
Autocomplete Filter Values
Print MailTemplate Editor Sessions
You can use template editor sessions to bring the capabilities of our
template editor to your website. When you create a session, you provide the
template which you want to edit, and we return a session with a url that
you can iframe or redirect your customers to.
When users save their changes in the editor session, it will update the underlying template. Note that sessions are only valid for 24 hours, after which point they are automatically deleted for security reasons.
You can have multiple sessions active for the same template at the same time. In general, we recommend creating a new session every time you present our editor to your users.
Note: you can use the template editor to modify templates created using HTML, but saving a session from the editor will override the original HTML content.
Create Session
List Sessions
Delete Session
Print MailVirtual Mailboxes
Virtual mailboxes let you receive, scan, and forward your physical mail without needing a traditional physical mailbox. Each mailbox is fully digital, giving you a unique ID, status, and a set of capabilities such as forwarding mail to another address or viewing envelope scans. This allows you to manage physical correspondence entirely online.
You can request access to this feature by reaching out to support@postgrid.com
Create Virtual Mailbox
List Virtual Mailboxes
Retrieve Virtual Mailbox
Retrieve Physical Address
Print MailVirtual MailboxesItems
Virtual mailboxes let you receive, scan, and forward your physical mail without needing a traditional physical mailbox. Each mailbox is fully digital, giving you a unique ID, status, and a set of capabilities such as forwarding mail to another address or viewing envelope scans. This allows you to manage physical correspondence entirely online.
You can request access to this feature by reaching out to support@postgrid.com