---
title: "POST /testexecutions/{testExecutionId}/results"
method: POST
path: "/testexecutions/{testExecutionId}/results"
---

# POST /testexecutions/{testExecutionId}/results

`POST /testexecutions/{testExecutionId}/results`

Gets a list of test execution result items.

## Path parameters

- `testExecutionId` string, required

## Request body

- object
  - `resultFilterBy` object, required — Contains information about the method by which to filter the results of the test execution.
    - `resultTypeFilter` 'OverallTestResults' | 'ConversationLevelTestResults' | 'IntentClassificationTestResults' | 'SlotResolutionTestResults' | 'UtteranceLevelResults' — Specifies which results to filter. See <a href="https://docs.aws.amazon.com/lexv2/latest/dg/test-results-details-test-set.html">Test result details"&gt;Test results details</a> for details about different types of results.
    - `conversationLevelTestResultsFilterBy` object — Contains information about the method for filtering Conversation level test results.
      - `endToEndResult` 'Matched' | 'Mismatched' | 'ExecutionError' — The selection of matched or mismatched end-to-end status to filter test set results data at the conversation level.
  - `maxResults` integer — The maximum number of test execution result items to return in each page. If there are fewer results than the max page size, only the actual number of results are returned.
  - `nextToken` string — If the response from the <code>ListTestExecutionResultItems</code> operation contains more results than specified in the <code>maxResults</code> parameter, a token is returned in the response. Use that token in the <code>nextToken</code> parameter to return the next page of results.

## Response `200`

Success

