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

# List account email events

> Lists account-level email events sorted oldest first by `occurred_at asc, id asc`.



## OpenAPI

````yaml /openapi/generated/email/events.yml get /email_events
openapi: 3.1.0
info:
  contact:
    email: support@telnyx.com
  description: API for retrieving email events and event statistics.
  title: Telnyx Email Events API
  version: 2.0.0
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
paths:
  /email_events:
    get:
      tags:
        - Email Events
      summary: List account email events
      description: >-
        Lists account-level email events sorted oldest first by `occurred_at
        asc, id asc`.
      operationId: ListEmailEvents
      parameters:
        - $ref: '#/components/parameters/email_PageSize'
        - $ref: '#/components/parameters/PageCursor'
        - name: event_type
          in: query
          description: >-
            Comma-separated list of event types to include. Also accepts
            repeated query parameters (e.g.
            event_type=delivered&event_type=bounced). Unknown values return no
            matches.
          required: false
          schema:
            oneOf:
              - type: string
              - type: array
                items:
                  type: string
          example: delivered,bounced,opened
        - name: email_id
          in: query
          description: >-
            Filter events for a specific email message UUID. Invalid UUID values
            are silently ignored (no filter applied).
          required: false
          schema:
            type: string
            format: uuid
        - $ref: '#/components/parameters/FromTimestamp'
        - $ref: '#/components/parameters/ToTimestamp'
      responses:
        '200':
          description: Paginated list of account email events.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountEmailEventListResponse'
        '401':
          $ref: '#/components/responses/email_UnauthorizedResponse'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Telnyx from 'telnyx';

            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });

            // Automatically fetches more pages as needed.
            for await (const response of client.emailEvents.list()) {
              console.log(response);
            }
        - lang: Python
          source: |-
            import os
            from telnyx import Telnyx

            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )
            page = client.email_events.list()
            print(page.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\temailEvents, err := client.EmailEvents.List(context.TODO())\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", emailEvents.Data)\n}\n"
        - lang: Java
          source: |-
            package com.telnyx.sdk.example;

            import com.telnyx.sdk.client.TelnyxClient;
            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;

            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    var page = client.emailEvents().list();
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

            telnyx = Telnyx::Client.new(api_key: "My API Key")

            page = telnyx.email_events.list

            puts(page)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use Telnyx\Client;

            use Telnyx\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API
            Key');


            try {
              $page = $client->emailEvents->list();

              var_dump($page);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx email-events list \
              --api-key 'My API Key'
components:
  parameters:
    email_PageSize:
      name: page_size
      in: query
      description: >-
        Number of results to return. Defaults to 25; maximum is 100. Invalid
        values are clamped to the valid range.
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    PageCursor:
      name: page_cursor
      in: query
      description: Opaque URL-safe Base64 cursor returned by a previous list response.
      required: false
      schema:
        type: string
      example: eyJpbnNlcnRlZF9hdCI6IjIwMjQtMDEtMDEifQ
    FromTimestamp:
      name: from
      in: query
      description: >-
        Inclusive ISO 8601 start timestamp. Defaults to 30 days ago when
        omitted.
      required: false
      schema:
        type: string
        format: date-time
    ToTimestamp:
      name: to
      in: query
      description: >-
        Inclusive ISO 8601 end timestamp. When `from` is provided without `to`,
        defaults to `from + 30 days`.
      required: false
      schema:
        type: string
        format: date-time
  schemas:
    AccountEmailEventListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/AccountEmailEvent'
        meta:
          $ref: '#/components/schemas/EventPaginationMeta'
      required:
        - data
        - meta
    AccountEmailEvent:
      type: object
      properties:
        record_type:
          type: string
          enum:
            - email_event
        id:
          type: string
          format: uuid
        type:
          $ref: '#/components/schemas/EmailEventType'
        occurred_at:
          type: string
          format: date-time
        email_id:
          type: string
          format: uuid
        email:
          $ref: '#/components/schemas/EventEmailSummary'
          description: >-
            Summary of the associated email message. Present when the
            email_message preload is available.
        payload:
          type: object
          additionalProperties: true
      required:
        - record_type
        - id
        - type
        - occurred_at
        - email_id
    EventPaginationMeta:
      type: object
      properties:
        page_size:
          type: integer
          minimum: 1
          maximum: 100
        time_range:
          $ref: '#/components/schemas/TimeRange'
        page_cursor:
          type: string
          description: Cursor for the next page, when more results are available.
      required:
        - page_size
        - time_range
    email_ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorObject'
        suppressed:
          type: array
          description: >-
            Present when every recipient is suppressed, so the request is
            rejected and no message is created.
          items:
            $ref: '#/components/schemas/SuppressedRecipient'
      required:
        - errors
    EmailEventType:
      type: string
      enum:
        - queued
        - deferred
        - scheduled
        - cancelled
        - sandbox
        - sending
        - sent
        - failed
        - delivered
        - bounced
        - complained
        - rejected
        - opened
        - clicked
        - unsubscribed
        - daily_limit_exceeded
    EventEmailSummary:
      type: object
      properties:
        from:
          $ref: '#/components/schemas/EmailAddress'
        to:
          type: array
          items:
            $ref: '#/components/schemas/EmailAddress'
        cc:
          type: array
          items:
            $ref: '#/components/schemas/EmailAddress'
        subject:
          type: string
      required:
        - from
        - to
        - cc
        - subject
    TimeRange:
      type: object
      properties:
        from:
          type:
            - string
            - 'null'
          format: date-time
        to:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - from
        - to
    ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: >-
            Telnyx error code. Edge idempotency errors use 10027 or 10036.
            Fallback 404/500 responses from the framework may use string status
            codes ('404', '500') instead.
          enum:
            - '10001'
            - '10006'
            - '10007'
            - '10015'
            - '10016'
            - '10019'
            - recipient_suppressed
            - reputation_suspended
            - '404'
            - '500'
            - '10027'
            - '10036'
        title:
          type: string
        detail:
          description: >-
            Human-readable error detail. Changeset responses may return a
            structured object.
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
        source:
          type:
            - object
            - 'null'
          additionalProperties: true
        meta:
          type:
            - object
            - 'null'
          additionalProperties: true
          description: Additional metadata. Present on 401 errors with a documentation URL.
      required:
        - code
        - title
        - detail
    SuppressedRecipient:
      type: object
      properties:
        to:
          type: string
          format: email
          description: Suppressed recipient email address.
        reason:
          type: string
          description: Suppression reason returned by the recipient suppression service.
        scope:
          type: string
          description: Scope at which the suppression applies.
        override_allowed:
          type: boolean
          description: Whether an authorized send may override this suppression.
      required:
        - to
        - reason
        - scope
        - override_allowed
    EmailAddress:
      type: object
      properties:
        email:
          type: string
        name:
          type: string
      required:
        - email
  responses:
    email_UnauthorizedResponse:
      description: Not authorized (10006).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/email_ErrorResponse'
          example:
            errors:
              - code: '10006'
                title: Not authorized
                detail: Invalid API key
                meta:
                  url: https://developers.telnyx.com/docs/overview/errors/10006
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````