Turn HubSpot deals, tickets, and lifecycle stages into approved postal mail, then write delivery proof, forwarded documents, and inbound mail photos back onto the right CRM record.
Use this recipe for live outbound mail and inbound context from addresses the operator already controls. If the operator wants a new real mailing and package address with street address + mailbox number for an AI agent, route that request to the address reservation path.
HubSpot workflow, webhook, custom code action, or agent reads CRM context.
Agent drafts a letter or packet and calls mailbox.bot with dry_run=true.
Human approves sensitive, certified, or high-cost mail.
mailbox.bot prints, stamps, mails, tracks, and emits lifecycle webhooks.
The integration writes delivery proof, tracking, status, and any forwarded inbound document or mail photo back to the HubSpot object.
curl -X POST https://mailbox.bot/api/v1/mail \ -H "Authorization: Bearer sk_agent_test_..." \ -H "X-Mailbox-MD-Version: 3" \ -H "X-Max-Cost-Cents: 1500" \ -F "document=@notice.pdf" \ -F "recipient_name=Recipient Name" \ -F "recipient_line1=123 Main Street" \ -F "recipient_city=San Francisco" \ -F "recipient_state=CA" \ -F "recipient_zip=94105" \ -F "mail_class=certified" \ -F "dry_run=true" \ -F 'metadata[source]=hubspot'