Get Targeted List Build
print_mail.targeted_list_builds.retrieve(strid) -> TargetedListBuildRetrieveResponse
GET/print-mail/v1/targeted_list_builds/{id}
Get Targeted List Build
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
)
targeted_list_build = client.print_mail.targeted_list_builds.retrieve(
"id",
)
print(targeted_list_build.id){
"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
{
"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": []
}