Zapmail
v1
  • latest
  • v1
  1. export
Zapmail
v1
  • 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
  • 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
  • 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
      POST
  • subscriptions
    • Get all subscriptions
      GET
    • Cancel subscription
      POST
    • Upgrade existing subscription
      POST
  • domains
    • Retrieve All Domains
      GET
    • List Assignable Domains
      GET
    • Add DMARC record
      POST
    • Add Domain forwarding
      POST
    • Get Name servers to connect domain
      POST
    • Verify Name Server Propagation
      POST
    • Connect Domain with Zapmail
      POST
    • Enable email forwarding
      POST
    • Remove email forwarding
      DELETE
    • Enable catch all emails
      POST
    • Remove catch all emails
      DELETE
    • Check DNS records
      POST
    • Remove unused domains
      DELETE
    • Get available domains for registration
      POST
    • Get domains purchase payment link
      POST
  1. export

Export mailboxes

POST
/v1/exports/export-mailboxes

Export Mailboxes#

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

Endpoint#

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 mailboxes matching specific criteria.
status (Optional)stringSpecify the status of mailboxes to export.

Example Request#

{
    "apps": ["MANUAL"],
    "ids": ["12345", "67890"],
    "excludeIds": ["54321"],
    "tagIds": ["tag1", "tag2"],
    "contains": "example",
    "status": "active"
}

Request

Header Params
x-auth-zapmail
string 
required
Example:
{{x-auth-zapmail}}
Body Params application/json
object {0}
Example
{
  "apps": [
    "REACHINBOX"
  ],
  "ids": [
    "a66ccca7-d465-464a-887b-90bce6d09bbb"
  ],
  "excludeIds": [],
  "tagIds": [],
  "status": "",
  "contains": ""
}

Request 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/v1/exports/export-mailboxes' \
--header 'x-auth-zapmail: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "apps": [
        "REACHINBOX"
    ],
    "ids": [
        "a66ccca7-d465-464a-887b-90bce6d09bbb"
    ],
    "excludeIds": [],
    "tagIds": [],
    "status": "",
    "contains": ""
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
  "status": 200,
  "message": "Mailboxes export is started. It may take sometime to export",
  "data": null
}
Previous
Enable auto recharge
Next
Add third party account details
Built with