---
title: "Get an Output"
method: GET
path: "/v3/outputs/{eventID}"
tags: ["Outputs"]
---

# Get an Output

`GET /v3/outputs/{eventID}`

**Retrieve a single output event by ID.**

Fetches any non-error event by its `eventID`. Returns `404` if the event does not exist
or if it is an error event (use `GET /v3/errors/{eventID}` for those).

## Path parameters

- `eventID` string, required

## Response `200`

The request has succeeded.

- OutputResponseV3
  - `output` union, required — V3 read-side event union. Superset of the shared `Event` union: it contains every shared variant verbatim (backward compatible) and adds the V3-only `extract`, `parse`, `classify`, `analyze`, `payload_shaping`, and `evaluation` variants. This is also the union delivered as the body of outbound webhook payloads.
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'transform'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `pipelineID` string — ID of pipeline that transformed the original input data.
      - `publishedAt` string, date-time — Timestamp indicating when the transform was published via webhook and received a successful 200 response. Value is `null` if the transformation hasn't been sent.
      - `lastPublishErrorAt` string, nullable — Last timestamp indicating when the transform was published via webhook and received a non-200 response. Set to `null` on a subsequent retry if the webhook service receives a 200 response.
      - `inputType` 'csv' | 'docx' | 'email' | 'heic' | 'html' | 'jfif' | 'jpeg' | 'json' | 'heif' | 'm4a' | 'mov' | 'mp3' | 'mp4' | 'pdf' | 'png' | 'pptx' | 'text' | 'wav' | 'webp' | 'xls' | 'xlsx' | 'xml' — The input type of the content you're sending for transformation. `jfif` is accepted as an alias for `jpeg` — JFIF is the same format under a different extension — and is normalized to `jpeg`, so responses and webhooks report `jpeg` for a JFIF upload. The undeclared alias `jpg` behaves the same way.
      - `transformationID` string — Unique ID for each transformation output generated by bem following Segment's KSUID conventions.
      - `s3URL` string, nullable — Presigned S3 URL for the input content uploaded to S3.
      - `inputs` object[], nullable — Array of transformation inputs with their types and S3 URLs.
        - `inputType` string, nullable
        - `inputContent` string, nullable
        - `jsonInputContent` object, nullable
        - `s3URL` string, nullable
      - `transformedContent` object, required — The transformed content of the input. The structure of this object is defined by the function configuration.
      - `correctedContent` union — Corrected feedback provided for fine-tuning purposes.
        - object
          - `output` AnyType[]
            - union
              - …
        - union
          - object
          - unknown[]
            - unknown
          - string
          - number
          - integer
          - boolean
      - `invalidProperties` string[] — List of properties that were invalid in the input.
      - `metrics` object, nullable — Accuracy, precision, recall, and F1 score when corrected JSON is provided.
        - `metrics` object
          - `accuracy` number
          - `precision` number
          - `recall` number
          - `f1Score` number
        - `differences` object[]
          - `category` string
          - `correctedVal` unknown
          - `extractedVal` unknown
          - `jsonPointer` string
      - `orderMatching` boolean — Indicates whether array order matters when comparing corrected JSON with extracted JSON.
      - `isRegression` boolean — Indicates whether this transformation was created as part of a regression test.
      - `itemOffset` integer, required — The offset of the first item that was transformed. Used for batch transformations to indicate which item in the batch this event corresponds to.
      - `itemCount` integer, required — The number of items that were transformed. Used for batch transformations to indicate how many items were transformed.
      - `fieldConfidences` object — Per-field confidence scores. A JSON object mapping RFC 6901 JSON Pointer paths (e.g. `"/invoiceNumber"`) to float values in the range [0, 1] indicating the model's confidence in each extracted field value.
      - `avgConfidence` number, float, nullable — Average confidence score across all extracted fields, in the range [0, 1].
    - object — V3 event variants that do not exist in the shared `Event` union. `ExtractEvent` and `ClassifyEvent` are emitted only by V3-era function types (`extract` and `classify`). The shared `Event` union in `specs/events/models.tsp` predates these types and continues to describe V2 / V1-alpha responses verbatim; V3 response payloads add the new variants via the `EventV3` union below while keeping every shared variant intact for backward compatibility.
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'extract'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `inputType` 'csv' | 'docx' | 'email' | 'heic' | 'html' | 'jfif' | 'jpeg' | 'json' | 'heif' | 'm4a' | 'mov' | 'mp3' | 'mp4' | 'pdf' | 'png' | 'pptx' | 'text' | 'wav' | 'webp' | 'xls' | 'xlsx' | 'xml' — The input type of the content you're sending for transformation. `jfif` is accepted as an alias for `jpeg` — JFIF is the same format under a different extension — and is normalized to `jpeg`, so responses and webhooks report `jpeg` for a JFIF upload. The undeclared alias `jpg` behaves the same way.
      - `transformationID` string — Unique ID for each transformation output generated by bem following Segment's KSUID conventions.
      - `s3URL` string, nullable — Presigned S3 URL for the input content uploaded to S3.
      - `inputs` object[], nullable — Array of transformation inputs with their types and S3 URLs.
        - `inputType` string, nullable
        - `inputContent` string, nullable
        - `jsonInputContent` object, nullable
        - `s3URL` string, nullable
      - `transformedContent` object, required — The transformed content of the input. The structure of this object is defined by the function configuration.
      - `correctedContent` union — Corrected feedback provided for fine-tuning purposes.
        - object
          - `output` AnyType[]
            - union
              - …
        - union
          - object
          - unknown[]
            - unknown
          - string
          - number
          - integer
          - boolean
      - `invalidProperties` string[] — List of properties that were invalid in the input.
      - `itemOffset` integer, required — The offset of the first item that was transformed. Used for batch transformations to indicate which item in the batch this event corresponds to.
      - `itemCount` integer, required — The number of items that were transformed. Used for batch transformations to indicate how many items were transformed.
      - `fieldBoundingBoxes` object — Per-field bounding boxes. A JSON object mapping RFC 6901 JSON Pointer paths (e.g. `"/invoiceNumber"`, `"/items/0/price"`) to the document regions from which each extracted value was sourced.
      - `fieldConfidences` object — Per-field confidence scores. A JSON object mapping RFC 6901 JSON Pointer paths (e.g. `"/invoiceNumber"`) to float values in the range [0, 1] indicating the model's confidence in each extracted field value.
      - `avgConfidence` number, float, nullable — Average confidence score across all extracted fields, in the range [0, 1].
    - object — Emitted when a `parse` function completes. Reuses the `extract` event shape on the wire — both wrap a Transformation and downstream consumers care about the same `transformedContent` payload — but uses a distinct `eventType` discriminator so receivers can dispatch on the function type that produced it.
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'parse'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `inputType` 'csv' | 'docx' | 'email' | 'heic' | 'html' | 'jfif' | 'jpeg' | 'json' | 'heif' | 'm4a' | 'mov' | 'mp3' | 'mp4' | 'pdf' | 'png' | 'pptx' | 'text' | 'wav' | 'webp' | 'xls' | 'xlsx' | 'xml' — The input type of the content you're sending for transformation. `jfif` is accepted as an alias for `jpeg` — JFIF is the same format under a different extension — and is normalized to `jpeg`, so responses and webhooks report `jpeg` for a JFIF upload. The undeclared alias `jpg` behaves the same way.
      - `transformationID` string — Unique ID for each transformation output generated by bem following Segment's KSUID conventions.
      - `s3URL` string, nullable — Presigned S3 URL for the input content uploaded to S3.
      - `inputs` object[], nullable — Array of parse inputs with their types and S3 URLs.
        - `inputType` string, nullable
        - `inputContent` string, nullable
        - `jsonInputContent` object, nullable
        - `s3URL` string, nullable
      - `transformedContent` object, required — The parsed content of the input. Top-level keys are `sections`, `entities`, and `relationships`; the precise shape is determined by the parse function's configuration.
      - `correctedContent` union — Corrected feedback provided for fine-tuning purposes.
        - object
          - `output` AnyType[]
            - union
              - …
        - union
          - object
          - unknown[]
            - unknown
          - string
          - number
          - integer
          - boolean
      - `invalidProperties` string[] — List of properties that were invalid in the input.
      - `itemOffset` integer, required — The offset of the first item that was parsed. Used for batch parsing to indicate which item in the batch this event corresponds to.
      - `itemCount` integer, required — The number of items that were parsed. Used for batch parsing to indicate how many items were parsed.
      - `fieldBoundingBoxes` object — Per-field bounding boxes. A JSON object mapping RFC 6901 JSON Pointer paths to the document regions from which each parsed value was sourced.
      - `fieldConfidences` object — Per-field confidence scores. A JSON object mapping RFC 6901 JSON Pointer paths to float values in the range [0, 1] indicating the model's confidence in each parsed field value.
      - `avgConfidence` number, float, nullable — Average confidence score across all parsed fields, in the range [0, 1].
    - object — Emitted by functions of the legacy `analyze` type (the vision path predecessor of `extract`). Carries the extracted JSON along with per-field bounding-box metadata identifying the document regions each value was extracted from.
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'analyze'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `transformationID` string, nullable — Unique ID for each transformation output generated by bem following Segment's KSUID conventions.
      - `transformedContent` object, required — The extracted content of the input. The structure of this object is defined by the function's `outputSchema`.
      - `invalidProperties` string[], required — List of properties that were invalid in the input.
      - `s3URL` string, nullable — Presigned S3 URL of the input file that was analyzed.
      - `fieldBoundingBoxes` object — Per-field bounding boxes. A JSON object mapping RFC 6901 JSON Pointer paths (e.g. `"/invoiceNumber"`, `"/items/0/price"`) to the document regions from which each extracted value was sourced.
      - `fieldConfidences` object — Per-field confidence scores. A JSON object mapping RFC 6901 JSON Pointer paths to float values in the range [0, 1] indicating the model's confidence in each extracted field value.
      - `avgConfidence` number, float, nullable — Average confidence score across all extracted fields, in the range [0, 1].
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'route'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `choice` string, required — The choice made by the router function.
      - `s3URL` string — The presigned S3 URL of the file that was routed.
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'classify'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `choice` string, required — The classification chosen by the classify function.
      - `s3URL` string — The presigned S3 URL of the file that was classified.
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'split_collection'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `outputType` 'print_page' | 'semantic_page', required
      - `printPageOutput` object, required
        - `itemCount` integer
        - `items` object[]
          - `itemReferenceID` string
          - `itemOffset` integer
          - `s3URL` string
      - `semanticPageOutput` object, required
        - `pageCount` integer
        - `itemCount` integer
        - `items` object[]
          - `itemReferenceID` string
          - `itemOffset` integer
          - `itemClass` string
          - `itemClassCount` integer
          - `itemClassOffset` integer
          - `pageStart` integer
          - `pageEnd` integer
          - `s3URL` string
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'split_item'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `outputType` 'print_page' | 'semantic_page', required
      - `printPageOutput` object
        - `collectionReferenceID` string
        - `itemCount` integer
        - `itemOffset` integer
        - `s3URL` string
      - `semanticPageOutput` object
        - `collectionReferenceID` string
        - `pageCount` integer
        - `itemCount` integer
        - `itemOffset` integer
        - `itemClass` string
        - `itemClassCount` integer
        - `itemClassOffset` integer
        - `pageStart` integer
        - `pageEnd` integer
        - `s3URL` string
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'error'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `message` string, required — Error message.
      - `kind` string — Open, extensible error-kind label for typed transformation errors. The platform emits these as plain strings and the set grows over time, so clients must accept unknown values. For render functions the known kinds are `render_source_fetch`, `render_template_fetch`, `render_image_unresolved`, `render_validation`, `render_exception`, `render_upload`, and `render_contract`. Omitted for historical events that pre-date the kind column and for non-transform errors.
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'join'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `joinType` 'standard', required — The type of join that was performed.
      - `transformationID` string — Unique ID for each transformation output generated by bem following Segment's KSUID conventions.
      - `transformedContent` object, required — The transformed content of the input. The structure of this object is defined by the function configuration.
      - `invalidProperties` string[], required — List of properties that were invalid in the input.
      - `items` JoinEventItem[], required — The items that were joined.
        - `itemReferenceID` string, required — The unique ID you use internally to refer to this data point.
        - `itemOffset` integer, required — The offset of the first item that was transformed. Used for batch transformations to indicate which item in the batch this event corresponds to.
        - `itemCount` integer, required — The number of items that were transformed.
        - `s3URL` string — The presigned S3 URL of the file that was joined.
      - `fieldConfidences` object — Per-field confidence scores. A JSON object mapping RFC 6901 JSON Pointer paths (e.g. `"/invoiceNumber"`) to float values in the range [0, 1] indicating the model's confidence in each extracted field value.
      - `avgConfidence` number, float, nullable — Average confidence score across all extracted fields, in the range [0, 1].
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'enrich'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `enrichedContent` object, required — The enriched content produced by the enrich function. Contains the input data augmented with results from semantic search against collections.
    - object — Emitted by `payload_shaping` functions, which restructure JSON payloads using JMESPath expressions configured on the function. The shaped result is carried in `transformedContent`.
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'payload_shaping'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `transformedContent` object, required — The reshaped payload produced by applying the function's JMESPath expressions to the input data.
    - object — Emitted when a function-accuracy evaluation completes for a transformation. Evaluations are scheduled by `POST /v3/eval` and run asynchronously; this event reports the terminal result.
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'evaluation'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `transformId` string, required — Unique ID of the transformation that was evaluated.
      - `evaluationVersion` string, required — Version identifier of the evaluation logic that produced this result.
      - `result` object, required — Evaluator output. Shape depends on `evaluationVersion` and includes confidence scores, per-field hallucination flags, and relevance metrics.
      - `status` 'success' | 'failed', required — Terminal status of the evaluation run.
      - `errorMessage` string — Failure reason populated when `status` is `failed`.
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'collection_processing'
      - `collectionID` string, required — Unique identifier of the collection.
      - `collectionName` string, required — Name/path of the collection.
      - `operation` 'add' | 'update', required — The operation performed (add or update).
      - `processedCount` integer, required — Number of items successfully processed.
      - `collectionItemIDs` string[] — Array of collection item KSUIDs that were added or updated.
      - `status` 'success' | 'failed', required — Processing status (success or failed).
      - `errorMessage` string — Error message if processing failed.
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'send'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `deliveryStatus` 'success' | 'skip', required — Outcome of a Send function's delivery attempt.
      - `destinationType` 'webhook' | 's3' | 'google_drive', required — Destination type for a Send function.
      - `deliveredContent` object — The full protocol event JSON that was delivered — identical to what subscription publish would deliver for the same event. For ad-hoc calls with a JSON file input, contains the raw input JSON. For ad-hoc calls with a binary file input, contains {"s3URL": "<presigned-url>"}.
      - `webhookOutput` SendEventWebhookOutput — Metadata returned when a Send function delivers to a webhook.
        - `httpStatusCode` integer, required — HTTP status code returned by the webhook endpoint.
        - `httpResponseBody` string, required — Raw HTTP response body returned by the webhook endpoint.
      - `s3Output` SendEventS3Output — Metadata returned when a Send function delivers to an S3 bucket.
        - `bucketName` string, required — Name of the S3 bucket the payload was written to.
        - `key` string, required — Object key under which the payload was stored.
      - `googleDriveOutput` SendEventGoogleDriveOutput — Metadata returned when a Send function delivers to Google Drive.
        - `folderID` string, required — ID of the Google Drive folder the file was placed in.
        - `fileName` string, required — Name of the file created in Google Drive.
    - object
      - `functionCallTryNumber` integer — The attempt number of the function call that created this event. 1 indexed.
      - `eventID` string, required — Unique ID generated by bem to identify the event.
      - `createdAt` string, date-time — Timestamp indicating when the event was created.
      - `referenceID` string, required — The unique ID you use internally to refer to this data point, propagated from the original function input.
      - `inboundEmail` EventInboundEmail
        - `to` string, required — The email address of the recipient.
        - `deliveredTo` string — The email address of the original intended recipient if the email itself was forwarded.
        - `from` string, required — The email address of the sender.
        - `subject` string, required — The subject of the email.
      - `metadata` object
        - `durationFunctionToEventSeconds` number
      - `eventType` 'render'
      - `functionCallID` string — Unique identifier of function call that this event is associated with.
      - `functionID` string, required — Unique identifier of function that this event is associated with.
      - `functionName` string, required — Unique name of function that this event is associated with.
      - `functionVersionNum` integer — Version number of function that this event is associated with.
      - `callID` string — Unique identifier of workflow call that this event is associated with.
      - `workflowID` string — Unique identifier of workflow that this event is associated with.
      - `workflowName` string — Name of workflow that this event is associated with.
      - `workflowVersionNum` integer — Version number of workflow that this event is associated with.
      - `outputDownloadURL` string, required — Short-lived presigned HTTPS URL the recipient can GET to download the rendered docx. Bearer-token semantics: possession equals access. Treat as a credential — do not log full URLs or store beyond the delivery window. The URL expires after the platform-configured TTL; the next API serialization mints a fresh one.
      - `validationSeconds` number, double, required — Wall-clock seconds spent validating the upstream JSON against the doc-type schema.
      - `docxRenderSeconds` number, double, required — Wall-clock seconds spent generating the output docx through the template.

---

[API](https://skmtc.net/bem-team/apis/bem-api.md) · [All operations](https://skmtc.net/bem-team/apis/bem-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bem-team/bem-api/versions/b0a6debb3458/schema)
