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

# Obtener entrega de evento

> Devuelve una única fila event_delivery más su historial de intentos. Las búsquedas de ids desconocidos aparecen como no encontrado (SPB-0010), byte a byte idénticas a las de un recurso realmente inexistente.



## OpenAPI

````yaml es/openapi/v3-current/spb.yaml get /v1/str/event-deliveries/{deliveryId}
openapi: 3.1.0
info:
  contact:
    email: contact@lerian.studio
    name: Lerian Studio
    url: https://lerian.studio
  description: >-
    Interfaz OpenAPI 3.1 de Lerian SPB, la integración directa entre la
    institución y el Sistema de Pagos Brasileño (SPB) sobre la Red del Sistema
    Financiero Nacional (RSFN). Cubre el Sistema de Transferencia de Reservas
    (STR): registro de mensajes y catálogo de capacidades, ciclo de vida de las
    operaciones (transferencias bancarias, repasses IBS, transferencias de
    liquidez, devoluciones y cancelaciones), consultas de cuenta de reservas y
    de horarios, gobernanza de alçada, conciliación y entrega de eventos.
  license:
    name: Lerian Studio General License
  title: Lerian SPB API
  version: 1.0.0
servers:
  - url: https://spb.sandbox.lerian.net
security: []
tags:
  - description: >-
      Rastros inmutables de registros de auditoría para operaciones STR y
      eventos de ciclo de vida.
    name: Audit
  - description: >-
      Catálogo de capacidades STR que describe los tipos de mensaje admitidos y
      sus restricciones.
    name: Capabilities
  - description: >-
      Inventario de certificados ICP-Brasil con rotación y activación
      recargables en caliente.
    name: Certificates
  - description: >-
      Cola de aprobación maker-checker para emisiones retenidas por encima de su
      banda de alçada: listar pendientes, firmar (aprobar) y denegar.
    name: EmissionApprovals
  - description: >-
      Registros de entrega de eventos por webhook con control de reintentos para
      despachos fallidos.
    name: EventDeliveries
  - description: >-
      Catálogo de eventos de operación que enumera los tipos de evento de
      dominio emitidos.
    name: Events
  - description: >-
      Registro de avisos entrantes de la familia GEN (GEN0001 eco de
      conectividad, GEN0004 error de transmisión, GEN0005 aviso administrativo).
    name: GenNotices
  - description: >-
      Gobernanza de alçada del SPB: la tabla de bandas de valor y los requisitos
      de firma por tipo de mensaje, recargados en caliente en tiempo de
      ejecución.
    name: Governance
  - description: >-
      Estado crudo de los mensajes STR: listar los mensajes y leer un mensaje
      individual por NUOp.
    name: Messages
  - description: Resúmenes y métricas operativas agregadas de las operaciones STR.
    name: OperationalIntelligence
  - description: >-
      Ciclo de vida de las operaciones STR para transferencias bancarias y
      repasses IBS, incluyendo devoluciones y cancelaciones.
    name: Operations
  - description: >-
      Estado de disponibilidad del servicio que abarca las autopruebas de
      arranque y la salud de las dependencias.
    name: Readiness
  - description: >-
      Casos de conciliación y las acciones que resuelven las discrepancias de
      operación.
    name: Reconciliation
  - description: >-
      Suite de reportes STR: reportes agregados síncronos por rango de fechas
      (movimiento financiero, transacciones rechazadas, volumetria) sobre el
      propio registro de transmisión de Lerian SPB.
    name: Reports
  - description: >-
      Consultas de saldo de cuenta de reservas STR0013 y de extrato STR0014
      (modo mensaje) y sus resultados asíncronos.
    name: ReserveQueries
  - description: >-
      Lista de responsáveis del participante GEN0019: actualizaciones de
      reemplazo total anunciadas a BACEN.
    name: Responsibles
  - description: >-
      Programación de ventanas de operación del STR que rige cuándo pueden
      enviarse las operaciones.
    name: Schedule
  - description: >-
      Consultas de horarios STR0001 de parte única (consulta de horários do STR)
      y sus resultados de grilla STR0001R1 asíncronos.
    name: ScheduleQueries
  - description: >-
      Ajustes de configuración del SPB en tiempo de ejecución para la
      integración STR.
    name: Settings
  - description: Registro y gestión de endpoints de webhook para la entrega de eventos.
    name: Webhooks
  - description: >-
      Flujo (orden obligatorio): certificado → disponibilidad →
      prueba-de-conectividad → envío. Activa un certificado, confirma que el
      rail reporta listo, pasa una prueba de conectividad y luego envía una
      operación. Cada paso es su propio recurso; no debes intentar un envío
      antes de que la disponibilidad pase.
    name: onboarding
  - description: >-
      Flujo (orden obligatorio): operación padre SETTLED →
      devolución/cancelación. Una devolución o cancelación es un sub-recurso de
      una operación padre liquidada; el segmento de ruta
      {operationId}/{endToEndID} impone el padre estructuralmente.
    name: lifecycle
