Search

Leave Conversation

Last Updated: Sep 13, 2021

Articles

Use this function to leave a conversation in Slack.

Syntax

Leave Conversation (token, channel_id)

Parameters

Input Parameter Name Description
token Authentication token
channel_id ID of the channel to leave the conversation

  • To know more about token, click here.
  • To view the Channel ID, right click on the channel name in the left menu and select Copy link in Slack. Paste in a text editor, the URL is of the format: https://<Slack URL>/<Channel ID>.

Returns

Return Value Description
Output
  • On Success returns 1 | Conversation Left Successfully
  • On Failure returns 0 | Error Message

Sample

Leave Conversation (xoxp-12QWERT, ABC123)

  • Uses token xoxp-12QWERT to authenticate connection to Slack, leaves the conversation in channel with ID ABC123.
    Returns Conversation Left Successfully on leaving the channel.

To view all the Slack functions, click here.

Did you find what you were looking for?