- ListTestExecutionResultItemsResponse
  - `testExecutionResults` object — The list of results from the test execution.
    - `overallTestResults` object — Overall results for the test execution, including the breakdown of conversations and single-input utterances.
      - `items` OverallTestResultItem[], required — A list of the overall test results.
        - `multiTurnConversation` boolean, required — Indicates whether the conversation contains multiple turns or not.
        - `totalResultCount` integer, required — The total number of overall results in the result of the test execution.
        - `speechTranscriptionResultCounts` object — The number of speech transcription results in the overall test.
        - `endToEndResultCounts` object, required — The number of results that succeeded.
    - `conversationLevelTestResults` object — Results related to conversations in the test set, including metrics about success and failure of conversations and intent and slot failures.
      - `items` ConversationLevelTestResultItem[], required — The item list in the test set results data at the conversation level.
        - `conversationId` string, required — The conversation Id of the test result evaluation item.
        - `endToEndResult` 'Matched' | 'Mismatched' | 'ExecutionError', required — The end-to-end success or failure of the test result evaluation item.
        - `speechTranscriptionResult` 'Matched' | 'Mismatched' | 'ExecutionError' — The speech transcription success or failure of the test result evaluation item.
        - `intentClassificationResults` ConversationLevelIntentClassificationResultItem[], required — The intent classification of the test result evaluation item.
          - `intentName` string, required — The intent name used in the evaluation of intent level success or failure.
          - `matchResult` 'Matched' | 'Mismatched' | 'ExecutionError', required — The number of times the specific intent is used in the evaluation of intent level success or failure.
        - `slotResolutionResults` ConversationLevelSlotResolutionResultItem[], required — The slot success or failure of the test result evaluation item.
          - `intentName` string, required — The intents used in the slots list for the slot resolution details.
          - `slotName` string, required — The slot name in the slots list for the slot resolution details.
          - `matchResult` 'Matched' | 'Mismatched' | 'ExecutionError', required — The number of matching slots used in the slots listings for the slot resolution evaluation.
    - `intentClassificationTestResults` object — Intent recognition results aggregated by intent name. The aggregated results contain success and failure rates of intent recognition, speech transcriptions, and end-to-end conversations.
      - `items` IntentClassificationTestResultItem[], required — A list of the results for the intent classification test.
        - `intentName` string, required — The name of the intent.
        - `multiTurnConversation` boolean, required — Indicates whether the conversation involves multiple turns or not.
        - `resultCounts` object, required — The result of the intent classification test.
          - `totalResultCount` integer, required — The total number of results in the intent classification test.
          - `speechTranscriptionResultCounts` object — The number of matched, mismatched, and execution error results for speech transcription for the intent.
          - `intentMatchResultCounts` object, required — The number of matched and mismatched results for intent recognition for the intent.
    - `intentLevelSlotResolutionTestResults` object — Slot resolution results aggregated by intent and slot name. The aggregated results contain success and failure rates of slot resolution, speech transcriptions, and end-to-end conversations
      - `items` IntentLevelSlotResolutionTestResultItem[], required — Indicates the items for the slot level resolution for the intents.
        - `intentName` string, required — The name of the intent that was recognized.
        - `multiTurnConversation` boolean, required — Indicates whether the conversation involves multiple turns or not.
        - `slotResolutionResults` SlotResolutionTestResultItem[], required — The results for the slot resolution in the test execution result.
          - `slotName` string, required — The name of the slot.
          - `resultCounts` object, required — A result for slot resolution in the results of a test execution.
            - `totalResultCount` integer, required — The total number of results.
            - `speechTranscriptionResultCounts` object — The number of matched, mismatched and execution error results for speech transcription for the slot.
            - `slotMatchResultCounts` object, required — The number of matched and mismatched results for slot resolution for the slot.
    - `utteranceLevelTestResults` object — Results related to utterances in the test set.
      - `items` UtteranceLevelTestResultItem[], required — Contains information about an utterance in the results of the test set execution.
        - `recordNumber` integer, required — The record number of the result.
        - `conversationId` string — The unique identifier for the conversation associated with the result.
        - `turnResult` object, required — Contains information about the turn associated with the result.
          - `agent` object — Contains information about the agent messages in the turn.
            - `expectedAgentPrompt` string, required — The expected agent prompt for the agent turn in a test set execution.
            - `actualAgentPrompt` string — The actual agent prompt for the agent turn in a test set execution.
            - `errorDetails` ExecutionErrorDetails — Details about an error in an execution of a test set.
              - …
            - `actualElicitedSlot` string — The actual elicited slot for the agent turn in a test set execution.
            - `actualIntent` string — The actual intent for the agent turn in a test set execution.
          - `user` object — Contains information about the user messages in the turn.
            - `input` object, required — Contains information about the user messages in the turn in the input.
              - …
            - `expectedOutput` object, required — Contains information about the expected output for the user turn.
              - …
            - `actualOutput` object — Contains information about the actual output for the user turn.
              - …
            - `errorDetails` ExecutionErrorDetails — Details about an error in an execution of a test set.
              - …
            - `endToEndResult` 'Matched' | 'Mismatched' | 'ExecutionError' — Specifies whether the expected and actual outputs match or not, or if there is an error in execution.
            - `intentMatchResult` 'Matched' | 'Mismatched' | 'ExecutionError' — Specifies whether the expected and actual intents match or not.
            - `slotMatchResult` 'Matched' | 'Mismatched' | 'ExecutionError' — Specifies whether the expected and actual slots match or not.
            - `speechTranscriptionResult` 'Matched' | 'Mismatched' | 'ExecutionError' — Specifies whether the expected and actual speech transcriptions match or not, or if there is an error in execution.
            - `conversationLevelResult` object — Contains information about the results related to the conversation associated with the user turn.
              - …
  - `nextToken` string — A token that indicates whether there are more results to return in a response to the <code>ListTestExecutionResultItems</code> operation. If the <code>nextToken</code> field is present, you send the contents as the <code>nextToken</code> parameter of a <code>ListTestExecutionResultItems</code> operation request to get the next page of results.

## Other responses

- `480` — ThrottlingException
- `481` — ServiceQuotaExceededException
- `482` — ValidationException
- `483` — ResourceNotFoundException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/lexv2-models.md) · [All operations](https://skmtc.net/aws/apis/lexv2-models/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lexv2-models/versions/6997ba482d72/schema)
