1. Events
  • Welcome to the Cold Mail Reseller API
  • Get Started
    • Overview
    • Authentication
    • Quick Start
  • Core Concepts
    • Users
    • Domains
    • DNS Management
    • Mailboxes
    • Subscriptions
    • Pre-Warmup
    • Domain Renewal
    • 1+ Year Subscriptions
    • Mailbox Warmup
    • Platform Exports
    • OAuth Exports
    • Sandbox API
  • API Reference
    • Users
      • List Users
      • Get User
      • Create User
      • Update User
      • Delete User
    • Geo
      • List Countries
      • List States
    • Domains
      • Domain Renewal
        • Get Domain Renewal Prices
        • Renew Domains
        • Toggle Domain Auto-Renew
      • Get Domains by User
      • Check Domain Availability
      • Check Single Domain Availability
      • Check Workspace Existence
      • Set Domain Forwarding
      • Set Email Forwarding
      • Delete Domains
    • DNS
      • Get DNS Records
      • Add DNS Records
      • Update DNS Record
      • Update Nameservers
      • Delete DNS Record
    • Mailboxes
      • List Mailboxes
      • Get Mailboxes by User
      • Get Mailbox
      • Get Admin Mailbox Details
      • Update Mailbox Details
      • Delete Mailbox
    • Mailbox Warmup
      • Add Warmup to Mailbox
      • Toggle Warmup
      • Update Warmup Settings
      • Set Warmup Status
      • Disable Warmup
    • Orders
      • Get Order Status
      • Get Order Details
      • Create Order
      • Create Order (JSON)
      • Create Mailbox Order (JSON)
      • Process Order
    • Subscriptions
      • 1+ Year Subscription
        • Recreate Subscription
      • Get Subscriptions
      • Renew Subscriptions
      • Cancel Subscription
      • Toggle Auto-Renewal
    • Exports
      • Platform Exports
        • Get Platform Credentials
        • Add Platform Credential
        • Export Mailboxes to Platform
        • Remove Platform Credential
      • OAuth Exports
        • Perform OAuth
        • Add Client ID to Domains
    • Pre-Warmup
      • Sandbox
        • Get Sandbox Pre-warmup Domains
        • Order Sandbox Pre-warmup
        • Reset Sandbox Pre-warmup
      • Get Pre-warmup Domains
      • Order Pre-warmup
    • Placement Test
      • Create Placement Order
      • Get Placement Reports
  • Resources
    • Errors
    • Rate Limits
    • Pagination
    • Sandbox
    • MCP
  • Webhooks
    • Overview
    • Events
      • Domain Events
      • Mailbox Events
      • Subscription Events
      • Prewarmup Events
      • Mailbox Warmup Events
  • Schemas
    • Error
    • Success
    • MessageResponse
    • User
    • Domain
    • ErrorResponse
    • Mailbox
    • Subscription
    • DnsRecord
    • Error Response
    • Pagination Meta
    • Action Error Response
    • PrewarmupOrderResult
    • OrderCreationResult
  1. Events

Mailbox Events

Mailbox events are triggered when mailbox accounts are ordered, created, or modified.

Overview#

The mailbox event lifecycle has three stages:
1.
Order processing — Mailbox provisioning order is submitted to provider (Google/Microsoft)
2.
Individual creation — Each mailbox account is created and activated
3.
Updates — User modifies mailbox details (first name, profile picture, etc.)

mailbox.order.success#

This event is triggered when the mailbox provisioning order is successfully submitted to the provider and confirmed. The mailboxes are now being created.

When it occurs#

Domain registration succeeded (see domain.order.success)
Mailbox order is submitted to Google Workspace or Microsoft 365
Provider confirms the order is processing
Individual mailbox accounts are about to be created

Example Payload#

