---
title: "Export bulk email verification results to a .csv file"
method: POST
path: "/v1/verify/bulk/export"
tags: ["Bulk verification"]
---

# Export bulk email verification results to a .csv file

`POST /v1/verify/bulk/export`

## Request

- Base URL: `https://api.bounceban.com`
- URL: `https://api.bounceban.com/v1/verify/bulk/export`
- Auth: API key in header `Authorization`

You can use this API to export selected or all emails to an .csv file. If the request is successful, a downloadable public link will be returned. For security reasons, the link will expire after 4 hours of generation as it's publicly available. You can always request a new file once the link expires. However, as the results for bulk email verification are available for only 90 days after verification, be sure to generate the file within the 90 days period. <br> <br>The endpoint is designed to export verified results only after the entire task has been completed. An error will be returned if the task is still in progress or incomplete.

## Request body

- object
  - `id` string: (Required) The unique identifier of a completed bulk email verification task. <br><br> Generating the download link usually takes a few seconds. For larger tasks, the process may take longer: <strong>100,000 emails</strong>, approximately 30 second; <strong>400,000 emails</strong>, approximately 2 minutes.<br><br> If the download link is unavailable after your initial request, wait a few seconds and try again. To prevent excessive requests, limit attempts for the same export to <strong>15 requests within a 15-minute period</strong>.
  - `keep_all_rows` boolean: (Optional) When set to `true`, all rows from the source .CSV file, including those without an email address, will be included in the downloaded .CSV file. Email verification results will not be provided for emails that do not meet your specified filters. Please note that this feature only applies to tasks created through the [/v1/verify/bulk/file](#tag/Bulk-verification/paths/~1v1~1verify~1bulk~1file/post) endpoint. Default value is `false`.
  - `criteria` object: Specifies emails to retrieve based on verification state (`deliverable`, `undeliverable `, `risky`, or `unknown`) and attributes.
    - `free` boolean: Whether the email is a free email.
    - `role` boolean: Whether the email is role based.
    - `accept_all` boolean: Whether the email is accept-all.
    - `disposable` boolean: Whether the email is disposable.
    - `deliverable` boolean: Whether the email is deliverable.
    - `risky` boolean: Whether the email is risky.
    - `risky_score` integer: The minimum score a email needs to meet in order to be included in the export. Only effective if `risky` is `true`.
    - `undeliverable` boolean: Whether the email is undeliverable.
    - `unknown` boolean: Whether the email is unknown.

## Response `200`

Indicates the request is successful.

- object
  - `result` 'ok' | 'err': > `ok` Indicates the request is successful.<br> > `err` The bulk task has not finished yet, please try again later.
  - `download_url` string: The URL for the .csv file. The link will expire after 4 hours of generation.

## Other responses

- `400`: Invalid parameter.
- `401`: Authorization information is missing or invalid.
- `405`: The account is blocked.
- `429`: Rate limited.
- `500`: Unexpected error.

---

[API](https://skmtc.dev/bounceban/apis/bounceban-apis-reference.md) - [All operations](https://skmtc.dev/bounceban/apis/bounceban-apis-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/bounceban/apis/bounceban-apis-reference/revisions/0f9b503568c3?raw)
