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

# List Conversation Messages

> Retrieves messages from a conversation that the required user_id participates in, newest first. Reading messages does not mark them as read.



## OpenAPI

````yaml get /conversations/groups/{id}/messages
openapi: 3.0.1
info:
  title: SchoolMaker API V1
  description: API for managing your SchoolMaker school
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://schoolmaker.co/api/v1
    description: Production API
security:
  - bearerAuth: []
paths:
  /conversations/groups/{id}/messages:
    get:
      tags:
        - Conversations
      summary: List Conversation Messages
      description: >-
        Retrieves messages from a conversation that the required user_id
        participates in, newest first. Reading messages does not mark them as
        read.
      parameters:
        - name: id
          in: path
          required: true
          description: Conversation group ID.
          schema:
            type: string
            minLength: 1
            maxLength: 255
        - name: user_id
          in: query
          required: true
          description: >-
            Required ID of the user whose conversation history to retrieve. The
            user must belong to your school.
          schema:
            type: string
            minLength: 1
            maxLength: 255
            pattern: \S
        - name: page
          in: query
          required: false
          description: Page number. Follow next_page until null.
          schema:
            type: integer
            minimum: 1
            maximum: 10000
            default: 1
        - name: per_page
          in: query
          required: false
          description: >-
            Number of messages per page, defaulting to 10. Accepts 1 to 30 but
            returns at most 10.
          schema:
            type: integer
            minimum: 1
            maximum: 30
            default: 10
        - name: search
          in: query
          required: false
          description: >-
            Search non-deleted message content. Deleted message bodies are
            excluded.
          schema:
            type: string
            maxLength: 10000
      responses:
        '200':
          description: At most ten messages per page. Follow next_page until null.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - page
                  - next_page
                properties:
                  data:
                    type: array
                    maxItems: 10
                    items:
                      type: object
                      required:
                        - id
                        - group_id
                        - author_id
                        - author_type
                        - body
                        - deleted_at
                        - created_at
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 255
                        group_id:
                          type: string
                          minLength: 1
                          maxLength: 255
                        author_id:
                          type: string
                          minLength: 1
                          maxLength: 255
                        author_type:
                          type: string
                          enum:
                            - User
                            - Member
                        body:
                          type: string
                          nullable: true
                          description: Rendered HTML. Null for deleted messages.
                        deleted_at:
                          type: string
                          format: date-time
                          nullable: true
                        created_at:
                          type: string
                          format: date-time
                  page:
                    type: integer
                  next_page:
                    type: integer
                    nullable: true
              examples:
                first_page:
                  value:
                    data:
                      - id: 927bad5c-af46-4a11-96bc-7a942870d481
                        group_id: 49f3f9bc-43b5-4a40-b2ac-ea2c8a7cb99d
                        author_id: 058696d4-f2c8-472f-8c80-5e2208e9fcb1
                        author_type: User
                        body: <p>Thanks for your question.</p>
                        deleted_at: null
                        created_at: '2026-10-02T09:00:00Z'
                    page: 1
                    next_page: null
                empty_page:
                  value:
                    data: []
                    page: 2
                    next_page: null
                deleted_message:
                  value:
                    data:
                      - id: 927bad5c-af46-4a11-96bc-7a942870d481
                        group_id: 49f3f9bc-43b5-4a40-b2ac-ea2c8a7cb99d
                        author_id: 058696d4-f2c8-472f-8c80-5e2208e9fcb1
                        author_type: User
                        body: null
                        deleted_at: '2026-10-02T10:00:00Z'
                        created_at: '2026-10-02T09:00:00Z'
                    page: 1
                    next_page: null
        '401':
          description: Missing or invalid API credentials, or unavailable school account.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
              example:
                error: Access denied
        '404':
          description: User not found in your school or is not a conversation participant.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
              example:
                error: Record not found
        '422':
          description: >-
            Missing required selector, invalid parameter type, unsupported
            filter or invalid pagination.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: string
              example:
                error: 'Invalid arguments:  required'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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