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

# Download Logs

`POST /logs/download`

## Request

- Base URL: `https://emailapi.netcorecloud.net/v5.1`
- URL: `https://emailapi.netcorecloud.net/v5.1/logs/download`
- Auth: API key in header `api_key`

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-v5.md) - [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/email-api-v5/revisions/7f81d8722ba3?raw)
