{
  "args": {
    "channel_id": {
      "desc": "ID of the channel that you'd like to accept. Must provide either `invite_id` or `channel_id`.",
      "required": false
    },
    "channel_name": {
      "desc": "Name of the channel. If the channel does not exist already in your workspace, this name is the one that the channel will take.",
      "example": "puppies-r-us",
      "required": true,
      "type": "string"
    },
    "free_trial_accepted": {
      "desc": "Whether you'd like to use your workspace's free trial to begin using Slack Connect.",
      "required": false,
      "type": "boolean"
    },
    "invite_id": {
      "desc": "ID of the invite that you’d like to accept. Must provide either `invite_id` or `channel_id`. See the `shared_channel_invite_received` event payload for more details on how to retrieve the ID of the invitation.",
      "required": false
    },
    "is_private": {
      "desc": "Whether the channel should be private.",
      "example": "true",
      "required": false,
      "type": "boolean"
    },
    "team_id": {
      "desc": "The ID of the workspace to accept the channel in. If an org-level token is used to call this method, the `team_id` argument is required.",
      "required": false
    }
  },
  "desc": "Accepts an invitation to a Slack Connect channel.",
  "errors": {
    "channel_conversion_in_progress": "Unable to create a channel connection while a channel conversion is in progress",
    "connection_limit_exceeded": "This channel has hit the limit of external connections.",
    "email_does_not_match": "User's email does not match the email in the invite.",
    "failed_to_start_trial": "Unable to initiate a trial on shared invite acceptance",
    "has_already_connected_to_org": "A team on the workspace of the org is already in the channel.",
    "invalid_emoji_not_allowed": "The desired name contains emoji.",
    "invalid_host_team": "The host workspace is invalid.",
    "invalid_link": "We couldn't find an invite associated with the ID provided.",
    "invalid_name": "The value passed for `channel_name` was invalid.",
    "invalid_name_maxlength": "The value passed for `channel_name` exceeded the maximum length.",
    "invalid_name_punctuation": "The value passed for `channel_name` contained only punctuation.",
    "invalid_name_required": "The value passed for `channel_name` was empty.",
    "invalid_name_specials": "The value passed for `channel_name` contained unallowed special characters or upper case characters.",
    "invalid_privacy": "An invalid channel privacy was provided.",
    "invalid_recipient_team": "The accepting team does not match the expected recipient team.",
    "invalid_target_team": "The target workspace is invalid.",
    "invite_from_same_org": "You can't accept an invite from the same org or workspace.",
    "invite_not_found": "We couldn't find a Slack Connect channel invite with the ID provided.",
    "invite_used": "This invite has already been accepted.",
    "is_pending_connected_to_org": "A team pending to join the channel is on the org of the team trying to accept.",
    "legacy_connection_invalid_org": "Teams not previously connected to this legacy channel can't connect.",
    "legacy_connection_limit_exceeded": "You cannot share a legacy ESC channel with a third team",
    "name_taken": "The desired channel name is already taken in your workspace.",
    "not_allowed_for_grid_workspace": "Acceptance is not allowed for this workspace.",
    "not_paid": "This workspace doesn't have access to this feature.",
    "restricted_action": "A team preference prevents the authenticated user from creating private channels.",
    "team_not_found": "The team provided in the `team_id` argument does not exits.",
    "user_cannot_create_channel": "This user is not allowed to create a channel.",
    "user_is_restricted": "This user is restricted and cannot accept the invite.",
    "user_not_found": "The user accepting the invite is not a member of the team provided in the `team_id` argument.",
    "user_required_to_accept_as_private_but_cannot": "This uer cannot accept a private channel invitation."
  },
  "rate_limit": {
    "label": "Tier 2: 20+ per minute",
    "url": "https://docs.slack.dev/apis/web-api/rate-limits"
  },
  "scopes": {
    "bot": [
      {
        "name": "conversations.connect:write",
        "url": "https://docs.slack.dev/reference/scopes/conversations.connect.write"
      }
    ]
  }
}

