{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-chime/json-schema/amazon-chime-list-channel-messages-request-schema.json",
  "title": "ListChannelMessagesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-chime-messages-api-openapi.yml#/components/schemas/ListChannelMessagesRequest",
  "type": "object",
  "properties": {
    "ChannelArn": {
      "type": "string",
      "description": "The ARN of the channel."
    },
    "SortOrder": {
      "type": "string",
      "enum": [
        "ASCENDING",
        "DESCENDING"
      ],
      "description": "The order in which you want messages sorted. Default is Descending, based on time created."
    },
    "NotBefore": {
      "type": "string",
      "format": "date-time",
      "description": "The initial or starting time stamp for your requested messages."
    },
    "NotAfter": {
      "type": "string",
      "format": "date-time",
      "description": "The final or ending time stamp for your requested messages."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of messages that you want returned."
    },
    "NextToken": {
      "type": "string",
      "description": "The token passed by previous API calls until all requested messages are returned."
    },
    "ChimeBearer": {
      "type": "string",
      "description": "The ARN of the AppInstanceUser or AppInstanceBot that makes the API call."
    },
    "SubChannelId": {
      "type": "string",
      "description": "The ID of the SubChannel in the request. Only required when listing the messages in a SubChannel that the user belongs to."
    }
  },
  "required": [
    "ChannelArn",
    "ChimeBearer"
  ]
}