---
title: "Export filtered suppressions"
method: POST
path: "/suppressions/csv"
tags: ["suppressions"]
---

# Export filtered suppressions

`POST /suppressions/csv`

## Request

- Base URL: `https://pro.api.serversmtp.com/api/v2`
- URL: `https://pro.api.serversmtp.com/api/v2/suppressions/csv`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `consumerKey` and API key in header `consumerSecret`

Export Filtered Suppressions

## Request body

- SuppressionFilterRequestBody
  - `from` string, date, required: Start date
  - `to` string, date, required: End date
  - `tz` string: Timezone Offset
  - `filter` string: Query to search
  - `filter_by` SuppressionSource[]: Filter by
  - `smart_search` boolean, nullable: Smart search
  - `restrict` SuppressionRestriction[]: xxxx
    - `by` 'sender' | 'recipient' | 'reason' | 'subject': Field to restrict by
    - `operator` 'include' | 'exclude': XXX
    - `filter` string
    - `smart_search` boolean, nullable: Smart search

## Response `200`

Suppressions CSV data

## Other responses

- `401`: Unauthorized This API requires a valid API Key to be provided. (Use [/authentication/authorize](#/authentication/AuthenticationLogin) to obtain an API Key) Produces: * missing_authorization_key * invalid_authorization_key * account_is_inactive

---

[API](https://skmtc.dev/serversmtp/apis/turbosmtp-public-apis.md) - [All operations](https://skmtc.dev/serversmtp/apis/turbosmtp-public-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/serversmtp/apis/turbosmtp-public-apis/revisions/8503e099b215?raw)
