Confirm Targeted List Build
print_mail.targeted_list_builds.confirm(strid) -> TargetedListBuildConfirmResponse
POST/print-mail/v1/targeted_list_builds/{id}/confirm
Confirm a targeted list build whose quote is ready. This deducts the appropriate amount of list build credits from the organization (in live mode) and kicks off the asynchronous creation of the underlying mailing list.
Confirm 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
)
response = client.print_mail.targeted_list_builds.confirm(
"id",
)
print(response.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:05:00Z",
"organization": "organization_123",
"status": "creating_list",
"usCompanies": {
"postalCodes": [
"10001",
"10002"
],
"industries": [
"software"
],
"employeeCount": [
10,
500
]
},
"limit": 1000,
"quote": {
"generatedAt": "2026-01-05T10:01:30Z",
"count": 1000,
"pricePerContactCents": 11.98
},
"confirmedAt": "2026-01-05T10:05:00Z",
"buildProgressPercent": 0,
"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:05:00Z",
"organization": "organization_123",
"status": "creating_list",
"usCompanies": {
"postalCodes": [
"10001",
"10002"
],
"industries": [
"software"
],
"employeeCount": [
10,
500
]
},
"limit": 1000,
"quote": {
"generatedAt": "2026-01-05T10:01:30Z",
"count": 1000,
"pricePerContactCents": 11.98
},
"confirmedAt": "2026-01-05T10:05:00Z",
"buildProgressPercent": 0,
"errors": []
}