{
  "event": "mailbox.order.success",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "domainId": "AH2BD0WYWSMQC9NQHTMES3TFK4TX",
    "domainName": "company.com",
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "subscriptionId": "YC2H6C87PPKPG5WXVNQ682GAVFTM",
    "orderId": "NQ682GAVFTMYC2H6C87PPKPG5WXV",
    "workspaceType": "GOOGLE",
    "creationtime": "2024-03-08T23:59:59Z",
    "expiryDate": "2025-03-08T23:59:59Z",
    "price": 11,
    "quantity": 3
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "mailbox.order.success"
eventIdstringUnique identifier for this event
data.domainIdstringThe domain these mailboxes belong to
data.domainNamestringDomain name (e.g., company.com)
data.userIdstringUser who placed the order
data.userEmailstringUser's email address
data.subscriptionIdstringImportant: Unique subscription ID for this domain
data.orderIdstringOrder identifier
data.workspaceTypestring"GOOGLE" or "MICROSOFT"
data.creationtimeISO 8601When the order was placed
data.expiryDateISO 8601When the subscription expires (renewal date)
data.pricenumberPrice per mailbox
data.quantitynumberNumber of mailboxes in this order

mailbox.order.failed#

This event is triggered when the mailbox provisioning order fails. This usually means individual mailbox accounts were not created.

When it occurs#

Domain was successfully registered, but mailbox order failed
Provider rejects the mailbox request (billing, quota, domain issues)
Insufficient mailbox quota in the workspace
Domain verification is incomplete
Payment processing failed

Example Payload#

{
  "event": "mailbox.order.failed",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "subscriptionId": "YC2H6C87PPKPG5WXVNQ682GAVFTM",
    "orderId": "NQ682GAVFTMYC2H6C87PPKPG5WXV",
    "domain": "company.com",
    "mailboxDetails": {
      "firstName": "John",
      "lastName": "Doe",
      "email": "john"
    },
    "workspaceType": "GOOGLE",
    "price": 11,
    "quantity": 2,
    "reason": "Domain not verified"
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "mailbox.order.failed"
eventIdstringUnique identifier for this event
data.userIdstringUser who placed the order
data.userEmailstringUser's email address
data.orderIdstringOrder identifier
data.subscriptionIdstringSubscription ID (for reference)
data.domainstringDomain name
data.workspaceTypestring"GOOGLE" or "MICROSOFT"
data.mailboxDetailsobjectSample mailbox details from the order
data.mailboxDetails.firstNamestringFirst name provided
data.mailboxDetails.lastNamestringLast name provided
data.mailboxDetails.emailstringEmail username provided
data.pricenumberPrice per mailbox
data.quantitynumberNumber of mailboxes attempted
data.reasonstringReason for failure

mailbox.created#

This event is triggered when an individual mailbox account is successfully created and ready to use. This event is sent once per mailbox.

When it occurs#

Mailbox provisioning order succeeded
Individual mailbox account was created at the provider
Account is verified and ready to use
Credentials are available and secure

Example Payload (Google)#

{
  "event": "mailbox.created",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "domain": "coldmailseller.com",
    "subscriptionId": "PMHKDLSOTJSNLGOOSFD",
    "orderId": "WR3N4JEW3D76N6KGRQSG36SSHBXK",
    "workspaceType": "GOOGLE",
    "mailboxDetails": {
      "mailboxId": "LY25R9GK5AHYZ450YPWMNM8K8FXX",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john@coldmailseller.com",
      "password": "TempPass123!",
      "appPassword": "rena ppos micx xycp",
      "secret":"toqm iemx qeuc ud6f 3lke ds7f mcju 5i7s",
      "isAdmin": true,
      "creationTime": "2024-03-08T23:59:59Z",
      "expiryDate": "2025-03-08T23:59:59Z"
    },
    "price": 8.16
  }
}

Example Payload (Microsoft)#

{
  "event": "mailbox.created",
  "eventId": "6SSHBXWR3N4JEKGRQSG3KW3D76N6",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "domain": "coldmailseller.com",
    "subscriptionId": "PMHKDLSOTJSNLGOOSFD",
    "orderId": "WR3N4JEW3D76N6KGRQSG36SSHBXK",
    "workspaceType": "MICROSOFT",
    "finalUrl": "https://example.com/oauth-callback",
    "mailboxDetails": {
      "mailboxId": "LY25R9GK5AHYZ450YPWMNM8K8FXX",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john@coldmailseller.com",
      "password": "TempPass123!",
      "secret":"toqm iemx qeuc ud6f 3lke ds7f mcju 5i7s",
      "creationTime": "2024-03-08T23:59:59Z",
      "expiryDate": "2025-03-08T23:59:59Z"
    },
    "price": 11
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "mailbox.created"
eventIdstringUnique identifier for this event
data.userIdstringUser who owns the mailbox
data.userEmailstringUser's email address
data.domainstringDomain the mailbox belongs to
data.subscriptionIdstringSubscription ID (groups mailboxes by domain)
data.orderIdstringOrder this mailbox belongs to
data.workspaceTypestring"GOOGLE" or "MICROSOFT"
data.mailboxDetails.mailboxIdstringUnique mailbox identifier
data.mailboxDetails.firstNamestringFirst name
data.mailboxDetails.lastNamestringLast name
data.mailboxDetails.emailstringFull email address
data.mailboxDetails.appPasswordstring(Google only) App-specific password
data.mailboxDetails.passwordstringAccount password
data.mailboxDetails.secretstringAccount secret
data.mailboxDetails.isAdminbooleanWhether account has admin privileges
data.mailboxDetails.creationTimeISO 8601When account was created
data.mailboxDetails.expiryDateISO 8601When subscription expires
data.pricenumberPrice of this mailbox

mailbox.updated#

This event is triggered when a user updates mailbox details such as first name, last name, username, or profile picture.

When it occurs#

User modifies their profile information
User uploads a new profile picture
Admin updates mailbox details
System syncs profile changes

Example Payload#

{
  "event": "mailbox.updated",
  "eventId": "Q9F81GPR7S4QWQG17D89TV3FN4E4",
  "data": {
    "userId": "PWM7Y25RYZ450YNM8K8FX9GK5AHX",
    "userEmail": "johndoe@company.com",
    "mailboxId": "3JP15CC4YWMHYFNYFCPM9A486E1R",
    "domain": "demo.biz",
    "email": "alice.y@demo.biz",
    "workspaceType": "GOOGLE",
    "updatedFields": {
      "firstName": "Alice",
      "lastName": "White",
      "userName": "ali",
      "profilePicture": "https://images.unsplash.com/photo-1742147550712-9c25dc0832aa"
    }
  }
}

Payload Schema#

FieldTypeDescription
eventstringAlways "mailbox.updated"
eventIdstringUnique identifier for this event
data.userIdstringUser who owns the mailbox
data.userEmailstringUser's email address
data.mailboxIdstringMailbox being updated
data.domainstringDomain the mailbox belongs to
data.emailstringFull email address
data.workspaceTypestring"GOOGLE" or "MICROSOFT"
data.updatedFieldsobjectOnly fields that were changed
data.updatedFields.firstNamestring(Optional) Updated first name
data.updatedFields.lastNamestring(Optional) Updated last name
data.updatedFields.userNamestring(Optional) Updated username
data.updatedFields.profilePicturestring(Optional) Updated profile picture URL

Important notes on updatedFields#

Only includes changed fields — Don't assume all fields are present
Always check before accessing — Use updatedFields.firstName || oldFirstName
Represents the final state — The values are the new values after the update

Notes#

One mailbox.created per mailbox — If you order 5 mailboxes, you'll get 5 separate mailbox.created events
subscriptionId links them — Use subscriptionId to group all mailboxes from the same domain
expiryDate is subscription renewal date — When this date arrives, you'll receive subscription.renewal.* events

Next Steps#

Domain Events
Domain registration that must happen first.
Subscription Events
How mailbox subscription renewals work.
Mailbox Warmup
Enroll a mailbox in warmup after it's created.
Modified at 2026-08-05 16:12:50
Previous
Domain Events
Next
Subscription Events
Built with