---
title: "Export all accounts of a mail service as CSV, streamed while paginating Elasticsearch"
method: GET
path: "/1/mail_hostings/{service_mail}/addresses/export"
tags: ["Addresses"]
---

# Export all accounts of a mail service as CSV, streamed while paginating Elasticsearch

`GET /1/mail_hostings/{service_mail}/addresses/export`

## Request

- Base URL: `https://api.infomaniak.com`
- URL: `https://api.infomaniak.com/1/mail_hostings/{service_mail}/addresses/export`
- Auth: HTTP bearer

Export all accounts (mailboxes and redirections) of a mail service as CSV

## Path parameters

- `service_mail` integer, required

## Query parameters

- `filters` object
  - `has_aliases` boolean
  - `has_promotional_filter` boolean
  - `has_responder` boolean
  - `has_spam_filter` boolean
  - `has_targets` boolean
  - `has_users` boolean
  - `last_login_at` string: Timestamp `{name}` has been logged
  - `protocols` string[]
  - `type` 'mailbox' | 'redirection': The type of the account.<note><strong>mailbox</strong>: This is a classic account.</note><note><strong>redirection</strong>: The account is a redirection.</note>
- `search` string

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required: Result of the HTTP request
  - `data` string

## Changes

- **2026-10-28** `876c540ed2ae`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/changes/1/mail_hostings/:service_mail/addresses/export/get.md)

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) - [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) - [OpenAPI document](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/revisions/96ca7c8a0545?raw)
