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

# List messages, newest first



## OpenAPI

````yaml /api/openapi.yaml get /boards/{boardId}/messages
openapi: 3.1.0
info:
  title: SigmaChat API
  version: '1'
  description: |
    The REST surface for SigmaChat apps and bots. Authenticate every
    request with a bot token in the Authorization header. Every response
    carries X-RateLimit-Limit, X-RateLimit-Remaining, and
    X-RateLimit-Reset; errors use a stable envelope
    `{ "error": { "code": "..." } }`.
servers:
  - url: https://sigmachat.org/api/v1
security:
  - botToken: []
paths:
  /boards/{boardId}/messages:
    get:
      summary: List messages, newest first
      parameters:
        - $ref: '#/components/parameters/boardId'
        - name: before
          in: query
          description: Return messages with seq strictly below this.
          schema:
            type: integer
            minimum: 1
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      responses:
        '200':
          description: Messages.
          content:
            application/json:
              schema:
                type: object
                properties:
                  messages:
                    type: array
                    items:
                      $ref: '#/components/schemas/Message'
components:
  parameters:
    boardId:
      name: boardId
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    Message:
      type: object
      properties:
        id:
          type: string
          format: uuid
        board_id:
          type: string
          format: uuid
        author:
          type: string
          format: uuid
          nullable: true
        kind:
          type: string
        content:
          type: string
          nullable: true
        media:
          type: object
          nullable: true
        embeds:
          type: array
          nullable: true
          items:
            type: object
        webhook_name:
          type: string
          nullable: true
        reply_to:
          type: string
          format: uuid
          nullable: true
        seq:
          type: integer
        created_at:
          type: string
          format: date-time
        edited_at:
          type: string
          format: date-time
          nullable: true
        deleted_at:
          type: string
          format: date-time
          nullable: true
        interaction:
          type: object
          nullable: true
  securitySchemes:
    botToken:
      type: http
      scheme: bearer
      description: An app token from the in-app developer settings.

````