---
agentTools:
  projectIndex: https://developers.northpass.com/llms.txt
---

# List groups

Returns a list of groups.

**default sorting:** `name` ASC

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "OpenAPI Specification",
    "version": "1.0.0"
  },
  "paths": {
    "/v2/groups": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "List groups",
        "description": "Returns a list of groups.\n\n**default sorting:** `name` ASC\n",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "the number of the page",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "the number of items per page",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "query term",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "headers": {
              "Content-Type": {
                "x-example-value": "application/json; charset=utf-8",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "x-example-value": "max-age=0, private, must-revalidate",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "response": {
                    "value": {
                      "links": {
                        "self": "https://api.northpass.com/v1/groups"
                      },
                      "data": [
                        {
                          "type": "groups",
                          "id": "12bbb7b4-b30c-40d6-a5f1-33f7e8c29005",
                          "attributes": {
                            "name": "Group 28",
                            "memberships_count": 0,
                            "created_at": "2024-10-08T08:37:26Z",
                            "updated_at": "2024-10-08T08:37:26Z",
                            "group_enrollment_link": "http://school-99a88b4a-dceb-457f-837c-53481dc2c226-212.northpass.com/g/3fbcccb5c5be52f76f1d7903554ed63ba4809e42",
                            "membership_count": 0
                          },
                          "links": {
                            "self": {
                              "href": "https://api.northpass.com/v1/groups/12bbb7b4-b30c-40d6-a5f1-33f7e8c29005",
                              "methods": [
                                "get",
                                "delete"
                              ]
                            },
                            "teaching": {
                              "href": "https://app.northpass.com/groups/12bbb7b4-b30c-40d6-a5f1-33f7e8c29005",
                              "methods": [
                                "get",
                                "put"
                              ]
                            },
                            "memberships": "https://app.northpass.com/groups/12bbb7b4-b30c-40d6-a5f1-33f7e8c29005/memberships"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "when you don't have the necessary permissions",
            "headers": {
              "Content-Type": {
                "x-example-value": "application/json; charset=utf-8",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "x-example-value": "no-cache",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "response": {
                    "value": {
                      "errors": [
                        {
                          "status": "403",
                          "title": "Forbidden",
                          "detail": "You don't have necessary permissions for the resource",
                          "code": "api_error",
                          "source": {}
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "X-Api-Key": []
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Groups"
    }
  ],
  "servers": [
    {
      "url": "https://api.northpass.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Api-Key": {
        "type": "apiKey",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 94,
      "1": 131,
      "2": 105,
      "3": 179,
      "4": 156,
      "5": 162,
      "6": 182,
      "7": 0,
      "8": 57,
      "9": 227,
      "10": 168,
      "11": 70
    }
  }
}
```