logo
MailboxesBulk import Outlook mailboxes from CSV
Mailboxes

Bulk import Outlook mailboxes from CSV

Upload a CSV to import Outlook/Hotmail mailboxes using app passwords (not OAuth). Maximum 500 per import.

Required columns: email, password Optional columns: name (display name), totpsecret (TOTP secret for 2FA)

SMTP/IMAP settings are auto-configured:

  • SMTP: smtp.office365.com:587 (STARTTLS)
  • IMAP: outlook.office365.com:993 (SSL) — or imap-mail.outlook.com for hotmail/live.com

Mailboxes are created with "pending" status and connection is tested asynchronously.

curl -X POST "https://api.sendkit.ai/v1/mailboxes/import/outlook" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  --form file=example_string \
  --form tag=example_string
{
  "success": true,
  "data": {
    "imported": 20,
    "skipped": 2,
    "failed": 1,
    "errors": [
      {
        "email": "unknown",
        "error": "Missing email or password"
      }
    ]
  }
}
POST
/v1/mailboxes/import/outlook
POST
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Content-Typestring
Required

The media type of the request body

Options: multipart/form-data
filestring
Required

CSV file with email and password columns

Format: binary
tagstring

Tag to apply to all imported mailboxes

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Body

multipart/form-data
filefile
Required

CSV file with email and password columns

tagstring

Tag to apply to all imported mailboxes

Responses