---
search:
  tags:
    - administration
    - POST
seo:
  description: >-
    Creates a new IMAP/SMTP email account for sending and receiving… Reference
    for the POST /administration/email-accounts endpoint in the Leadtime Public
    API API.
sidebar:
  badge: POST
  label: Create IMAP email account
title: Create IMAP email account
type: openapi-operation
---
Creates a new IMAP/SMTP email account for sending and receiving emails.

**Important Restrictions:**
- Only IMAP/SMTP accounts can be created via API
- OAuth accounts (Google, Office365) must be configured through the web application for security reasons

**Required Configuration:**
- Email address (must be unique within the workspace)
- IMAP server settings (host, port, username, password) for receiving emails
- SMTP server settings (host, port, username, password) for sending emails
- Optional display name for the account

**Validation:**
- Email address must be valid and unique within the workspace
- Ports must be between 1-65535
- All server configuration fields are required

**Response:**
- Returns the created account with all details (excluding passwords)
- Account status will be set to "active" upon successful creation

<Operation source="api-reference" id="emailaccountscontroller-createemailaccount" />
