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

# Get Messages



## OpenAPI

````yaml GET /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:
    get:
      tags:
        - Mail
      operationId: MessagesController_getMessages
      parameters:
        - name: cursor
          required: false
          in: query
          description: >-
            Cursor to start from. You can find cursors for next & previous pages
            in the meta.cursors property of the response.
          schema:
            type: string
        - name: raw
          required: false
          in: query
          description: Include raw response. When you want more data from the source
          schema:
            type: boolean
        - name: received_after
          required: false
          in: query
          schema:
            type: string
        - name: received_before
          required: false
          in: query
          schema:
            type: string
        - name: subject
          required: false
          in: query
          schema:
            type: string
        - name: from
          required: false
          in: query
          schema:
            type: string
        - name: to
          required: false
          in: query
          schema:
            type: string
        - name: cc
          required: false
          in: query
          schema:
            type: string
        - name: bcc
          required: false
          in: query
          schema:
            type: string
        - name: labes
          required: false
          in: query
          schema:
            type: array
            items:
              type: string
        - name: starred
          required: false
          in: query
          schema:
            type: string
        - name: unread
          required: false
          in: query
          schema:
            type: string
        - name: direction
          required: false
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailMessagesResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiException'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiException'
components:
  schemas:
    MailMessagesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Message'
        meta:
          $ref: '#/components/schemas/Meta'
      required:
        - data
        - meta
    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
    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
    Meta:
      type: object
      properties:
        limit:
          type: number
        cursors:
          type: object
          properties:
            before:
              type: string
            current:
              type: string
            next:
              type: string
      required:
        - limit
        - cursors
    Recipient:
      type: object
      properties:
        email:
          type: string
        name:
          type: string
      required:
        - email
        - name

````