{
  "$id": "https://intentschema.org/profiles/com.slack/communication.chat.message.read.v1.json",
  "id": "org.intentschema.communication.chat.message.read.v1@com.slack.v1",
  "pins": "https://intentschema.org/intents/communication/chat/message/read/v1.json",
  "title": "Slack chat message read profile",
  "description": "Slack profile for fetching a single message by ts.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "slack"
          }
        },
        "required": [
          "system"
        ]
      }
    }
  },
  "api": {
    "method": "GET",
    "path": "/api/conversations.history",
    "scopes": [
      "channels:history"
    ],
    "docs": "https://api.slack.com/methods/conversations.history",
    "params": {
      "target.external_id": "latest=<ts>&oldest=<ts>&inclusive=true&limit=1 on conversations.history",
      "(implicit)": "channel"
    },
    "base_url": "https://slack.com"
  }
}
