---
description: Get information about chatMe groups and channels.
---

# Get groups & channels

### Get list of owner groups and channels (owned by user)

```
near view $CONTRACT_NAME get_owner_groups '{"account": AccountId}'
```

### Get list of user groups and channels (user joined this group as member)

```
near view $CONTRACT_NAME get_user_groups '{"account": AccountId}'
```

### Get list of all public groups and channels

```
near view $CONTRACT_NAME get_public_groups '{"page_limit": u32, "skip": Option<u32>}'
```

### Get group or channel details

```
near view $CONTRACT_NAME get_group_by_id '{"id": u32}'
```
