List Targeted List Builds
print_mail.targeted_list_builds.list(TargetedListBuildListParams**kwargs) -> SyncSkipLimit[TargetedListBuildListResponse]
GET/print-mail/v1/targeted_list_builds
Retrieve a paginated list of targeted list builds for the authenticated organization, ordered from most recently updated to least recently updated.
Parameters
search: Optional[str]
You can supply any string to help narrow down the list of resources. For example, if you pass "New York" (quoted), it will return resources that have that string present somewhere in their response. Alternatively, you can supply a structured search query. See the documentation on StructuredSearchQuery for more details.
List Targeted List Builds
import os
from postgrid import PostGrid
client = PostGrid(
print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"), # This is the default and can be omitted
)
page = client.print_mail.targeted_list_builds.list()
page = page.data[0]
print(page.id){
"object": "list",
"totalCount": 1,
"skip": 0,
"limit": 10,
"data": [
{
"id": "targeted_list_build_123",
"live": false,
"description": "Q1 prospecting list",
"metadata": {
"campaign": "q1_prospecting"
},
"createdAt": "2026-01-05T10:00:00Z",
"updatedAt": "2026-01-05T10:01:30Z",
"organization": "organization_123",
"status": "quote_ready",
"usCompanies": {
"postalCodes": [
"10001",
"10002"
],
"industries": [
"software"
],
"employeeCount": [
10,
500
]
},
"limit": 1000,
"quote": {
"generatedAt": "2026-01-05T10:01:30Z",
"count": 1000,
"pricePerContactCents": 11.98
},
"previewRecords": [
{
"name": "Acm***",
"formattedAddress": "12** Main St, New York, NY, 100**"
}
],
"errors": []
}
]
}Returns Examples
{
"object": "list",
"totalCount": 1,
"skip": 0,
"limit": 10,
"data": [
{
"id": "targeted_list_build_123",
"live": false,
"description": "Q1 prospecting list",
"metadata": {
"campaign": "q1_prospecting"
},
"createdAt": "2026-01-05T10:00:00Z",
"updatedAt": "2026-01-05T10:01:30Z",
"organization": "organization_123",
"status": "quote_ready",
"usCompanies": {
"postalCodes": [
"10001",
"10002"
],
"industries": [
"software"
],
"employeeCount": [
10,
500
]
},
"limit": 1000,
"quote": {
"generatedAt": "2026-01-05T10:01:30Z",
"count": 1000,
"pricePerContactCents": 11.98
},
"previewRecords": [
{
"name": "Acm***",
"formattedAddress": "12** Main St, New York, NY, 100**"
}
],
"errors": []
}
]
}