---
title: "Upload file for email validation"
method: POST
path: "/emailvalidation/upload"
tags: ["email-validator"]
---

# Upload file for email validation

`POST /emailvalidation/upload`

## Request

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

Upload file for email validation

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: CSV or TXT file containing email addresses (one per line). Supported formats: text/csv (CSV), text/plain (TXT). The file may contain invalid email addresses; these will be processed and flagged as invalid in the validation results.

## Response `201`

Sucess

Uploaded file was created at the server.

- EmailValidationUploadResponse
  - `list_id` integer: List Identifier
  - `total_emails` integer: Total emails found in uploaded file

## Other responses

- `400`: Bad Request ###### Produces: * missing_upload_file * invalid_mail_address_list * unsupported_file_format
- `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)
