{
  "$id": "https://intentschema.org/profiles/com.slack/communication.chat.channel.create.v1.json",
  "id": "org.intentschema.communication.chat.channel.create.v1@com.slack.v1",
  "pins": "https://intentschema.org/intents/communication/chat/channel/create/v1.json",
  "title": "Slack channel create profile",
  "description": "Slack profile for conversations.create.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "slack"
          }
        },
        "required": [
          "system"
        ]
      },
      "slack": {
        "type": "object",
        "properties": {
          "team_id": {
            "type": "string"
          }
        }
      }
    }
  },
  "api": {
    "method": "POST",
    "path": "/api/conversations.create",
    "scopes": [
      "channels:manage"
    ],
    "docs": "https://api.slack.com/methods/conversations.create",
    "params": {
      "object.name": "name",
      "object.private": "is_private",
      "object.members": "(use conversations.invite after creation)",
      "object.topic": "(use conversations.setTopic after creation)",
      "slack.team_id": "team_id"
    },
    "base_url": "https://slack.com"
  }
}
