POST
/conversations.leaveLeave a conversation
Leaves an existing conversation for the authenticated user. Supply the conversation identifier in channel to specify which conversation to leave, using an authentication token with the conversations:write scope when authorization is required.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
tokenstringoptional
Authentication token for the request; it must provide the `conversations:write` scope.
Optional form-encoded conversation details.
channelstringoptional
Conversation to leave
200Returns a success object with `ok` set to true and may include `not_in_channel` set to true when the authenticated user was not a member.
not_in_channelbooleanoptional
okbooleanrequired
defaultTypical error response when attempting to leave a workspace's "general" channel
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
neededstringoptional
okbooleanrequired
providedstringoptional
Error handling
channel must identify a conversation that the authenticated user can leave and must not be the workspace's general channel. The token must provide the conversations:write scope when supplied for authentication.