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

# List received emails

> List received messages newest first, including quarantined metadata. Contains private sender information.

Required permission: `receiving:read`.



## OpenAPI

````yaml /openapi.json get /emails/receiving
openapi: 3.1.0
info:
  title: Moonemail API
  version: 0.1.0
  description: >-
    Generated request, response and authorization contract. Covers authenticated
    product endpoints, not public discovery, dashboard assets or Stripe inbound
    webhooks. Go handlers enforce state-dependent and cross-field business
    validation.
servers:
  - url: https://api.moonemail.co
security: []
paths:
  /emails/receiving:
    get:
      tags:
        - Receiving
      summary: List received emails
      description: >-
        List received messages newest first, including quarantined metadata.
        Contains private sender information.


        Required permission: `receiving:read`.
      operationId: list_received_emails
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
        - name: after
          in: query
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    const: list
                  has_more:
                    type: boolean
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        inbox_id:
                          type: string
                        from:
                          type: string
                        to:
                          anyOf:
                            - type: array
                              items:
                                type: string
                            - type: 'null'
                        subject:
                          type: string
                        message_id:
                          type: string
                        created_at:
                          type: string
                        status:
                          type: string
                          enum:
                            - received
                            - quarantined
                        quarantine_reason:
                          type: string
                        attachments:
                          anyOf:
                            - type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  filename:
                                    type: string
                                  content_type:
                                    type: string
                                  content_disposition:
                                    type: string
                                    enum:
                                      - attachment
                                      - inline
                                  content_id:
                                    type: string
                                  size:
                                    type: integer
                                required:
                                  - id
                                  - filename
                                  - content_type
                                  - content_disposition
                                  - size
                                additionalProperties: true
                            - type: 'null'
                        expires_at:
                          type: integer
                          description: Expiry as Unix seconds.
                        authentication:
                          type: object
                          properties:
                            spf:
                              type: string
                            dkim:
                              type: string
                            dmarc:
                              type: string
                          required:
                            - spf
                            - dkim
                            - dmarc
                          additionalProperties: true
                          description: >-
                            Provider receipt verdicts; not sender-supplied
                            headers. Older messages may omit this.
                      required:
                        - id
                        - inbox_id
                        - from
                        - to
                        - subject
                        - message_id
                        - created_at
                        - status
                        - attachments
                        - expires_at
                      additionalProperties: true
                required:
                  - object
                  - has_more
                  - data
                additionalProperties: true
        default:
          description: API error
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - name
                  - message
                properties:
                  statusCode:
                    type: integer
                  name:
                    type: string
                  message:
                    type: string
      security:
        - bearerKey: []
components:
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: Moonemail API key; x-required-scope applies.

````

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