{
  "$id": "https://intentschema.org/profiles/com.slack/communication.chat.message.list.v1.json",
  "id": "org.intentschema.communication.chat.message.list.v1@com.slack.v1",
  "pins": "https://intentschema.org/intents/communication/chat/message/list/v1.json",
  "title": "Slack chat message list profile",
  "description": "Slack profile for conversations.history.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "slack"
          }
        },
        "required": [
          "system"
        ]
      },
      "slack": {
        "type": "object",
        "properties": {
          "inclusive": {
            "type": "boolean"
          },
          "oldest": {
            "type": "string"
          },
          "latest": {
            "type": "string"
          }
        }
      }
    }
  },
  "api": {
    "method": "GET",
    "path": "/api/conversations.history",
    "scopes": [
      "channels:history"
    ],
    "docs": "https://api.slack.com/methods/conversations.history",
    "params": {
      "target.external_id": "(not used; target.system only)",
      "object.filter.channel_id": "channel",
      "object.filter.after": "oldest (Unix timestamp)",
      "object.filter.before": "latest (Unix timestamp)",
      "object.limit": "limit",
      "object.cursor": "cursor",
      "slack.inclusive": "inclusive",
      "slack.oldest": "oldest",
      "slack.latest": "latest"
    },
    "base_url": "https://slack.com"
  }
}
