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

# List Sent Messages

> The messages your workspace sent, filtered by restaurant, for example to bill it

Guide: [Senders and domains](https://docs.minimo.it/embedded/senders-and-sending.md#3-name-the-customer-with-tenant). Errors: [Errors and limits](https://docs.minimo.it/embedded/errors.md).


## OpenAPI

````yaml get /public/v1/messages/list
openapi: 3.1.0
info:
  title: API Documentation
  description: Documentation for transactional and subscribe APIs
  version: 1.0.0
servers:
  - url: https://app.minimo.it
security:
  - bearerAuth: []
paths:
  /public/v1/messages/list:
    servers:
      - url: https://api.minimo.it
    get:
      summary: List sent messages
      description: >-
        The messages your workspace sent, newest first. Add `tenant` to count
        one restaurant's emails, for example to bill it.
      operationId: listSentMessages
      parameters:
        - name: tenant
          in: query
          required: false
          description: Only the sends of this restaurant.
          schema:
            type: string
            maxLength: 64
      responses:
        '200':
          description: The messages
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/SentMessage'
              example:
                data:
                  data:
                    - id: <0107…@eu-central-1.amazonses.com>
                      seenTimestamp: null
                      senderEmail: ''
                      subject: Your booking is confirmed
                      timestamp: '2026-11-10T21:58:13.741Z'
                      tenant: restaurant_4812
        '401':
          description: >-
            `INVALID_TOKEN`: missing or wrong key, or a key without the
            **Transactional** permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: '`INVALID_TENANT`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
      x-codeSamples:
        - label: cURL
          lang: bash
          source: |-
            curl --request GET \
              --url 'https://api.minimo.it/public/v1/messages/list?tenant=restaurant_4812' \
              --header 'Authorization: Bearer YOUR_MINIMO_KEY'
        - lang: JavaScript
          source: >-
            const res = await
            fetch('https://api.minimo.it/public/v1/messages/list?tenant=restaurant_4812',
            {
              method: 'GET',
              headers: {
                Authorization: 'Bearer YOUR_MINIMO_KEY',
              },
            });

            const { data } = await res.json();

            console.log(data);
        - lang: Python
          source: |-
            import requests

            res = requests.get(
                'https://api.minimo.it/public/v1/messages/list?tenant=restaurant_4812',
                headers={'Authorization': 'Bearer YOUR_MINIMO_KEY'},
            )
            print(res.status_code, res.text)
components:
  schemas:
    SentMessage:
      type: object
      properties:
        id:
          type: string
          description: Id of the message.
        seenTimestamp:
          type: string
          nullable: true
          format: date-time
          description: First open, if any.
        senderEmail:
          type: string
        subject:
          type: string
          example: Your booking is confirmed
        timestamp:
          type: string
          format: date-time
        tenant:
          type: string
          nullable: true
          example: restaurant_4812
    ApiError:
      type: object
      properties:
        status:
          type: string
          example: FAIL
        message:
          type: string
          description: The error code to test in your code.
          example: INVALID_PARAMETERS
        userMessage:
          type: string
          description: >-
            When present, a sentence that says what to fix. You can show or log
            it.
          example: Set the origins allowed to embed the widgets first.
      description: >-
        Every error has this shape. See [Errors and limits](/embedded/errors)
        for every code.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: mn-API_CLIENT_ID-API_KEY

````

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