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

# List received messages

> Lists the received messages the API key may access, one row per message and recipient, newest first. Requires the permission "Read received messages".



## OpenAPI

````yaml /api-reference/openapi.yaml get /receiving/messages
openapi: 3.1.0
info:
  title: Talario API
  version: '1.0'
  description: REST API for received messages and webhook deliveries.
servers:
  - url: https://talario.eu/api/v1
security:
  - apiKey: []
tags:
  - name: Received messages
  - name: Webhook deliveries
paths:
  /receiving/messages:
    get:
      tags:
        - Received messages
      summary: List received messages
      description: >-
        Lists the received messages the API key may access, one row per message
        and recipient, newest first. Requires the permission "Read received
        messages".
      operationId: listReceivedMessages
      parameters:
        - name: domain
          in: query
          description: Only messages of this receiving domain.
          schema:
            type: string
            maxLength: 253
        - name: recipient
          in: query
          description: Only rows of this envelope recipient (exact match).
          schema:
            type: string
            maxLength: 255
        - name: since
          in: query
          description: Only messages received at or after this time.
          schema:
            type: string
            format: date-time
        - name: until
          in: query
          description: Only messages received at or before this time.
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          description: Rows per page.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - name: cursor
          in: query
          description: Cursor from `meta.next_cursor` or `meta.prev_cursor`.
          schema:
            type: string
            maxLength: 1000
      responses:
        '200':
          description: A page of received messages.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - links
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ReceivedMessageRow'
                  links:
                    type: object
                    properties:
                      first:
                        type:
                          - string
                          - 'null'
                      last:
                        type:
                          - string
                          - 'null'
                      prev:
                        type:
                          - string
                          - 'null'
                      next:
                        type:
                          - string
                          - 'null'
                  meta:
                    type: object
                    properties:
                      path:
                        type: string
                      per_page:
                        type: integer
                        example: 50
                      next_cursor:
                        type:
                          - string
                          - 'null'
                      prev_cursor:
                        type:
                          - string
                          - 'null'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/InvalidPayload'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    ReceivedMessageRow:
      type: object
      required:
        - id
        - domain
        - received_at
        - envelope_from
        - recipient
        - last_event
      properties:
        id:
          type: string
          format: uuid
        domain:
          type: string
          example: inbound.example.com
        received_at:
          type: string
          format: date-time
        envelope_from:
          type: string
          description: SMTP envelope sender; empty for a null sender.
        recipient:
          type: string
          example: support@inbound.example.com
        last_event:
          $ref: '#/components/schemas/LastEvent'
    LastEvent:
      type: object
      description: Latest storage or webhook event for the recipient.
      required:
        - type
        - occurred_at
        - http_status
        - error_code
      properties:
        type:
          type: string
          enum:
            - received
            - inbound_stored
            - inbound_storage_failed
            - webhook_attempted
            - webhook_succeeded
            - webhook_failed
            - webhook_cancelled
        occurred_at:
          type: string
          format: date-time
        http_status:
          type:
            - integer
            - 'null'
          description: HTTP status of the latest webhook attempt.
        error_code:
          type:
            - string
            - 'null'
          description: Machine-readable reason of a failure.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: message_expired
            message:
              type: string
            fields:
              type: object
              description: Invalid fields with their messages; only for `invalid_payload`.
              additionalProperties:
                type: array
                items:
                  type: string
  responses:
    Unauthenticated:
      description: '`unauthenticated`: the API key is missing, invalid or revoked.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        `forbidden`: the API key lacks the permission, or the project is
        suspended.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InvalidPayload:
      description: '`invalid_payload`: a parameter or header is invalid.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: '`too_many_requests`: a rate limit was exceeded.'
      headers:
        Retry-After:
          description: Seconds to wait before the next request.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key of your project, starting with `tlr_api_`.

````

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