> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# leaveConversation

> Leave a direct-message group conversation

**Required scope:** `write:chats`



**mutation** `leaveConversation(input: LeaveConversationInput!): LeaveConversationPayload`

## Arguments

**`input`**: `LeaveConversationInput!` (required)

Parameters for LeaveConversation

## Returns

`LeaveConversationPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`success`**: `Boolean!`

## Examples

```graphql Mutation
mutation LeaveConversation($input: LeaveConversationInput!) {
  leaveConversation(input: $input) {
    clientMutationId
    errors
    success
  }
}
```

```json Variables
{
  "input": {
    "conversationId": "id"
  }
}
```

```json Response
{
  "data": {
    "leaveConversation": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "success": true
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.