> ## 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 audit events for a suppression

> Offset pagination only (`page[number]` default 1, `page[size]`
default **50**, max 100). No `sort`, no `filter`, no cursor —
ordering is fixed `desc occurred_at, desc id`. Verifies the block
belongs to the account first (cross-account → 404).




## OpenAPI

````yaml /openapi/generated/email/suppressions.yml get /email_blocks/{id}/events
openapi: 3.1.0
info:
  contact:
    email: support@telnyx.com
  description: API for managing email suppression blocks (bounce, complaint, manual).
  title: Telnyx Email Suppressions API
  version: 2.0.0
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
paths:
  /email_blocks/{id}/events:
    parameters:
      - $ref: '#/components/parameters/PathId'
    get:
      tags:
        - Email Suppressions
      summary: List audit events for a suppression
      description: |
        Offset pagination only (`page[number]` default 1, `page[size]`
        default **50**, max 100). No `sort`, no `filter`, no cursor —
        ordering is fixed `desc occurred_at, desc id`. Verifies the block
        belongs to the account first (cross-account → 404).
      operationId: listEmailBlockEvents
      parameters:
        - $ref: '#/components/parameters/BlocksPageNumber'
        - name: page[size]
          in: query
          description: Page size (default 50, max 100).
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
      responses:
        '200':
          description: Audit events (newest-first).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailBlockEventListResponse'
        '400':
          $ref: '#/components/responses/ValidationErrorQuery'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/BlocksNotFound'
        '406':
          $ref: '#/components/responses/FrameworkError'
      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
            });

            const response = await client.emailBlocks.retrieveEvents('id');

            console.log(response.data);
        - 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
            )
            response = client.email_blocks.retrieve_events(
                "id",
            )
            print(response.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\tresponse, err := client.EmailBlocks.GetEvents(\n\t\tcontext.TODO(),\n\t\t\"id\",\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", response.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 response = client.emailBlocks().retrieveEvents("id");
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

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

            response = telnyx.email_blocks.retrieve_events("id")

            puts(response)
        - 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 {
              $response = $client->emailBlocks->retrieveEvents(
                'id',
              );

              var_dump($response);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx email-blocks retrieve-events \
              --api-key 'My API Key' \
              --id id
components:
  parameters:
    PathId:
      name: id
      in: path
      required: true
      description: Resource UUID. Malformed UUIDs are treated as not-found (not 400).
      schema:
        type: string
        format: uuid
    BlocksPageNumber:
      name: page[number]
      in: query
      description: Offset page number (≥1, default 1).
      schema:
        type: integer
        minimum: 1
        default: 1
  schemas:
    EmailBlockEventListResponse:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/EmailBlockEvent'
        meta:
          $ref: '#/components/schemas/OffsetMeta'
    EmailBlockEvent:
      type: object
      required:
        - id
        - record_type
        - event_type
        - reason
        - source
        - actor
        - occurred_at
      properties:
        id:
          type: string
          format: uuid
        record_type:
          type: string
          enum:
            - email_block_event
          description: View-only.
        event_type:
          type: string
          enum:
            - created
            - removed
            - expired
            - override_used
        reason:
          type: string
          description: Free-text snapshot of the block's reason at event time.
        source:
          type: string
          description: Free-text snapshot of the block's source at event time.
        actor:
          type: string
          description: >-
            Free-text
            (`user_id`/`org_id`/`api_key`/`dev_bypass`/`system`/`manual`).
        meta:
          type:
            - object
            - 'null'
          additionalProperties: true
          description: >-
            `null` when the schema field is nil (the context usually sets it to
            `{}`).
        occurred_at:
          type: string
          format: date-time
    OffsetMeta:
      type: object
      required:
        - page_number
        - page_size
        - total_pages
        - total_results
      properties:
        page_number:
          type: integer
        page_size:
          type: integer
        total_pages:
          type: integer
        total_results:
          type: integer
    ErrorList:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/BlocksErrorObject'
    BlocksErrorObject:
      type: object
      required:
        - code
        - title
        - detail
      properties:
        code:
          type: string
          description: |
            Error codes: `10001` (Not Found), `10007` (Unauthorized),
            `10015` (Validation Failed), `10019` (Internal — import create
            fallback), `40901` (Conflict), `500` (framework/catch-all).
        title:
          type: string
        detail:
          type: string
        source:
          type: object
          properties:
            pointer:
              type: string
          description: >-
            `/data/attributes/<field>` for changeset/Params; `/<field>` for
            query-param errors.
  responses:
    ValidationErrorQuery:
      description: Query-param validation error (`source.pointer /<field>`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorList'
          example:
            errors:
              - code: '10015'
                title: Validation Failed
                detail: is invalid
                source:
                  pointer: /filter[reason]
    Unauthorized:
      description: Missing or invalid gateway auth.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorList'
          example:
            errors:
              - code: '10007'
                title: Unauthorized
                detail: Missing authentication
    BlocksNotFound:
      description: >-
        Resource not found (cross-account lookups and malformed UUIDs also
        return 404 — no leak).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorList'
          example:
            errors:
              - code: '10001'
                title: Not Found
                detail: The requested email block was not found
    FrameworkError:
      description: |
        Framework-rendered error (e.g. 406 Not Acceptable, 405 Method Not
        Allowed, 415 Unsupported Media Type). HTTP status matches the error
        and the body `code` carries that same status (e.g. `"406"`, not a
        hardcoded `"500"`). The explicit `500.json` clause still emits
        `code: "500"` for genuine 500s.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorList'
          example:
            errors:
              - code: '406'
                title: Not Acceptable
                detail: Not Acceptable
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````