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

# Reply to an email

> Sends a reply (or reply-all or forward) in an existing email thread. Returns 409 `REPLY_TARGET_PENDING` if the message you reply to is still being delivered; retry shortly. Replies to auto-responders are refused with 422.




## OpenAPI

````yaml /openapi/inbox.yaml post /messaging/emails/send
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:
  /messaging/emails/send:
    post:
      tags:
        - Sending
      summary: Reply to an email
      description: >
        Sends a reply (or reply-all or forward) in an existing email thread.
        Returns 409 `REPLY_TARGET_PENDING` if the message you reply to is still
        being delivered; retry shortly. Replies to auto-responders are refused
        with 422.
      operationId: replyToEmail
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - workspaceId
                - accountId
                - to
                - body
              properties:
                workspaceId:
                  type: string
                  format: uuid
                  description: Required in the body; there is no fallback.
                accountId:
                  type: string
                  description: The mailbox's account ID.
                to:
                  type: array
                  minItems: 1
                  items:
                    oneOf:
                      - type: string
                        format: email
                      - $ref: '#/components/schemas/EmailRecipient'
                cc:
                  type: array
                  items:
                    oneOf:
                      - type: string
                        format: email
                      - $ref: '#/components/schemas/EmailRecipient'
                bcc:
                  type: array
                  items:
                    oneOf:
                      - type: string
                        format: email
                      - $ref: '#/components/schemas/EmailRecipient'
                subject:
                  type: string
                body:
                  type: string
                  description: HTML body.
                replyTo:
                  type: string
                  description: >-
                    ID of the message being replied to. Without it the email
                    starts a new thread.
                conversationId:
                  type: string
                  description: >-
                    The conversation to file the sent message under (used for
                    forwards).
                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'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          description: >-
            The account can't send this reply (for example a reply to an
            auto-responder).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  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'
    Conflict:
      description: >-
        The item is in a state that doesn't allow this, or changed underneath
        you.
      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.