Zapmail
latest
  • latest
  • v1
  1. export
Zapmail
latest
  • latest
  • v1
  • Zapmail Docs
  • users
    • Retrieve User Details
      GET
  • workspaces
    • Retrieve all workspaces
      GET
    • Create new workspace
      POST
    • Update workspace
      PUT
  • billing
    • Add Billing Details
      POST
    • Update Billing Details
      PUT
  • mailbox
    • Retrieve All Mailboxes
      GET
    • Get Mailbox Details by ID
      GET
    • Assign New Mailboxes to Domains
      POST
    • Update mailbox
      PUT
    • Remove mailboxes on next renewal
      PUT
    • Get Authenticator code
      GET
    • Remove Mailboxes Instantly
      POST
    • Custom OAuth
      POST
  • payments & wallet
    • Add balance to wallet
      POST
    • Get wallet balance
      GET
    • Enable auto recharge
      POST
  • export
    • Export mailboxes
      POST
    • Add third party account details
      POST
    • Update third party account details
      PUT
  • subscriptions
    • Get all subscriptions
      GET
    • Cancel subscription
      POST
    • Upgrade existing subscription
      POST
    • Purchase subscription
      POST
  • domains
    • Retrieve All Domains
    • List Assignable Domains
    • Add DMARC record
    • Add Domain forwarding
    • Get Name servers to connect domain
    • Verify Name Server Propagation
    • Connect Domain with Zapmail
    • Enable email forwarding
    • Remove email forwarding
    • Enable catch all emails
    • Remove catch all emails
    • Check DNS records
    • Remove unused domains
    • Get available domains for registration
    • Get domains purchase payment link
    • Get domain connection requests
    • Remove domain connection requests
    • Connect Domain with Zapmail (New)
    • Add Google Client ID to Domain
    • Get availability of multiple domain names.
    • Retrieve Domain Health Score
  • dns
    • Get dns records
    • Add dns records
    • Update dns records
    • Delete dns records
  • aged domains
    • Get available domains
    • Purchase aged domains
  • prewarmed domains
    • Get prewarmed domains
    • purchase prewarmed subscription
    • Assign prewarmed mailboxes
  • placement test
    • Get subscriptions
    • Get Overall Report
    • Get placement test orders
    • Get report by cart order id
    • Get Eligible Mailboxes for Placement Tests
    • Get Available Placement Test Credits
    • Purchase Placement Test
    • Purchase plan
  • dns shield
    • Get eligible domains
    • Get available slots
    • Get subscriptions
    • Get Allocated Domains for Subscription
    • Allocate Domains to DNS Shield
    • Purchase DNS Shield
    • Upgrade DNS Shield LTD Plan
    • Cancel subscription
  • Schemas
    • domain with filter
  1. export

Export mailboxes

POST
/v2/exports/mailboxes
This endpoint allows you to export mailboxes to a third-party application or as a CSV file.

Request Body#

NameTypeDescription
appsarrayName of third-party apps where mailboxes should be exported. To export as a CSV file, use ["MANUAL"].
ids (Optional)arrayIDs of mailboxes to export.
excludeIds (Optional)arrayIDs of mailboxes that should not be exported.
tagIds (Optional)arrayTag IDs of domains.
contains (Optional)stringSearch filter for mailbox fields matching specific text.
status (Optional)stringSpecify the status of mailboxes to export.

Example Request#

{
    "apps": ["MANUAL"],
    "ids": ["a4333491-23dd-3d2q-8523-8eccfc2e82a6b", "4333491-23dd-3d2q-4333491-23dd"],
    "excludeIds": ["4333491-23dd-3d2q-8523-8eccfc2e82a6b"],
    "tagIds": ["tag1", "tag2"],
    "contains": "example",
    "status": "active"
}

Request

Header Params

Body Params application/json

Example
{
    "apps": [
        "REACHINBOX"
    ],
    "ids": [
        "a66ccca7-d465-464a-887b-90bce6d09bbb"
    ],
    "excludeIds": [],
    "tagIds": [],
    "status": "",
    "contains": ""
}

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 'https://api.zapmail.ai/api/v2/exports/mailboxes' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "apps": [
        "REACHINBOX"
    ],
    "ids": [
        "a66ccca7-d465-464a-887b-90bce6d09bbb"
    ],
    "excludeIds": [],
    "tagIds": [],
    "status": "",
    "contains": ""
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": 200,
    "message": "Mailboxes export is started. It may take sometime to export",
    "data": null
}
🟠404No mailbox found
Modified at 2025-10-14 09:22:45
Previous
Enable auto recharge
Next
Add third party account details
Built with