---
title: "Export Channel Events"
method: POST
path: "/events/channels/{name}/export"
tags: ["Events"]
---

# Export Channel Events

`POST /events/channels/{name}/export`

Export delivery events log information to the specified file format. Required Access Level: Export

## Path parameters

- `name` string, string, required — string

## Query parameters

- `eventTypes` EventType[] — array
- `from` string, date-time, nullable — string
- `to` string, date-time, nullable — string
- `fileFormat` 'Csv' | 'Xml' | 'Json' — Format of the exported file.
- `compressionFormat` 'None' | 'Zip' — FileResponse compression format
- `fileName` string, string — string

## Response `202`

Accepted

- ExportLink
  - `Link` string, string — Direct URL to the exported file
  - `PublicExportID` string, guid — ID of the exported file

---

[API](https://skmtc.net/elasticemail/apis/megamail-api.md) · [All operations](https://skmtc.net/elasticemail/apis/megamail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elasticemail/megamail-api/versions/1a0ebb83f676/schema)
