---
title: "Download Logs"
method: POST
path: "/logs/download"
tags: ["Events API"]
---

# Download Logs

`POST /logs/download`

This endpoint allows you to download the email transaction logs which includes following events:

1. Processed
2. Sent
3. Bounce (Hardbounce and Softbounce)
4. Dropped
5. Invalid
6. Opened
7. Clicked
8. Unsubscribe
9. Abuse

## Headers

- `api_key` string, required

## Request body

- object
  - `startdate` string, date, required — The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
  - `enddate` string, date — The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.
  - `events` 'processed' | 'sent' | 'open' | 'click' | 'unsubscribe' | 'bounce' | 'softbounce' | 'invalid' | 'spam' | 'dropped' | 'hardbounce' — Filter based on different email events. If not passed, all events will be fetched. Multiple comma separated events are allowed.
  - `email` string — Filter logs based on recipient's email
  - `fromaddress` string — Filter logs based on fromaddress
  - `subject` string — Filter logs based on subject
  - `xapiheader` string — Filter logs based on x-apiheader

## Response `200`

Success

- object
  - `data` object
    - `requestid` integer
  - `status` string

## Other responses

- `400` — Bad request

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/revisions/73f83bc2eff8/schema)
