# tools.umbrae.community.listMyCommunities

> The communities this app keeps that the caller is a member of, with the caller's role in each. A reader maps a community space's key back to its ref by computing the key for each of these. Served by the managing app, at its service, with atproto service auth (iss the caller, aud the app, lxm this method); clients call through their PDS with atproto-proxy set to the app.

- Kind: query
- Authority: community.umbrae.tools
- Lexicon: 1
- Published by [lexicons.umbrae.tools](https://lexicon.garden/identity/did:plc:656sqbhftme2qbyjtcc2q6jk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.community.listMyCommunities)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.community.listMyCommunities/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:656sqbhftme2qbyjtcc2q6jk/tools.umbrae.community.listMyCommunities/analytics)

## Query (`tools.umbrae.community.listMyCommunities`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)

### Output (application/json)

- `communities` (array, required)
  - `items` (ref)
    - Reference: `#membership`
- `cursor` (string)

### Errors

- `NotAdmitted`: The managing app doesn't admit this account.

## #membership (`tools.umbrae.community.listMyCommunities#membership`)

Type: object

### Properties

- `community` (ref, required)
  - Reference: `tools.umbrae.community.defs#communityRef`
- `moderator` (boolean, required)
- `name` (string, required)
- `role` (string, required)
  - Constraints: knownValues: reader | writer

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The communities this app keeps that the caller is a member of, with the caller's role in each. A reader maps a community space's key back to its ref by computing the key for each of these. Served by the managing app, at its service, with atproto service auth (iss the caller, aud the app, lxm this method); clients call through their PDS with atproto-proxy set to the app.",
      "errors": [
        {
          "description": "The managing app doesn't admit this account.",
          "name": "NotAdmitted"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "communities": {
              "items": {
                "ref": "#membership",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "type": "string"
            }
          },
          "required": [
            "communities"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "membership": {
      "properties": {
        "community": {
          "ref": "tools.umbrae.community.defs#communityRef",
          "type": "ref"
        },
        "moderator": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "role": {
          "knownValues": [
            "reader",
            "writer"
          ],
          "type": "string"
        }
      },
      "required": [
        "community",
        "name",
        "role",
        "moderator"
      ],
      "type": "object"
    }
  },
  "id": "tools.umbrae.community.listMyCommunities",
  "lexicon": 1
}
```
