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

# Get Dead Letter Event

> Get a single failed event by ID.

Returns:
    Failed event with error details and original payload.

Raises:
    HTTPException: 404 if event not found.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json get /ops/dead-letter/{event_id}
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /ops/dead-letter/{event_id}:
    get:
      tags:
        - ops
      summary: Get Dead Letter Event
      description: |-
        Get a single failed event by ID.

        Returns:
            Failed event with error details and original payload.

        Raises:
            HTTPException: 404 if event not found.
      operationId: ops-get_dead_letter_event
      parameters:
        - name: event_id
          in: path
          required: true
          schema:
            type: string
            title: Event Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeadLetterEventResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeadLetterEventResponse:
      properties:
        event_id:
          type: string
          title: Event Id
        provider:
          type: string
          title: Provider
        resource_type:
          type: string
          title: Resource Type
        resource_name:
          type: string
          title: Resource Name
        event_type:
          $ref: '#/components/schemas/EventType'
        payload:
          additionalProperties: true
          type: object
          title: Payload
        error_message:
          type: string
          title: Error Message
        attempt_count:
          type: integer
          title: Attempt Count
        failed_at:
          type: string
          format: date-time
          title: Failed At
      type: object
      required:
        - event_id
        - provider
        - resource_type
        - resource_name
        - event_type
        - payload
        - error_message
        - attempt_count
        - failed_at
      title: DeadLetterEventResponse
      description: |-
        Failed event response.

        Attributes:
            event_id: Original event ID.
            provider: Provider name (e.g., "postgres").
            resource_type: Resource type (e.g., "database").
            resource_name: Resource name from manifest.
            event_type: Type of lifecycle event (CREATE, UPDATE, DELETE).
            payload: Resource configuration as JSON object.
            error_message: Error message from last failed attempt.
            attempt_count: Number of processing attempts before failure.
            failed_at: When event failed.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EventType:
      type: string
      enum:
        - CREATE
        - UPDATE
        - DELETE
        - COPY
        - PATCH
        - MIGRATE_UP
        - MIGRATE_DOWN
      title: EventType
      description: Resource lifecycle event type.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````