Create Virtual Mailbox
print_mail.virtual_mailboxes.create(VirtualMailboxCreateParams**kwargs) -> VirtualMailboxCreateResponse
POST/print-mail/v1/virtual_mailboxes
Creates a new virtual mailbox. In live mode, the virtual mailbox will be pending assignment and cannot be used until it has been assigned and activated by our team. You will be notified via email once the virtual mailbox has been activated. In test mode, the virtual mailbox will be activated immediately upon creation.
Create Virtual Mailbox
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
)
virtual_mailbox = client.print_mail.virtual_mailboxes.create(
country_code="US",
capabilities={
"envelope_scans": True,
"forward_mail_to": "contact_pxd7wnnD1xY6H6etKNvjb4",
},
)
print(virtual_mailbox.id){
"id": "virtual_mailbox_abcdefg123456890",
"object": "virtual_mailbox",
"live": true,
"status": "pending_assignment",
"capabilities": {
"forwardMailTo": {
"id": "contact_pxd7wnnD1xY6H6etKNvjb4",
"object": "contact",
"live": false,
"companyName": "PostGrid",
"addressLine1": "90 CANAL ST STE 600",
"city": "BOSTON",
"provinceOrState": "MA",
"postalOrZip": "90210-1234",
"countryCode": "US",
"skipVerification": false,
"forceVerifiedStatus": false,
"addressStatus": "verified",
"createdAt": "2022-02-16T15:08:41.052Z",
"updatedAt": "2022-02-16T15:08:41.052Z"
},
"envelopeScans": true
},
"countryCode": "US",
"createdAt": "2025-11-01T15:08:41.052Z",
"updatedAt": "2025-11-01T15:08:41.052Z"
}Returns Examples
{
"id": "virtual_mailbox_abcdefg123456890",
"object": "virtual_mailbox",
"live": true,
"status": "pending_assignment",
"capabilities": {
"forwardMailTo": {
"id": "contact_pxd7wnnD1xY6H6etKNvjb4",
"object": "contact",
"live": false,
"companyName": "PostGrid",
"addressLine1": "90 CANAL ST STE 600",
"city": "BOSTON",
"provinceOrState": "MA",
"postalOrZip": "90210-1234",
"countryCode": "US",
"skipVerification": false,
"forceVerifiedStatus": false,
"addressStatus": "verified",
"createdAt": "2022-02-16T15:08:41.052Z",
"updatedAt": "2022-02-16T15:08:41.052Z"
},
"envelopeScans": true
},
"countryCode": "US",
"createdAt": "2025-11-01T15:08:41.052Z",
"updatedAt": "2025-11-01T15:08:41.052Z"
}