---
title: "Groups queries all groups in state."
method: GET
path: "/cosmos/group/v1/groups"
tags: ["Query"]
---

# Groups queries all groups in state.

`GET /cosmos/group/v1/groups`

Since: cosmos-sdk 0.47.1

## Query parameters

- `pagination.key` string, byte
- `pagination.offset` string, uint64
- `pagination.limit` string, uint64
- `pagination.count_total` boolean
- `pagination.reverse` boolean

## Response `200`

A successful response.

- CosmosGroupV1QueryGroupsResponse — QueryGroupsResponse is the Query/Groups response type. Since: cosmos-sdk 0.47.1
  - `groups` CosmosGroupV1GroupInfo[] — `groups` is all the groups present in state.
    - `id` string, uint64 — id is the unique ID of the group.
    - `admin` string — admin is the account address of the group's admin.
    - `metadata` string
    - `version` string, uint64
    - `total_weight` string — total_weight is the sum of the group members' weights.
    - `created_at` string, date-time — created_at is a timestamp specifying when a group was created.
  - `pagination` CosmosBaseQueryV1beta1PageResponse — PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
    - `next_key` string, byte — next_key is the key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results.
    - `total` string, uint64

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/coreumfoundation/apis/title-goes-here.md) · [All operations](https://skmtc.net/coreumfoundation/apis/title-goes-here/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coreumfoundation/title-goes-here/versions/2a2e5bc4593a/schema)
