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

# Join a community

Only public communities can be joined by the user without an invitation.

Community can be joined by the current API user after successful execution of the `joinCommunity` mutation.
It accepts only one required argument - `communityId`.

<CodeGroup>
  ```filename GraphQL theme={null}
    mutation joinCommunity {
      joinCommunity(communityId: 1) {
        errors
        response
      }
    }
  ```

  ```File Query result [expandable] theme={null}
  {
    "data": {
      "joinCommunity": {
        "errors": [],
        "response": true
      }
    }
  }
  ```
</CodeGroup>

If the mutation executed without any errors, a boolean value will be returned as a response, indicating the execution status.
