> ## 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.

# Send a new email

> Sends a new email (not a reply) from a connected mailbox, up to 50 recipients in total. The account's signature is appended. Pass the same `idempotencyKey` on a retry to avoid sending twice.




## OpenAPI

````yaml /openapi/inbox.yaml post /inbox/send-email
openapi: 3.1.0
info:
  title: Connie Inbox API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for the Inbox: conversations, messages,
    drafts, labels, views, and the Calls and Meetings views. They authenticate
    with your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Conversations
    description: List, count, pin, star, assign and bulk-update conversations.
  - name: Messages
    description: Read messages, read state, reactions, stars, bookmarks and pins.
  - name: Sending
    description: >-
      Send new emails and chats, reply, search recipients and upload
      attachments.
  - name: Drafts
    description: Drafts saved in Connie and drafts stored in a connected mailbox.
  - name: Labels
    description: Workspace labels and the labels on each conversation.
  - name: Views
    description: Custom Inbox views.
  - name: Spam
    description: Mark conversations as spam or not spam.
  - name: Meetings and calls
    description: >-
      Recorded meetings and dialer calls shown in the Inbox, and their action
      items.
paths:
  /inbox/send-email:
    post:
      tags:
        - Sending
      summary: Send a new email
      description: >
        Sends a new email (not a reply) from a connected mailbox, up to 50
        recipients in total. The account's signature is appended. Pass the same
        `idempotencyKey` on a retry to avoid sending twice.
      operationId: sendEmail
      parameters:
        - $ref: '#/components/parameters/WorkspaceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - accountId
                - to
                - body
              properties:
                accountId:
                  type: string
                  description: >-
                    The mailbox's account ID (either the connected-account ID or
                    its `account_id` on conversations).
                to:
                  type: array
                  minItems: 1
                  items:
                    $ref: '#/components/schemas/EmailRecipient'
                cc:
                  type: array
                  items:
                    $ref: '#/components/schemas/EmailRecipient'
                bcc:
                  type: array
                  items:
                    $ref: '#/components/schemas/EmailRecipient'
                subject:
                  type: string
                  description: Defaults to "(no subject)".
                body:
                  type: string
                  description: HTML body.
                idempotencyKey:
                  type: string
      responses:
        '200':
          description: Email sent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendEmailResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    WorkspaceId:
      name: workspaceId
      in: query
      required: true
      description: >
        Your workspace ID. Also accepted as `workspace_id`, the `x-workspace-id`
        header, or `workspaceId` in a JSON body. If you leave it out, the
        request silently runs against the first workspace you joined.
      schema:
        type: string
        format: uuid
  schemas:
    EmailRecipient:
      type: object
      required:
        - identifier
      properties:
        identifier:
          type: string
          format: email
        display_name:
          type: string
    SendEmailResult:
      type: object
      properties:
        success:
          type: boolean
        message:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
        conversation:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
        tracking_id:
          type:
            - string
            - 'null'
        provider_id:
          type:
            - string
            - 'null'
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  responses:
    BadRequest:
      description: Missing or invalid input.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: No valid session, or the session expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        You're not a member of the workspace, or the account or conversation is
        restricted to other people.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests. Wait for the number of seconds in `Retry-After`.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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