Export Mailboxes#
This endpoint allows you to export mailboxes to a third-party application or as a CSV file.Endpoint#
Request Body#
Name | Type | Description |
---|
apps | array | Name of third-party apps where mailboxes should be exported. To export as a CSV file, use ["MANUAL"] . |
ids (Optional) | array | IDs of mailboxes to export. |
excludeIds (Optional) | array | IDs of mailboxes that should not be exported. |
tagIds (Optional) | array | Tag IDs of domains. |
contains (Optional) | string | Search filter for mailboxes matching specific criteria. |
status (Optional) | string | Specify the status of mailboxes to export. |
Example Request#
{
"apps": ["MANUAL"],
"ids": ["12345", "67890"],
"excludeIds": ["54321"],
"tagIds": ["tag1", "tag2"],
"contains": "example",
"status": "active"
}
Request
Example:{{x-auth-zapmail}}
Body Params application/json
{
"apps": [
"REACHINBOX"
],
"ids": [
"a66ccca7-d465-464a-887b-90bce6d09bbb"
],
"excludeIds": [],
"tagIds": [],
"status": "",
"contains": ""
}
Request samples
curl --location --request POST 'https://api.zapmail.ai/api/v2/exports/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
application/json {
"status": 200,
"message": "Mailboxes export is started. It may take sometime to export",
"data": null
}
Modified at 2025-01-30 13:10:39