Targeted 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
ModelsExpand Collapse
class TargetedListBuildCreateResponse: …A targeted list build represents a request to build a new mailing list by
targeting US consumers or companies matching the provided filters. Once
created, a quote is generated asynchronously. After reviewing the quote
and preview records, you may confirm the build, which kicks off the
creation of the underlying mailing list.
A targeted list build represents a request to build a new mailing list by targeting US consumers or companies matching the provided filters. Once created, a quote is generated asynchronously. After reviewing the quote and preview records, you may confirm the build, which kicks off the creation of the underlying mailing list.
status: Literal["generating_quote", "quote_ready", "creating_list", 2 more]Status of a targeted list build.
Status of a targeted list build.
A percentage from 0 to 100 representing how much of the build has
completed. Only populated while status is creating_list.
The UTC time at which the build finished successfully. Only present
once status is completed.
The UTC time at which the build was confirmed, if any.
An optional string describing this resource. Will be visible in the API and the dashboard.
Maximum number of contacts to include in the built mailing list. If omitted, all matching contacts are included.
The ID of the mailing list that was built. Present once status is
completed.
preview_records: Optional[List[PreviewRecord]]A small number of masked sample records for the configured filters,
populated alongside quote.
A small number of masked sample records for the configured filters,
populated alongside quote.
quote: Optional[Quote]Details of the quote generated for a targeted list build.
Details of the quote generated for a targeted list build.
us_companies: Optional[UsCompanies]Filters used to target US companies (B2B) when building a list.
Filters used to target US companies (B2B) when building a list.
company_types: Optional[List[Literal["public", "private", "educational", 3 more]]]Filter by ownership structure of the company.
Filter by ownership structure of the company.
Inclusive [min, max] range for the number of employees at the
company. Values must be between 1 and 1,000,000.
Inclusive [min, max] range for the year the company was founded.
Values must be between 1600 and 2100.
Filter by six-digit NAICS industry codes.
us_consumers: Optional[UsConsumers]Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
education_levels: Optional[List[Literal["high_school", "college", "grad_school", "vocational_training"]]]Filter by highest level of education completed.
Filter by highest level of education completed.
Inclusive [min, max] home value range, in US dollars. Values must be
between 0 and 1,000,000.
Inclusive [min, max] annual household income range, in US dollars.
Values must be between 0 and 200,000.
Inclusive [min, max] number of children in the household. Values must
be between 0 and 8.
occupations: Optional[List[Literal["professional_technical", "administration_management", "sales_service", 23 more]]]Filter by occupation classification.
Filter by occupation classification.
class TargetedListBuildListResponse: …A targeted list build represents a request to build a new mailing list by
targeting US consumers or companies matching the provided filters. Once
created, a quote is generated asynchronously. After reviewing the quote
and preview records, you may confirm the build, which kicks off the
creation of the underlying mailing list.
A targeted list build represents a request to build a new mailing list by targeting US consumers or companies matching the provided filters. Once created, a quote is generated asynchronously. After reviewing the quote and preview records, you may confirm the build, which kicks off the creation of the underlying mailing list.
status: Literal["generating_quote", "quote_ready", "creating_list", 2 more]Status of a targeted list build.
Status of a targeted list build.
A percentage from 0 to 100 representing how much of the build has
completed. Only populated while status is creating_list.
The UTC time at which the build finished successfully. Only present
once status is completed.
The UTC time at which the build was confirmed, if any.
An optional string describing this resource. Will be visible in the API and the dashboard.
Maximum number of contacts to include in the built mailing list. If omitted, all matching contacts are included.
The ID of the mailing list that was built. Present once status is
completed.
preview_records: Optional[List[PreviewRecord]]A small number of masked sample records for the configured filters,
populated alongside quote.
A small number of masked sample records for the configured filters,
populated alongside quote.
quote: Optional[Quote]Details of the quote generated for a targeted list build.
Details of the quote generated for a targeted list build.
us_companies: Optional[UsCompanies]Filters used to target US companies (B2B) when building a list.
Filters used to target US companies (B2B) when building a list.
company_types: Optional[List[Literal["public", "private", "educational", 3 more]]]Filter by ownership structure of the company.
Filter by ownership structure of the company.
Inclusive [min, max] range for the number of employees at the
company. Values must be between 1 and 1,000,000.
Inclusive [min, max] range for the year the company was founded.
Values must be between 1600 and 2100.
Filter by six-digit NAICS industry codes.
us_consumers: Optional[UsConsumers]Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
education_levels: Optional[List[Literal["high_school", "college", "grad_school", "vocational_training"]]]Filter by highest level of education completed.
Filter by highest level of education completed.
Inclusive [min, max] home value range, in US dollars. Values must be
between 0 and 1,000,000.
Inclusive [min, max] annual household income range, in US dollars.
Values must be between 0 and 200,000.
Inclusive [min, max] number of children in the household. Values must
be between 0 and 8.
occupations: Optional[List[Literal["professional_technical", "administration_management", "sales_service", 23 more]]]Filter by occupation classification.
Filter by occupation classification.
class TargetedListBuildRetrieveResponse: …A targeted list build represents a request to build a new mailing list by
targeting US consumers or companies matching the provided filters. Once
created, a quote is generated asynchronously. After reviewing the quote
and preview records, you may confirm the build, which kicks off the
creation of the underlying mailing list.
A targeted list build represents a request to build a new mailing list by targeting US consumers or companies matching the provided filters. Once created, a quote is generated asynchronously. After reviewing the quote and preview records, you may confirm the build, which kicks off the creation of the underlying mailing list.
status: Literal["generating_quote", "quote_ready", "creating_list", 2 more]Status of a targeted list build.
Status of a targeted list build.
A percentage from 0 to 100 representing how much of the build has
completed. Only populated while status is creating_list.
The UTC time at which the build finished successfully. Only present
once status is completed.
The UTC time at which the build was confirmed, if any.
An optional string describing this resource. Will be visible in the API and the dashboard.
Maximum number of contacts to include in the built mailing list. If omitted, all matching contacts are included.
The ID of the mailing list that was built. Present once status is
completed.
preview_records: Optional[List[PreviewRecord]]A small number of masked sample records for the configured filters,
populated alongside quote.
A small number of masked sample records for the configured filters,
populated alongside quote.
quote: Optional[Quote]Details of the quote generated for a targeted list build.
Details of the quote generated for a targeted list build.
us_companies: Optional[UsCompanies]Filters used to target US companies (B2B) when building a list.
Filters used to target US companies (B2B) when building a list.
company_types: Optional[List[Literal["public", "private", "educational", 3 more]]]Filter by ownership structure of the company.
Filter by ownership structure of the company.
Inclusive [min, max] range for the number of employees at the
company. Values must be between 1 and 1,000,000.
Inclusive [min, max] range for the year the company was founded.
Values must be between 1600 and 2100.
Filter by six-digit NAICS industry codes.
us_consumers: Optional[UsConsumers]Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
education_levels: Optional[List[Literal["high_school", "college", "grad_school", "vocational_training"]]]Filter by highest level of education completed.
Filter by highest level of education completed.
Inclusive [min, max] home value range, in US dollars. Values must be
between 0 and 1,000,000.
Inclusive [min, max] annual household income range, in US dollars.
Values must be between 0 and 200,000.
Inclusive [min, max] number of children in the household. Values must
be between 0 and 8.
occupations: Optional[List[Literal["professional_technical", "administration_management", "sales_service", 23 more]]]Filter by occupation classification.
Filter by occupation classification.
class TargetedListBuildUpdateResponse: …A targeted list build represents a request to build a new mailing list by
targeting US consumers or companies matching the provided filters. Once
created, a quote is generated asynchronously. After reviewing the quote
and preview records, you may confirm the build, which kicks off the
creation of the underlying mailing list.
A targeted list build represents a request to build a new mailing list by targeting US consumers or companies matching the provided filters. Once created, a quote is generated asynchronously. After reviewing the quote and preview records, you may confirm the build, which kicks off the creation of the underlying mailing list.
status: Literal["generating_quote", "quote_ready", "creating_list", 2 more]Status of a targeted list build.
Status of a targeted list build.
A percentage from 0 to 100 representing how much of the build has
completed. Only populated while status is creating_list.
The UTC time at which the build finished successfully. Only present
once status is completed.
The UTC time at which the build was confirmed, if any.
An optional string describing this resource. Will be visible in the API and the dashboard.
Maximum number of contacts to include in the built mailing list. If omitted, all matching contacts are included.
The ID of the mailing list that was built. Present once status is
completed.
preview_records: Optional[List[PreviewRecord]]A small number of masked sample records for the configured filters,
populated alongside quote.
A small number of masked sample records for the configured filters,
populated alongside quote.
quote: Optional[Quote]Details of the quote generated for a targeted list build.
Details of the quote generated for a targeted list build.
us_companies: Optional[UsCompanies]Filters used to target US companies (B2B) when building a list.
Filters used to target US companies (B2B) when building a list.
company_types: Optional[List[Literal["public", "private", "educational", 3 more]]]Filter by ownership structure of the company.
Filter by ownership structure of the company.
Inclusive [min, max] range for the number of employees at the
company. Values must be between 1 and 1,000,000.
Inclusive [min, max] range for the year the company was founded.
Values must be between 1600 and 2100.
Filter by six-digit NAICS industry codes.
us_consumers: Optional[UsConsumers]Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
education_levels: Optional[List[Literal["high_school", "college", "grad_school", "vocational_training"]]]Filter by highest level of education completed.
Filter by highest level of education completed.
Inclusive [min, max] home value range, in US dollars. Values must be
between 0 and 1,000,000.
Inclusive [min, max] annual household income range, in US dollars.
Values must be between 0 and 200,000.
Inclusive [min, max] number of children in the household. Values must
be between 0 and 8.
occupations: Optional[List[Literal["professional_technical", "administration_management", "sales_service", 23 more]]]Filter by occupation classification.
Filter by occupation classification.
class TargetedListBuildConfirmResponse: …A targeted list build represents a request to build a new mailing list by
targeting US consumers or companies matching the provided filters. Once
created, a quote is generated asynchronously. After reviewing the quote
and preview records, you may confirm the build, which kicks off the
creation of the underlying mailing list.
A targeted list build represents a request to build a new mailing list by targeting US consumers or companies matching the provided filters. Once created, a quote is generated asynchronously. After reviewing the quote and preview records, you may confirm the build, which kicks off the creation of the underlying mailing list.
status: Literal["generating_quote", "quote_ready", "creating_list", 2 more]Status of a targeted list build.
Status of a targeted list build.
A percentage from 0 to 100 representing how much of the build has
completed. Only populated while status is creating_list.
The UTC time at which the build finished successfully. Only present
once status is completed.
The UTC time at which the build was confirmed, if any.
An optional string describing this resource. Will be visible in the API and the dashboard.
Maximum number of contacts to include in the built mailing list. If omitted, all matching contacts are included.
The ID of the mailing list that was built. Present once status is
completed.
preview_records: Optional[List[PreviewRecord]]A small number of masked sample records for the configured filters,
populated alongside quote.
A small number of masked sample records for the configured filters,
populated alongside quote.
quote: Optional[Quote]Details of the quote generated for a targeted list build.
Details of the quote generated for a targeted list build.
us_companies: Optional[UsCompanies]Filters used to target US companies (B2B) when building a list.
Filters used to target US companies (B2B) when building a list.
company_types: Optional[List[Literal["public", "private", "educational", 3 more]]]Filter by ownership structure of the company.
Filter by ownership structure of the company.
Inclusive [min, max] range for the number of employees at the
company. Values must be between 1 and 1,000,000.
Inclusive [min, max] range for the year the company was founded.
Values must be between 1600 and 2100.
Filter by six-digit NAICS industry codes.
us_consumers: Optional[UsConsumers]Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
Filters used to target US consumers (B2C) when building a list.
The geographic filters (zipCodesAround, cityStates, zipCodes) are
mutually exclusive — you may supply at most one of them.
education_levels: Optional[List[Literal["high_school", "college", "grad_school", "vocational_training"]]]Filter by highest level of education completed.
Filter by highest level of education completed.
Inclusive [min, max] home value range, in US dollars. Values must be
between 0 and 1,000,000.
Inclusive [min, max] annual household income range, in US dollars.
Values must be between 0 and 200,000.
Inclusive [min, max] number of children in the household. Values must
be between 0 and 8.
occupations: Optional[List[Literal["professional_technical", "administration_management", "sales_service", 23 more]]]Filter by occupation classification.
Filter by occupation classification.
Targeted 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.