1. Mailboxes
  • Litemail Docs
  • Users
    • Retrieve User Details
      GET
  • Workspaces
    • Retrieve All Workspaces
      GET
    • Create New Workspace
      POST
    • Update Workspace
      PUT
  • Billings
    • Add Billing Details
      POST
  • Mailboxes
    • Retrieve Mailboxes
      GET
    • Assign New Mailbox to Domain
      POST
    • Get Mailbox Details
      GET
    • Update Mailbox
      PUT
    • Remove Mailbox (Next Renewal)
      DELETE
  • Payment & Wallet
    • Get Wallet Balance
      GET
    • Add Balance to Wallet
      POST
    • Enable Auto Recharge
      POST
  • Exports
    • Export Mailboxes
      POST
    • Add Third Party Account Details
      POST
    • Update Third Party Account Details
      PUT
  • Subscriptions
    • Get All Subscriptions
      GET
    • Cancel Subscription
      DELETE
    • Upgrade Subscription
      PUT
  • Domains
    • Retrieve Domains
      GET
    • List Assignable Domains
      GET
    • Add DMARC Records
      POST
    • Add Domain Forwarding
      POST
    • Remove Domain Forwarding
      DELETE
    • Get Name Servers
      GET
    • Verify Name Server Propagation
      GET
    • Connect Domains with Zapmail
      POST
    • Enable Email Forwarding
      POST
    • Remove Email Forwarding
      DELETE
    • Enable Catch-All Emails
      POST
    • Remove Catch-All Emails
      DELETE
    • Check DNS Records
      GET
    • Remove Unused Domain
      DELETE
    • Get Available Domains for Registration
      GET
    • Get Domain Purchase Payment Link
      GET
  • DNS
    • Get DNS Records
    • Add DNS Record
    • Update DNS Record
    • Delete DNS Record
  • apikeys testing
    • generate key by login first
  • Connect Inbox
    • connect-inboxes
  1. Mailboxes

Assign New Mailbox to Domain

POST
/v1/mailboxes
Create and assign a new mailbox under a domain owned by the user.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Body Params application/json

Example
{
  "mailboxes": [
    {
      "userName": "support",
      "firstName": "Support",
      "lastName": "Team",
      "domain": "example.com",
      "workspaceType": "Google Standard"
    },
    {
      "userName": "sales",
      "firstName": "Sales",
      "lastName": "Department",
      "domain": "example.com",
      "workspaceType": "Google Premium"
    }
  ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/mailboxes' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "mailboxes": [
    {
      "userName": "support",
      "firstName": "Support",
      "lastName": "Team",
      "domain": "example.com",
      "workspaceType": "Google Standard"
    },
    {
      "userName": "sales",
      "firstName": "Sales",
      "lastName": "Department",
      "domain": "example.com",
      "workspaceType": "Google Premium"
    }
  ]
}'

Responses

🟢201Created
application/json
Mailbox created successfully
Body

Example
{
    "id": "cmg9l78m8000bla04a6onx0ih",
    "username": "Mary",
    "fullName": "Mary",
    "status": "PENDING",
    "createdAt": "2025-10-02T15:45:32.768Z"
}
🟠400Bad Request
🟠401Unauthorized
Previous
Retrieve Mailboxes
Next
Get Mailbox Details
Built with