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

# Send Email



## OpenAPI

````yaml POST /v1/mail/messages
openapi: 3.0.0
info:
  title: Poozle
  description: The poozle API description
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/mail/messages:
    post:
      tags:
        - Mail
      operationId: MessagesController_sendMessage
      parameters:
        - name: raw
          required: false
          in: query
          description: Include raw response. When you want more data from the source
          schema:
            type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMessageBody'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailMessageResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiException'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiException'
components:
  schemas:
    CreateMessageBody:
      type: object
      properties:
        subject:
          type: string
        body:
          type: string
        html_body:
          type: string
        thread:
          type: string
        cc:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        bcc:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        from:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        to:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        reply_to:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        in_reply_to:
          type: string
      required:
        - subject
    MailMessageResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Message'
      required:
        - data
    ApiException:
      type: object
      properties:
        statusCode:
          type: number
        message:
          type: string
        status:
          type: string
        error:
          type: string
        errors:
          type: object
        timestamp:
          type: string
        path:
          type: string
    Recipient:
      type: object
      properties:
        email:
          type: string
        name:
          type: string
      required:
        - email
        - name
    Message:
      type: object
      properties:
        id:
          type: string
        body:
          type: string
        html_body:
          type: string
        user_id:
          type: string
        date:
          type: string
        snippet:
          type: string
        subject:
          type: string
        thread_id:
          type: string
        starred:
          type: boolean
        unread:
          type: boolean
        cc:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        bcc:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        from:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        reply_to:
          type: array
          items:
            $ref: '#/components/schemas/Recipient'
        labels:
          type: array
          items:
            type: string
        in_reply_to:
          type: string
      required:
        - id
        - body
        - html_body
        - user_id
        - date
        - snippet
        - subject
        - thread_id
        - starred
        - unread
        - cc
        - bcc
        - from
        - reply_to
        - labels
        - in_reply_to

````