{
  "args": {
    "channel": {
      "desc": "Conversation ID to fetch thread from. The `channel` and `ts` arguments are always required. `ts` must be the timestamp of an existing message.",
      "required": true,
      "type": "string"
    },
    "cursor": {
      "desc": "Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first \"page\" of the collection. See pagination for more detail.",
      "example": "dXNlcjpVMDYxTkZUVDI=",
      "required": false,
      "type": "string"
    },
    "include_all_metadata": {
      "desc": "Return all metadata associated with this message. 0",
      "example": "true",
      "required": false,
      "type": "boolean"
    },
    "inclusive": {
      "desc": "Include messages with `oldest` or `latest` timestamps in results. Ignored unless either timestamp is specified. 0",
      "example": "true",
      "required": false,
      "type": "boolean"
    },
    "latest": {
      "default": "now",
      "desc": "Only messages before this Unix timestamp will be included in results.",
      "required": false,
      "type": "string"
    },
    "limit": {
      "default": "1000",
      "desc": "The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.",
      "example": "20",
      "required": false,
      "type": "number"
    },
    "oldest": {
      "default": "0",
      "desc": "Only messages after this Unix timestamp will be included in results.",
      "required": false,
      "type": "string"
    },
    "ts": {
      "desc": "Unique identifier of either a thread’s parent message or a message in the thread. `ts` must be the timestamp of an existing message with 0 or more replies. If there are no replies then just the single message referenced by `ts` will return - it is just an ordinary, unthreaded message. The `channel` and `ts` arguments are always required. `ts` must be the timestamp of an existing message.",
      "required": true,
      "type": "string"
    }
  },
  "desc": "Retrieve a thread of messages posted to a conversation",
  "errors": {
    "channel_not_found": "Value for `channel` was missing or invalid.",
    "invalid_cursor": "Value passed for `cursor` was not valid or is no longer valid.",
    "invalid_metadata_filter_keys": "Value passed for `metadata_keys_to_include` was invalid. Must be valid json array of strings.",
    "invalid_ts_latest": "Value passed for `latest` was invalid",
    "invalid_ts_oldest": "Value passed for `oldest` was invalid",
    "list_record_comment_fetch_failed": "Failed to fetch list record comments.",
    "method_not_supported_for_channel_type": "This type of conversation cannot be used with this method.",
    "thread_not_found": "Value for `ts` was missing or invalid."
  },
  "rate_limit": {
    "label": "Tier 3: 50+ per minute",
    "url": "https://docs.slack.dev/apis/web-api/rate-limits"
  },
  "scopes": {
    "bot": [
      {
        "name": "channels:history",
        "url": "https://docs.slack.dev/reference/scopes/channels.history"
      },
      {
        "name": "groups:history",
        "url": "https://docs.slack.dev/reference/scopes/groups.history"
      },
      {
        "name": "im:history",
        "url": "https://docs.slack.dev/reference/scopes/im.history"
      },
      {
        "name": "mpim:history",
        "url": "https://docs.slack.dev/reference/scopes/mpim.history"
      }
    ],
    "user": [
      {
        "name": "channels:history",
        "url": "https://docs.slack.dev/reference/scopes/channels.history"
      },
      {
        "name": "groups:history",
        "url": "https://docs.slack.dev/reference/scopes/groups.history"
      },
      {
        "name": "im:history",
        "url": "https://docs.slack.dev/reference/scopes/im.history"
      },
      {
        "name": "mpim:history",
        "url": "https://docs.slack.dev/reference/scopes/mpim.history"
      }
    ]
  }
}

