1. Events
Cold Mail Reseller
  • Cold Mail Reseller API Documentation
  • Users
    • Retrieve all users
      GET
    • Get User Details
      GET
    • Create User
      POST
    • Update User Details
      PUT
    • Delete User
      DELETE
  • Geo
    • Get Countries List
      GET
    • Get States of a Country
      GET
  • Domains
    • Renewal
      • Domain Renewal Overview
      • Get domain renewal pricing
      • Renew domain
      • Enable or disable domain auto-renew
    • Get Domains For User
      GET
    • Suggest Available Domains
      POST
    • Get Single Available Domain
      POST
    • Check If Google Workspace Exists
      POST
    • Add domain forwarding
      POST
    • Add email forwarding
      POST
    • Add Google Client ID to Domain
      POST
    • Remove domains
      DELETE
  • Dns
    • Get dns records for a domain
      GET
    • Adds dns record
      POST
    • Update dns records
      PUT
    • Delete dns records
      DELETE
  • Orders
    • Get Order Details
    • Get Order Status
    • Creates order json
    • Order mailboxes (json)
    • Process the Order
    • Create Order
    • Add mailboxes to a subscription
  • Mailboxes
    • Get mailboxes for user
    • Get mailbox details by id
    • Get Mailbox Admin Details
    • Update mailbox details
    • Remove mailbox
  • Subscriptions
    • Get All Subscriptions
    • Renew Subscriptions
    • Toggle Auto renewal
    • Cancel Subscription
  • Webhooks
    • Overview
    • Events
      • Domain Events
      • Subscription Events
      • Mailbox Events
      • Prewarmup Events
  • Export
    • Re-export a mailbox (Oauth)
  • Pre-warmup
    • Get all pre warmed up mailboxes
    • Order pre-warmedup mailboxes
  • Get Wallet Details
    GET
  • Send error
    POST
  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",
      "appPassword": "rena ppos micx xycp",
      "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!",
      "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.passwordstring(Microsoft only) Account password
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

See also#

Domain Events — Domain registration that must happen first
Subscription Events — How mailbox subscription renewals work
Modified at 2026-04-03 08:38:16
Previous
Subscription Events
Next
Prewarmup Events
Built with