> ## Documentation Index
> Fetch the complete documentation index at: https://docs.connie.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create or send an email draft



## OpenAPI

````yaml /openapi/inbox.yaml post /inbox/drafts/email
openapi: 3.1.0
info:
  title: Connie Inbox API
  version: 1.0.0
  description: >
    Unified inbox API for managing conversations across email, WhatsApp, and
    LinkedIn. All endpoints require authentication unless noted otherwise.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Init & Counts
    description: Initialization and conversation counts
  - name: Conversations
    description: Conversation listing and retrieval
  - name: Messages
    description: Message retrieval and read status
  - name: Compose
    description: Sending emails, starting chats, and drafts
  - name: Labels
    description: Label management
  - name: Assignments
    description: Conversation assignment to team members
  - name: Search
    description: Full-text and filtered search
  - name: Attachments
    description: File attachments
  - name: Spam
    description: Spam management
  - name: Views & Starred
    description: Custom views and starred conversations
paths:
  /inbox/drafts/email:
    post:
      tags:
        - Compose
      summary: Create or send an email draft
      operationId: createEmailDraft
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  description: Create email draft
                  required:
                    - accountId
                    - body
                  properties:
                    accountId:
                      type: string
                    to:
                      type: array
                      items:
                        type: string
                        format: email
                    subject:
                      type: string
                    body:
                      type: string
                    cc:
                      type: array
                      items:
                        type: string
                    bcc:
                      type: array
                      items:
                        type: string
                    replyTo:
                      type: string
                - type: object
                  description: Send existing draft
                  required:
                    - action
                    - draftId
                    - accountId
                  properties:
                    action:
                      type: string
                      enum:
                        - send
                    draftId:
                      type: string
                    accountId:
                      type: string
                    draftData:
                      type: object
      responses:
        '200':
          description: Draft created or sent
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  action:
                    type: string
                  draftId:
                    type: string
                    nullable: true
                  tracking_id:
                    type: string
                    nullable: true
                  provider_id:
                    type: string
                    nullable: true
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.