{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-transcript-request-schema.json",
  "title": "GetTranscriptRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-participant-api-openapi.yml#/components/schemas/GetTranscriptRequest",
  "type": "object",
  "properties": {
    "ContactId": {
      "type": "string",
      "description": "The contactId from the current contact chain for which transcript is needed."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to return in the page. Default: 10."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results."
    },
    "ScanDirection": {
      "type": "string",
      "enum": [
        "FORWARD",
        "BACKWARD"
      ],
      "description": "The direction from StartPosition from which to retrieve message. Default: BACKWARD when no StartPosition is provided, FORWARD with StartPosition."
    },
    "SortOrder": {
      "type": "string",
      "enum": [
        "DESCENDING",
        "ASCENDING"
      ],
      "description": "The sort order for the records. Default: DESCENDING."
    },
    "StartPosition": {
      "$ref": "#/$defs/StartPosition"
    },
    "ConnectionToken": {
      "type": "string",
      "description": "The authentication token associated with the participant's connection."
    }
  },
  "required": [
    "ConnectionToken"
  ],
  "$defs": {
    "StartPosition": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The ID of the message or event where to start."
        },
        "AbsoluteTime": {
          "type": "string",
          "description": "The time in ISO format where to start. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."
        },
        "MostRecent": {
          "type": "integer",
          "description": "The start position of the most recent message where you want to start."
        }
      }
    }
  }
}