paths:
  /v1/str/event-deliveries/{deliveryId}:
    get:
      tags:
        - EventDeliveries
      summary: Obtener entrega de evento
      description: >-
        Devuelve una única fila event_delivery más su historial de intentos. Las
        búsquedas de ids desconocidos aparecen como no encontrado (SPB-0010),
        byte a byte idénticas a las de un recurso realmente inexistente.
      operationId: getEventDelivery
      parameters:
        - description: Delivery UUID.
          in: path
          name: deliveryId
          required: true
          schema:
            description: Delivery UUID.
            examples:
              - 550e8400-e29b-41d4-a716-446655440010
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventDeliveryEnvelope'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
      security:
        - BearerAuth: []
components:
  schemas:
    EventDeliveryEnvelope:
      additionalProperties: false
      properties:
        attempts:
          description: Chronological attempt history for the delivery.
          items:
            $ref: '#/components/schemas/EventDeliveryAttemptResponse'
          type:
            - array
            - 'null'
        correlationId:
          description: >-
            Request-scoped correlation identifier echoing X-Request-ID, for
            pivoting from response to trace.
          examples:
            - 550e8400-e29b-41d4-a716-446655440004
          type: string
        delivery:
          $ref: '#/components/schemas/EventDeliveryResponse'
          description: The event delivery record.
      required:
        - delivery
        - attempts
        - correlationId
      type: object
    Detail:
      additionalProperties: false
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          examples:
            - ERR-0001
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    EventDeliveryAttemptResponse:
      additionalProperties: false
      properties:
        attemptNumber:
          description: 1-based ordinal of this attempt within the delivery.
          examples:
            - 1
          format: int64
          type: integer
        attemptedAt:
          description: RFC3339 UTC timestamp when this attempt was made.
          examples:
            - '2026-06-14T12:00:00Z'
          type: string
        deliveryAttemptId:
          description: Delivery attempt UUID.
          examples:
            - 550e8400-e29b-41d4-a716-446655440020
          type: string
        deliveryId:
          description: UUID of the delivery this attempt belongs to.
          examples:
            - 550e8400-e29b-41d4-a716-446655440010
          type: string
        errorSummary:
          description: >-
            Summary of the failure for this attempt; omitted when the attempt
            succeeded.
          type: string
        responseStatus:
          description: >-
            HTTP status code returned by the webhook endpoint; omitted when no
            response was received (e.g. connection error).
          examples:
            - 200
          format: int64
          type: integer
        status:
          description: Outcome status of this individual attempt.
          examples:
            - DELIVERED
          type: string
      required:
        - deliveryAttemptId
        - deliveryId
        - attemptNumber
        - status
        - attemptedAt
      type: object
    EventDeliveryResponse:
      additionalProperties: false
      properties:
        attempts:
          description: Number of delivery attempts made so far.
          examples:
            - 1
          format: int64
          type: integer
        createdAt:
          description: RFC3339 UTC timestamp when the delivery record was created.
          examples:
            - '2026-06-14T12:00:00Z'
          type: string
        deliveryId:
          description: Event delivery UUID.
          examples:
            - 550e8400-e29b-41d4-a716-446655440010
          type: string
        eventId:
          description: UUID of the control-plane event being delivered.
          examples:
            - 550e8400-e29b-41d4-a716-446655440011
          type: string
        eventType:
          description: Canonical control-plane event type being delivered.
          examples:
            - str.operation.accepted
          type: string
        lastAttemptAt:
          description: >-
            RFC3339 UTC timestamp of the most recent attempt; omitted before the
            first attempt.
          examples:
            - '2026-06-14T12:00:00Z'
          type: string
        lastError:
          description: >-
            Summary of the most recent delivery error; omitted when the last
            attempt succeeded.
          type: string
        nextRetryAt:
          description: >-
            RFC3339 UTC timestamp when the next retry is scheduled; omitted when
            no retry is pending.
          examples:
            - '2026-06-14T12:00:00Z'
          type: string
        operationId:
          description: >-
            UUID of the related operation when the event is operation-scoped;
            omitted otherwise.
          examples:
            - 550e8400-e29b-41d4-a716-446655440013
          type: string
        status:
          description: 'Delivery status: PENDING, DELIVERED, FAILED, RETRYING, or EXHAUSTED.'
          examples:
            - DELIVERED
          type: string
        updatedAt:
          description: RFC3339 UTC timestamp of the last delivery-record update.
          examples:
            - '2026-06-14T12:00:00Z'
          type: string
        webhookId:
          description: UUID of the destination webhook endpoint.
          examples:
            - 550e8400-e29b-41d4-a716-446655440012
          type: string
      required:
        - deliveryId
        - eventId
        - webhookId
        - eventType
        - status
        - attempts
        - createdAt
        - updatedAt
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````