---
title: "Get all groups"
url: "https://developers.vzconnect.com/apis/group-api-1/versions/1abd2768-7ba0-4b09-8b60-156957ef21ce/operations/GET__groups"
---

> Full API specification: https://developers.vzconnect.com/apis/group-api-1/versions/1abd2768-7ba0-4b09-8b60-156957ef21ce.md

# Get all groups

`GET` `/cmd/v1/groups`

Operation ID: `GET__groups`

Retrieve all groups within a fleet. The integrated user can verify the Group Name that corresponds with a Group ID to ensure proper placement of drivers, vehicles, and users within the REVEAL account.

## Responses

- `200` - Successfully retrieved the list of groups.
- `400` - Bad request. The request was malformed or contained invalid parameters.
- `401` - Unauthorized. The request lacks valid authentication credentials.
- `500` - Internal server error. An unexpected error occurred on the server.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Group API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/groups:
    get:
      tags:
        - Group API
      summary: Get all groups
      description: Retrieve all groups within a fleet. The integrated user can verify
        the Group Name that corresponds with a Group ID to ensure proper
        placement of drivers, vehicles, and users within the REVEAL account.
      parameters: []
      operationId: GET__groups
      responses:
        "200":
          description: Successfully retrieved the list of groups.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/Group"
              example:
                - Name: CPTESTGROUP
                  Id: CPTG1
                - Name: CPTESTGROUP 2
                  Id: CPTG2
                - Name: Entire Fleet
                  Id: Entire Fleet
                - Name: GNU
                  Id: GNU
        "400":
          description: Bad request. The request was malformed or contained invalid
            parameters.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "401":
          description: Unauthorized. The request lacks valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "500":
          description: Internal server error. An unexpected error occurred on the server.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/groups/?$
components:
  schemas:
    Group:
      type: object
      description: A group within the REVEAL account.
      properties:
        Name:
          type: string
          description: The name of the group created within the REVEAL account.
          example: CPTESTGROUP
        Id:
          type: string
          description: The unique identifier associated with the group created within the
            REVEAL account. The Group ID is an alphanumeric field that must be
            unique within the REVEAL account and is mandatory in order to
            reference the group through the integration services.
          example: CPTG1
    Error:
      type: object
      description: Generic error response. The documentation does not define an
        explicit error body schema.
      properties:
        Message:
          type: string
          description: A human-readable description of the error.
```
