> ## 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.

# createConversation

> Start a direct-message conversation with the given recipients, or post to the existing one if it already exists

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



**mutation** `createConversation(input: CreateConversationInput!): CreateConversationPayload`

## Arguments

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

Parameters for CreateConversation

## Returns

`CreateConversationPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`conversation`**: `PrivateConversation`

---

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

---

**`message`**: `PrivateMessage`

---

**`outcome`**: `DirectMessageOutcome`

## Examples

```graphql Mutation
mutation CreateConversation($input: CreateConversationInput!) {
  createConversation(input: $input) {
    clientMutationId
    conversation {
      bookmarkedAt
      id
      lastChatAt
      lastMessage {
        actorType
        artifact {
          __typename
        }
        assets {
          __typename
        }
        conversation {
          __typename
        }
        createdAt
        embeddedLink {
          __typename
        }
      }
      messages {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
      }
      participants {
        ambassadorLevel
        ambassadorLevelId
        avatarUrl
        badges {
          __typename
        }
        communityRole
        conversations {
          __typename
        }
      }
    }
    errors
    message {
      actorType
      artifact {
        createdAt
        description
        html
        id
        kind
        status
      }
      assets {
        aspectRatio
        assetStyle
        contentType
        fileSize
        id
        imageUrl
      }
      conversation {
        bookmarkedAt
        id
        lastChatAt
        lastMessage {
          __typename
        }
        messages {
          __typename
        }
        participants {
          __typename
        }
      }
      createdAt
      embeddedLink {
        actionText
        description
        faviconUrl
        id
        imageUrl
        isVideo
      }
    }
    outcome
  }
}
```

```json Variables
{
  "input": {
    "recipientIds": [
      "id"
    ],
    "text": "string"
  }
}
```

```json Response
{
  "data": {
    "createConversation": {
      "clientMutationId": "string",
      "conversation": {
        "bookmarkedAt": "value",
        "id": "id",
        "lastChatAt": "value",
        "lastMessage": {
          "actorType": "COHOST",
          "artifact": {
            "__typename": "Artifact"
          },
          "assets": [
            {
              "__typename": "Asset"
            }
          ],
          "conversation": {
            "__typename": "ConversationThread"
          },
          "createdAt": "value",
          "embeddedLink": {
            "__typename": "EmbeddedLink"
          }
        },
        "messages": {
          "edges": [
            {
              "__typename": "PrivateMessageEdge"
            }
          ],
          "nodes": [
            {
              "__typename": "PrivateMessage"
            }
          ],
          "pageInfo": {
            "__typename": "PageInfo"
          }
        },
        "participants": [
          {
            "ambassadorLevel": "string",
            "ambassadorLevelId": 1,
            "avatarUrl": "string",
            "badges": [
              {
                "__typename": "Badge"
              }
            ],
            "communityRole": "CONTRIBUTOR",
            "conversations": {
              "__typename": "PublicConversationConnection"
            }
          }
        ]
      },
      "errors": [
        "string"
      ],
      "message": {
        "actorType": "COHOST",
        "artifact": {
          "createdAt": "value",
          "description": "string",
          "html": "string",
          "id": "id",
          "kind": "string",
          "status": "string"
        },
        "assets": [
          {
            "aspectRatio": 1.5,
            "assetStyle": "string",
            "contentType": "string",
            "fileSize": "string",
            "id": "id",
            "imageUrl": "string"
          }
        ],
        "conversation": {
          "bookmarkedAt": "value",
          "id": "id",
          "lastChatAt": "value",
          "lastMessage": {
            "__typename": "PrivateMessage"
          },
          "messages": {
            "__typename": "PrivateMessageConnection"
          },
          "participants": [
            {
              "__typename": "User"
            }
          ]
        },
        "createdAt": "value",
        "embeddedLink": {
          "actionText": "string",
          "description": "string",
          "faviconUrl": "string",
          "id": "id",
          "imageUrl": "string",
          "isVideo": true
        }
      },
      "outcome": "SENT"
    }
  }
}
```


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